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 {
|
|
9 mavenCentral()
|
|
10 maven { url "http://eaio.com/maven2" }
|
|
11 maven { url "http://repo.maven.apache.org/maven2" }
|
|
12 }
|
|
13
|
|
14 dependencies {
|
|
15 compile "commons-collections:commons-collections:3.2.1"
|
|
16 compile "org.apache.maven.surefire:surefire-junit4:2.13"
|
|
17 compile "com.google.guava:guava:12.0"
|
|
18 compile group: 'org.eclipse.jetty', name: 'jetty-server', version:'9.1.1.v20140108'
|
|
19 compile group: 'org.eclipse.jetty', name: 'jetty-servlet', version:'9.2.1.v20140609'
|
|
20 testCompile group: 'junit', name: 'junit', version: '4.11'
|
|
21 compile group: 'junit', name: 'junit', version: '4.11'
|
|
22 compile group: 'org.hectorclient', name: 'hector-core', version:'1.1-2'
|
|
23 compile(group: 'org.apache.cassandra', name: 'cassandra-all', version:'1.2.1') {
|
|
24 exclude(module: 'slf4j-log4j12')
|
|
25 exclude(module: 'log4j')
|
|
26 }
|
|
27
|
|
28 jar {
|
|
29 manifest {
|
|
30 attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
|
|
31 }
|
|
32 from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
|
33 archiveName = 'jungle-core.jar'
|
|
34 }
|
|
35
|
|
36 uploadArchives {
|
|
37 repositories {
|
|
38 flatDir {
|
|
39 dirs '.'
|
|
40 }
|
|
41 }
|
|
42 }
|
|
43 }
|