view build.gradle @ 651:058bff2123c8

fix getValue
author suruga
date Wed, 07 Feb 2018 19:02:56 +0900
parents 4835788cbb7e
children
line wrap: on
line source

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'

repositories {
    mavenCentral()
    maven { url "http://www.cr.ie.u-ryukyu.ac.jp/maven"}
}

dependencies {
    compile fileTree(dir: 'lib', include: '*.jar')
    compile group: 'com.massisframework.j3d', name: 'java3d-core', version: '1.6.0'
    compile group: 'com.massisframework.j3d', name: 'vecmath', version: '1.6.0.1'
    compile group: 'org.msgpack', name: 'msgpack', version: '0.6.12'
}

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()['CRMAVEN']+'/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
}