Mercurial > hg > Database > Alice
annotate build.gradle @ 612:86b39f5bf1d7 dispose
topologymanager jar execution
author | suruga |
---|---|
date | Wed, 19 Apr 2017 21:36:06 +0900 |
parents | e8280077c2f9 |
children | 82736f6fae50 9ac910236f59 |
rev | line source |
---|---|
342 | 1 apply plugin: 'java' |
2 apply plugin: 'eclipse' | |
439 | 3 apply plugin: 'maven' |
342 | 4 |
357 | 5 sourceCompatibility = 1.8 |
6 targetCompatibility = 1.8 | |
346
d46c42352e4f
change images position. It is under src/main/resources
sugi
parents:
342
diff
changeset
|
7 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' |
439 | 8 |
9 group = 'cr.ie.u_ryukyu.ac.jp' | |
553 | 10 version = '1.1' |
342 | 11 |
12 dependencies { | |
442 | 13 compile fileTree(dir: 'lib', include: '*.jar') |
342 | 14 } |
15 | |
16 jar { | |
564
e8280077c2f9
change gradle for Error:A JNI error has occurred, please check your installation and try again
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
563
diff
changeset
|
17 exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA' |
342 | 18 manifest { |
346
d46c42352e4f
change images position. It is under src/main/resources
sugi
parents:
342
diff
changeset
|
19 attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version |
342 | 20 } |
346
d46c42352e4f
change images position. It is under src/main/resources
sugi
parents:
342
diff
changeset
|
21 from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } |
442 | 22 archiveName = 'Alice.jar' |
342 | 23 } |
353 | 24 |
439 | 25 ext { |
564
e8280077c2f9
change gradle for Error:A JNI error has occurred, please check your installation and try again
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
563
diff
changeset
|
26 mavenRepository = System.getenv()['HOME']+'/Documents/workspace/maven' |
439 | 27 } |
28 | |
29 uploadArchives { | |
30 repositories { | |
31 mavenDeployer { | |
32 repository(url: uri(mavenRepository)) | |
33 } | |
34 } | |
35 } | |
612 | 36 task AliceTopologyManager(type: Jar) { |
37 exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA' | |
38 baseName = "aliceTopologyManager" | |
39 manifest { | |
40 attributes 'Main-Class': 'alice.topology.manager.TopologyManager', | |
41 'Implementation-Title': 'TopologyManager', | |
42 'Implementation-Description': 'Quickstart', | |
43 'Implementation-Version': version, | |
44 'Assembly-Date': new java.util.Date().toString() | |
45 | |
46 } | |
47 from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } | |
48 with jar | |
49 } |