annotate build.gradle @ 223:1c37472fc00d

add catch command from editors
author ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
date Thu, 28 Nov 2019 15:12:37 +0900
parents fbe20887ca9f
children 9697be80d1f6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 apply plugin: 'java'
1
3ea61d0bfc34 add dependency proccess but not work
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
2 apply plugin: 'eclipse'
3ea61d0bfc34 add dependency proccess but not work
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
3 apply plugin: 'maven'
0
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
107
825e01825ad3 update java11
akahori
parents: 17
diff changeset
5 sourceCompatibility = 11;
825e01825ad3 update java11
akahori
parents: 17
diff changeset
6 targetCompatibility = 11;
0
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 group = 'cr.ie.u_ryukyu.ac.jp'
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 version = '1.0'
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 repositories {
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 mavenCentral()
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 }
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 dependencies {
12
b49a926cbdd9 add RemotePutTest and that is working
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents: 1
diff changeset
17 compile fileTree(dir: 'lib', include: '*.jar')
107
825e01825ad3 update java11
akahori
parents: 17
diff changeset
18 testCompile('org.junit.jupiter:junit-jupiter-api:5.2.0')
123
d92f0bbad1eb fix msgpack downgrade
akahori
parents: 120
diff changeset
19 //compile group: 'org.msgpack', name: 'msgpack-core', version: '0.8.16'
d92f0bbad1eb fix msgpack downgrade
akahori
parents: 120
diff changeset
20 //compile group: 'org.msgpack', name: 'jackson-dataformat-msgpack', version: '0.8.16'
d92f0bbad1eb fix msgpack downgrade
akahori
parents: 120
diff changeset
21 compile group: 'org.msgpack', name: 'msgpack', version: '0.6.12'
178
7f4d8d228a9b add log4j2
akahori
parents: 153
diff changeset
22 compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.1'
7f4d8d228a9b add log4j2
akahori
parents: 153
diff changeset
23 compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.1'
0
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 }
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 jar {
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 manifest {
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
180
fbe20887ca9f update config
akahori
parents: 178
diff changeset
30 attributes 'Multi-Release': 'true' // https://stackoverflow.com/questions/53049346/is-log4j2-compatible-with-java-11
0
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 }
178
7f4d8d228a9b add log4j2
akahori
parents: 153
diff changeset
32
0
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
c082039368f5 make project
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 archiveName = 'Christie.jar'
120
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
35 }
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
36
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
37 task christieStartTopologyManager(type: Jar) {
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
38 exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
39 baseName = "ChristieStartTopologyManager"
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
40 manifest {
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
41 attributes 'Main-Class': 'christie.topology.manager.StartTopologyManager',
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
42 'Implementation-Title': 'StartTopologyManager',
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
43 'Implementation-Description': 'Quickstart',
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
44 'Implementation-Version': version,
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
45 'Assembly-Date': new java.util.Date().toString()
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
46
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
47 }
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
48 from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
49 with jar
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
50 }
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
51
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
52
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
53 task christieStartTorqueTestTopology(type: Jar) {
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
54 exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
55 baseName = "ChristieStartTorqueTestTopology"
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
56 manifest {
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
57 attributes 'Main-Class': 'christie.test.topology.localTestTopology.StartTorqueTestTopology',
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
58 'Implementation-Title': 'christieStartTorqueTestTopology',
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
59 'Implementation-Description': 'Quickstart',
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
60 'Implementation-Version': version,
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
61 'Assembly-Date': new java.util.Date().toString()
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
62
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
63 }
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
64 from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
7ca232bc1009 update build.gradle
akahori
parents: 107
diff changeset
65 with jar
153
93f2e5736e62 update build.gradle clean out
akahori
parents: 123
diff changeset
66 }
93f2e5736e62 update build.gradle clean out
akahori
parents: 123
diff changeset
67
93f2e5736e62 update build.gradle clean out
akahori
parents: 123
diff changeset
68 clean.doFirst {
93f2e5736e62 update build.gradle clean out
akahori
parents: 123
diff changeset
69 delete "out"
93f2e5736e62 update build.gradle clean out
akahori
parents: 123
diff changeset
70 }