1
|
1 apply plugin: "java"
|
|
2 apply plugin: "eclipse"
|
|
3
|
|
4 sourceCompatibility = 1.8
|
|
5 targetCompatibility = 1.8
|
|
6 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
7 version = '1.0'
|
|
8
|
|
9 repositories {
|
|
10 mavenCentral()
|
|
11 }
|
|
12
|
|
13 dependencies {
|
|
14 compile "org.eclipse.jetty:jetty-server:9.1.1.v20140108"
|
|
15 compile "org.eclipse.jetty:jetty-servlet:9.1.1.v20140108"
|
|
16 compile "org.eclipse.jetty:jetty-servlets:9.1.1.v20140108"
|
|
17 testCompile "junit:junit:4.7"
|
|
18 }
|
|
19
|
|
20
|
|
21 jar {
|
|
22 manifest {
|
|
23 attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
|
|
24 }
|
|
25 from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
|
26 archiveName = 'jungle-core.jar'
|
|
27 }
|
|
28
|
|
29 uploadArchives {
|
|
30 repositories {
|
|
31 flatDir {
|
|
32 dirs '.'
|
|
33 }
|
|
34 }
|
|
35 }
|
|
36
|