Permalink
Browse files

Added gradle build support

  • Loading branch information...
Josh-Larson committed Jan 21, 2018
1 parent e33c73a commit 952481eaee2cb5a0078a9a32e8bb5deae1323716
Showing with 117 additions and 14 deletions.
  1. +5 −0 .gitignore
  2. +25 −0 build.gradle
  3. +6 −14 core/build.gradle
  4. +15 −0 fileupload/build.gradle
  5. +11 −0 markdown-plugin/build.gradle
  6. +7 −0 nanolets/build.gradle
  7. +10 −0 samples/build.gradle
  8. +16 −0 settings.gradle
  9. +11 −0 webserver/build.gradle
  10. +11 −0 websocket/build.gradle
@@ -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"
}
@@ -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"
}

0 comments on commit 952481e

Please sign in to comment.