0
|
1 apply plugin: 'java'
|
|
2
|
|
3 sourceCompatibility = 1.8
|
|
4 targetCompatibility = 1.8
|
|
5 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
6 version = '1.0'
|
|
7
|
|
8 repositories {
|
4
|
9 mavenCentral()
|
0
|
10 maven { url "http://eaio.com/maven2" }
|
4
|
11 maven { url "http://repo.maven.apache.org/maven2" }
|
0
|
12 }
|
|
13
|
|
14 dependencies {
|
4
|
15 compile fileTree(dir: 'lib', include: '*.jar')
|
|
16 compile "commons-collections:commons-collections:3.2.1"
|
0
|
17 compile "org.apache.maven.surefire:surefire-junit4:2.13"
|
|
18 compile "com.google.guava:guava:12.0"
|
4
|
19 compile group: 'org.eclipse.jetty', name: 'jetty-server', version: '9.1.1.v20140108'
|
|
20 compile group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '9.2.1.v20140609'
|
0
|
21 testCompile group: 'junit', name: 'junit', version: '4.11'
|
|
22 compile group: 'junit', name: 'junit', version: '4.11'
|
4
|
23 compile group: 'org.hectorclient', name: 'hector-core', version: '1.1-2'
|
|
24 compile(group: 'org.apache.cassandra', name: 'cassandra-all', version: '1.2.1') {
|
|
25 exclude(module: 'slf4j-log4j12')
|
0
|
26 exclude(module: 'log4j')
|
|
27 }
|
|
28
|
4
|
29 jar {
|
|
30 manifest {
|
|
31 attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
|
|
32 }
|
|
33 from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
|
34 archiveName = 'jungle-core.jar'
|
0
|
35 }
|
|
36
|
4
|
37 uploadArchives {
|
|
38 repositories {
|
|
39 flatDir {
|
|
40 dirs '.'
|
|
41 }
|
|
42 }
|
0
|
43 }
|
|
44 }
|