apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'maven' sourceCompatibility = 1.8 targetCompatibility = 1.8 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' group = 'cr.ie.u_ryukyu.ac.jp' version = '1.1' dependencies { compile fileTree(dir: 'lib', include: '*.jar') } jar { exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA' manifest { attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version } from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } archiveName = 'Alice.jar' } ext { mavenRepository = System.getenv()['HOME']+'/Documents/workspace/maven' } uploadArchives { repositories { mavenDeployer { repository(url: uri(mavenRepository)) } } } task AliceTopologyManager(type: Jar) { exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA' baseName = "aliceTopologyManager" manifest { attributes 'Main-Class': 'alice.topology.manager.TopologyManager', 'Implementation-Title': 'TopologyManager', 'Implementation-Description': 'Quickstart', 'Implementation-Version': version, 'Assembly-Date': new java.util.Date().toString() } from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } with jar }