Mercurial > hg > Members > shoshi > jungle > bbs
view build.gradle @ 11:3644acaf2c4a
fix build.gradle
author | suruga |
---|---|
date | Sat, 22 Jul 2017 20:28:20 +0900 |
parents | 4a66328f0141 |
children | f7cdb6374bdb |
line wrap: on
line source
apply plugin: 'java' sourceCompatibility = 1.8 targetCompatibility = 1.8 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' version = '1.0' repositories { mavenCentral() maven { url "http://www.cr.ie.u-ryukyu.ac.jp/maven"} } dependencies { compile fileTree(dir: 'lib', include: '*.jar') compile "commons-collections:commons-collections:3.2.1" compile "org.apache.maven.surefire:surefire-junit4:2.13" compile "com.google.guava:guava:12.0" compile group: 'org.eclipse.jetty', name: 'jetty-server', version: '9.3.13.v20161014' compile group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '9.3.13.v20161014' compile group: 'org.eclipse.jetty', name: 'jetty-webapp', version: '9.3.13.v20161014' compile group: 'junit', name: 'junit', version: '4.11' compile group: 'org.hectorclient', name: 'hector-core', version: '1.1-2' compile group: 'cr.ie.u_ryukyu.ac.jp', name: 'jungle-core', version: '1.0', ext: 'jar' compile group: 'cr.ie.u_ryukyu.ac.jp', name: 'Alice', version: '1.1', ext: 'jar' jar { manifest { attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version, "Main-Class": 'jp.ac.u_ryukyu.ie.cr.bbs.browsing.App' } from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } uploadArchives { repositories { flatDir { dirs '.' } } } } task jungleBrowser(type: Jar) { manifest { attributes( "Main-Class": 'jp.ac.u_ryukyu.ie.cr.bbs.browsing.App', "Implementation-Title": 'JungleBrowser', "Implementation-Description": 'Quickstart', "Implementation-Version": version, "Assembly-Date": new java.util.Date().toString() ) baseName = "jungleBrowser" from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }