Mercurial > hg > Members > shoshi > jungle > jungle-core
annotate build.gradle @ 353:15061909f4da
add scripts
author | nozomi |
---|---|
date | Mon, 25 Sep 2017 19:52:20 +0900 |
parents | 7a7d5d175c0c |
children | e13af3fd64cf |
rev | line source |
---|---|
66 | 1 apply plugin: "java" |
257 | 2 apply plugin: 'maven' |
319 | 3 apply plugin: 'idea' |
255 | 4 |
133 | 5 sourceCompatibility = 1.8 |
6 targetCompatibility = 1.8 | |
66 | 7 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' |
333 | 8 version = '1.1' |
257 | 9 group = 'cr.ie.u_ryukyu.ac.jp' |
66 | 10 |
11 repositories { | |
249 | 12 mavenCentral() |
223 | 13 maven { url "http://eaio.com/maven2" } |
253 | 14 maven { url "http://repo.maven.apache.org/maven2" } |
328 | 15 maven { url "http://www.cr.ie.u-ryukyu.ac.jp/maven"} |
66 | 16 } |
17 | |
18 dependencies { | |
193 | 19 compile "commons-collections:commons-collections:3.2.1" |
66 | 20 compile "org.apache.maven.surefire:surefire-junit4:2.13" |
320 | 21 compile group: 'com.google.guava', name: 'guava', version: '20.0' |
193 | 22 compile fileTree(dir: 'lib', include: '*.jar') |
257 | 23 compile group: 'junit', name: 'junit', version: '4.11' |
338
7a7d5d175c0c
add CodeSegment for Network
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
336
diff
changeset
|
24 compile group: 'cr.ie.u_ryukyu.ac.jp', name: 'Alice', version: '1.1', ext: 'jar' |
7a7d5d175c0c
add CodeSegment for Network
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
336
diff
changeset
|
25 compile group: 'org.msgpack', name: 'msgpack', version: '0.6.12' |
66 | 26 } |
27 | |
28 jar { | |
249 | 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' | |
66 | 34 } |
107 | 35 |
257 | 36 ext { |
338
7a7d5d175c0c
add CodeSegment for Network
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
336
diff
changeset
|
37 mavenRepository = System.getenv()['CRMAVEN']+'/maven' |
257 | 38 } |
39 | |
40 | |
41 uploadArchives { | |
42 repositories { | |
43 mavenDeployer { | |
44 repository(url: uri(mavenRepository)) | |
45 } | |
46 } | |
47 } | |
48 | |
353 | 49 task LogupdateTest(type: Jar) { |
50 exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA' | |
51 baseName = "logupdateTest" | |
52 manifest { | |
53 attributes 'Main-Class': 'jp.ac.u_ryukyu.ie.cr.jungleNetwork.logupdate.LogupdateTest', | |
54 'Implementation-Title': 'LogupdateTet', | |
55 'Implementation-Description': 'Quickstart', | |
56 'Implementation-Version': version, | |
57 'Assembly-Date': new java.util.Date().toString() | |
257 | 58 |
353 | 59 } |
60 from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } + sourceSets.test.output | |
61 | |
62 with jar | |
63 } |