0
|
1 apply plugin: 'java'
|
|
2
|
|
3 sourceCompatibility = 1.8
|
|
4 targetCompatibility = 1.8
|
|
5 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
6 version = '1.0'
|
|
7
|
|
8 repositories {
|
7
|
9 mavenCentral()
|
8
|
10 maven { url "http://www.cr.ie.u-ryukyu.ac.jp/maven"}
|
0
|
11 }
|
|
12
|
|
13 dependencies {
|
4
|
14 compile fileTree(dir: 'lib', include: '*.jar')
|
|
15 compile "commons-collections:commons-collections:3.2.1"
|
0
|
16 compile "org.apache.maven.surefire:surefire-junit4:2.13"
|
|
17 compile "com.google.guava:guava:12.0"
|
7
|
18 compile group: 'org.eclipse.jetty', name: 'jetty-server', version: '9.3.13.v20161014'
|
|
19 compile group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '9.3.13.v20161014'
|
|
20 compile group: 'org.eclipse.jetty', name: 'jetty-webapp', version: '9.3.13.v20161014'
|
0
|
21 compile group: 'junit', name: 'junit', version: '4.11'
|
4
|
22 compile group: 'org.hectorclient', name: 'hector-core', version: '1.1-2'
|
7
|
23 compile group: 'cr.ie.u_ryukyu.ac.jp', name: 'jungle-core', version: '1.0', ext: 'jar'
|
|
24 compile group: 'cr.ie.u_ryukyu.ac.jp', name: 'Alice', version: '1.1', ext: 'jar'
|
|
25 jar {
|
|
26 manifest {
|
11
|
27 attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version,
|
|
28 "Main-Class": 'jp.ac.u_ryukyu.ie.cr.bbs.browsing.App'
|
7
|
29 }
|
|
30 from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
0
|
31 }
|
|
32
|
11
|
33 uploadArchives {
|
|
34 repositories {
|
|
35 flatDir {
|
|
36 dirs '.'
|
|
37 }
|
|
38 }
|
0
|
39 }
|
|
40 }
|
11
|
41
|
|
42 task jungleBrowser(type: Jar) {
|
|
43 manifest {
|
|
44 attributes(
|
|
45 "Main-Class": 'jp.ac.u_ryukyu.ie.cr.bbs.browsing.App',
|
|
46 "Implementation-Title": 'JungleBrowser',
|
|
47 "Implementation-Description": 'Quickstart',
|
|
48 "Implementation-Version": version,
|
|
49 "Assembly-Date": new java.util.Date().toString()
|
|
50 )
|
|
51 baseName = "jungleBrowser"
|
|
52 from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
|
53 }
|