mirror of
https://github.com/NanoHttpd/nanohttpd
synced 2026-06-08 11:57:38 +00:00
Added gradle build support
This commit is contained in:
@@ -3,12 +3,17 @@ build
|
||||
target
|
||||
|
||||
*.iml
|
||||
*.ipr
|
||||
*.iws
|
||||
*.class
|
||||
|
||||
.idea
|
||||
.classpath
|
||||
.project
|
||||
.gradle
|
||||
gradle/
|
||||
gradlew
|
||||
gradlew.bat
|
||||
|
||||
# Vim Backup/Swap Files
|
||||
*~
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
allprojects {
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'idea'
|
||||
|
||||
group = 'org.nanohttpd'
|
||||
version = '2.3.2-SNAPSHOT'
|
||||
}
|
||||
|
||||
subprojects {
|
||||
apply plugin: 'java'
|
||||
sourceCompatibility = 1.7
|
||||
targetCompatibility = 1.7
|
||||
|
||||
repositories {
|
||||
jcenter()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testCompile group: 'junit', name: 'junit', version: '4.12'
|
||||
}
|
||||
}
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = "4.4.1"
|
||||
}
|
||||
+6
-14
@@ -1,18 +1,10 @@
|
||||
apply plugin: 'java'
|
||||
|
||||
version = '2.1.0'
|
||||
|
||||
jar {
|
||||
baseName = 'nanohttpd'
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
description = 'NanoHttpd-Core'
|
||||
|
||||
dependencies {
|
||||
testCompile group: 'junit', name: 'junit', version: '4.8.2'
|
||||
testCompile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.2.5'
|
||||
testCompile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.2.5'
|
||||
testCompile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.2.5'
|
||||
testCompile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.2.5'
|
||||
}
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = "4.4.1"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
description = 'NanoHttpd-apache file upload integration'
|
||||
|
||||
dependencies {
|
||||
compile group: 'commons-fileupload', name: 'commons-fileupload', version: '1.3.1'
|
||||
|
||||
compileOnly project(':nanohttpd')
|
||||
compileOnly group: 'javax.servlet', name: 'servlet-api', version: '2.5'
|
||||
|
||||
testCompile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.4.1'
|
||||
testCompile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.4.1'
|
||||
}
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = "4.4.1"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
description = 'NanoHttpd-Webserver-Markdown-Plugin'
|
||||
|
||||
dependencies {
|
||||
compile group: 'org.pegdown', name: 'pegdown', version: '1.4.1'
|
||||
compileOnly project(':nanohttpd')
|
||||
compileOnly project(':nanohttpd-webserver')
|
||||
}
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = "4.4.1"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
description = 'NanoHttpd-nano application server'
|
||||
|
||||
dependencies {
|
||||
compile project(':nanohttpd')
|
||||
|
||||
testCompile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.4.1'
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
description = 'NanoHttpd-Samples'
|
||||
|
||||
dependencies {
|
||||
compile project(':nanohttpd')
|
||||
compile project(':nanohttpd-webserver')
|
||||
}
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = "4.4.1"
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
rootProject.name = 'nanohttpd-project'
|
||||
include ':nanohttpd'
|
||||
include ':nanohttpd-samples'
|
||||
include ':nanohttpd-webserver'
|
||||
include ':nanohttpd-websocket'
|
||||
include ':nanohttpd-webserver-markdown-plugin'
|
||||
include ':nanohttpd-nanolets'
|
||||
include ':nanohttpd-apache-fileupload'
|
||||
|
||||
project(':nanohttpd').projectDir = "$rootDir/core" as File
|
||||
project(':nanohttpd-samples').projectDir = "$rootDir/samples" as File
|
||||
project(':nanohttpd-webserver').projectDir = "$rootDir/webserver" as File
|
||||
project(':nanohttpd-websocket').projectDir = "$rootDir/websocket" as File
|
||||
project(':nanohttpd-webserver-markdown-plugin').projectDir = "$rootDir/markdown-plugin" as File
|
||||
project(':nanohttpd-nanolets').projectDir = "$rootDir/nanolets" as File
|
||||
project(':nanohttpd-apache-fileupload').projectDir = "$rootDir/fileupload" as File
|
||||
@@ -0,0 +1,11 @@
|
||||
description = 'NanoHttpd-Webserver'
|
||||
|
||||
dependencies {
|
||||
compile project(':nanohttpd')
|
||||
|
||||
testCompile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.4.1'
|
||||
}
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = "4.4.1"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
description = 'NanoHttpd-Websocket'
|
||||
|
||||
dependencies {
|
||||
compile project(':nanohttpd')
|
||||
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.9.5'
|
||||
testCompile group: 'org.eclipse.jetty.websocket', name: 'websocket-client', version: '9.3.0.M2'
|
||||
}
|
||||
|
||||
task wrapper(type: Wrapper) {
|
||||
gradleVersion = "4.4.1"
|
||||
}
|
||||
Reference in New Issue
Block a user