annotate build.gradle @ 353:15061909f4da

add scripts
author nozomi
date Mon, 25 Sep 2017 19:52:20 +0900
parents 7a7d5d175c0c
children e13af3fd64cf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
66
Kanagawa TATSUKI <tatsuki@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 apply plugin: "java"
257
69fd63676e8b edit build.gradle
tatsuki
parents: 256
diff changeset
2 apply plugin: 'maven'
319
b606b727dc2b fix editor data export bux
tatsuki
parents: 260
diff changeset
3 apply plugin: 'idea'
255
fdd7ed360a48 add uploadArchives in build.gradke
tatsuki
parents: 249
diff changeset
4
133
c4846688f635 change gradle java ver
one
parents: 107
diff changeset
5 sourceCompatibility = 1.8
c4846688f635 change gradle java ver
one
parents: 107
diff changeset
6 targetCompatibility = 1.8
66
Kanagawa TATSUKI <tatsuki@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
333
851886eef334 fix version
suruga
parents: 328
diff changeset
8 version = '1.1'
257
69fd63676e8b edit build.gradle
tatsuki
parents: 256
diff changeset
9 group = 'cr.ie.u_ryukyu.ac.jp'
66
Kanagawa TATSUKI <tatsuki@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
Kanagawa TATSUKI <tatsuki@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 repositories {
249
803ab4479b7e add filtering key iterator
tatsuki
parents: 223
diff changeset
12 mavenCentral()
223
f0cc848b9af6 merge jungle-network but test faild
tatsuki
parents: 222
diff changeset
13 maven { url "http://eaio.com/maven2" }
253
67541eebcaac rename some files
one
parents: 252
diff changeset
14 maven { url "http://repo.maven.apache.org/maven2" }
328
2de41738dc3b fix build.log
suruga
parents: 326
diff changeset
15 maven { url "http://www.cr.ie.u-ryukyu.ac.jp/maven"}
66
Kanagawa TATSUKI <tatsuki@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 }
Kanagawa TATSUKI <tatsuki@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17
Kanagawa TATSUKI <tatsuki@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 dependencies {
193
6819a376de75 add mongoDB benchMark from DataBaseBenchMark.java
tatsuki
parents: 172
diff changeset
19 compile "commons-collections:commons-collections:3.2.1"
66
Kanagawa TATSUKI <tatsuki@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 compile "org.apache.maven.surefire:surefire-junit4:2.13"
320
tatsuki
parents: 319
diff changeset
21 compile group: 'com.google.guava', name: 'guava', version: '20.0'
193
6819a376de75 add mongoDB benchMark from DataBaseBenchMark.java
tatsuki
parents: 172
diff changeset
22 compile fileTree(dir: 'lib', include: '*.jar')
257
69fd63676e8b edit build.gradle
tatsuki
parents: 256
diff changeset
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
Kanagawa TATSUKI <tatsuki@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 }
Kanagawa TATSUKI <tatsuki@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27
Kanagawa TATSUKI <tatsuki@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 jar {
249
803ab4479b7e add filtering key iterator
tatsuki
parents: 223
diff changeset
29 manifest {
803ab4479b7e add filtering key iterator
tatsuki
parents: 223
diff changeset
30 attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
803ab4479b7e add filtering key iterator
tatsuki
parents: 223
diff changeset
31 }
803ab4479b7e add filtering key iterator
tatsuki
parents: 223
diff changeset
32 from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
803ab4479b7e add filtering key iterator
tatsuki
parents: 223
diff changeset
33 archiveName = 'jungle-core.jar'
66
Kanagawa TATSUKI <tatsuki@ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 }
107
one
parents: 66
diff changeset
35
257
69fd63676e8b edit build.gradle
tatsuki
parents: 256
diff changeset
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
69fd63676e8b edit build.gradle
tatsuki
parents: 256
diff changeset
38 }
69fd63676e8b edit build.gradle
tatsuki
parents: 256
diff changeset
39
69fd63676e8b edit build.gradle
tatsuki
parents: 256
diff changeset
40
69fd63676e8b edit build.gradle
tatsuki
parents: 256
diff changeset
41 uploadArchives {
69fd63676e8b edit build.gradle
tatsuki
parents: 256
diff changeset
42 repositories {
69fd63676e8b edit build.gradle
tatsuki
parents: 256
diff changeset
43 mavenDeployer {
69fd63676e8b edit build.gradle
tatsuki
parents: 256
diff changeset
44 repository(url: uri(mavenRepository))
69fd63676e8b edit build.gradle
tatsuki
parents: 256
diff changeset
45 }
69fd63676e8b edit build.gradle
tatsuki
parents: 256
diff changeset
46 }
69fd63676e8b edit build.gradle
tatsuki
parents: 256
diff changeset
47 }
69fd63676e8b edit build.gradle
tatsuki
parents: 256
diff changeset
48
353
15061909f4da add scripts
nozomi
parents: 338
diff changeset
49 task LogupdateTest(type: Jar) {
15061909f4da add scripts
nozomi
parents: 338
diff changeset
50 exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
15061909f4da add scripts
nozomi
parents: 338
diff changeset
51 baseName = "logupdateTest"
15061909f4da add scripts
nozomi
parents: 338
diff changeset
52 manifest {
15061909f4da add scripts
nozomi
parents: 338
diff changeset
53 attributes 'Main-Class': 'jp.ac.u_ryukyu.ie.cr.jungleNetwork.logupdate.LogupdateTest',
15061909f4da add scripts
nozomi
parents: 338
diff changeset
54 'Implementation-Title': 'LogupdateTet',
15061909f4da add scripts
nozomi
parents: 338
diff changeset
55 'Implementation-Description': 'Quickstart',
15061909f4da add scripts
nozomi
parents: 338
diff changeset
56 'Implementation-Version': version,
15061909f4da add scripts
nozomi
parents: 338
diff changeset
57 'Assembly-Date': new java.util.Date().toString()
257
69fd63676e8b edit build.gradle
tatsuki
parents: 256
diff changeset
58
353
15061909f4da add scripts
nozomi
parents: 338
diff changeset
59 }
15061909f4da add scripts
nozomi
parents: 338
diff changeset
60 from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } + sourceSets.test.output
15061909f4da add scripts
nozomi
parents: 338
diff changeset
61
15061909f4da add scripts
nozomi
parents: 338
diff changeset
62 with jar
15061909f4da add scripts
nozomi
parents: 338
diff changeset
63 }