annotate build.gradle @ 0:d04e3e9069aa

first commifirst committ
author tatsuki
date Mon, 27 Jun 2016 04:24:05 +0900
parents
children 5acde010c6db
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
1 apply plugin: 'java'
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
2
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
3 sourceCompatibility = 1.8
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
4 targetCompatibility = 1.8
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
5 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
6 version = '1.0'
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
7
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
8 repositories {
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
9 mavenCentral()
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
10 maven { url "http://eaio.com/maven2" }
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
11 maven { url "http://repo.maven.apache.org/maven2" }
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
12 }
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
13
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
14 dependencies {
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
15 compile "commons-collections:commons-collections:3.2.1"
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
16 compile "org.apache.maven.surefire:surefire-junit4:2.13"
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
17 compile "com.google.guava:guava:12.0"
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
18 compile group: 'org.eclipse.jetty', name: 'jetty-server', version:'9.1.1.v20140108'
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
19 compile group: 'org.eclipse.jetty', name: 'jetty-servlet', version:'9.2.1.v20140609'
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
20 testCompile group: 'junit', name: 'junit', version: '4.11'
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
21 compile group: 'junit', name: 'junit', version: '4.11'
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
22 compile group: 'org.hectorclient', name: 'hector-core', version:'1.1-2'
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
23 compile(group: 'org.apache.cassandra', name: 'cassandra-all', version:'1.2.1') {
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
24 exclude(module: 'slf4j-log4j12')
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
25 exclude(module: 'log4j')
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
26 }
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
27
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
28 jar {
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
29 manifest {
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
30 attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
31 }
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
32 from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
33 archiveName = 'jungle-core.jar'
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
34 }
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
35
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
36 uploadArchives {
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
37 repositories {
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
38 flatDir {
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
39 dirs '.'
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
40 }
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
41 }
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
42 }
d04e3e9069aa first commifirst committ
tatsuki
parents:
diff changeset
43 }