view build.gradle @ 253:9b0ad65ae5c0

RemoteTake object example worked.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 25 Jan 2020 18:55:14 +0900
parents e8f6c35e6b69
children 1f42a0903440
line wrap: on
line source

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'

sourceCompatibility = 8;
targetCompatibility = 8;

[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
group = 'cr.ie.u_ryukyu.ac.jp'
version = '1.0'

repositories {
    mavenCentral()
}

dependencies {
    compile fileTree(dir: 'lib', include: '*.jar')
    testCompile('org.junit.jupiter:junit-jupiter-api:5.2.0')
    compile group: 'org.javassist', name: 'javassist', version: '3.23.1-GA'
    //compile group: 'org.msgpack', name: 'msgpack-core', version: '0.8.20'
    //compile group: 'org.msgpack', name: 'jackson-dataformat-msgpack', version: '0.8.16'
    compile group: 'org.msgpack', name: 'msgpack', version: '0.6.12'
    compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.1'
    compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.1'
}

jar {
    exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
    manifest {
        attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
        attributes 'Multi-Release': 'true' // https://stackoverflow.com/questions/53049346/is-log4j2-compatible-with-java-11
    }

    from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
    archiveName = 'Christie.jar'
}

task christieStartTopologyManager(type: Jar) {
    exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
    baseName = "ChristieStartTopologyManager"
    manifest {
        attributes 'Main-Class': 'christie.topology.manager.StartTopologyManager',
                'Implementation-Title': 'StartTopologyManager',
                'Implementation-Description': 'Quickstart',
                'Implementation-Version': version
                // 'Assembly-Date': new java.util.Date().toString()

    }
    from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
    with jar
}


task christieStartTorqueTestTopology(type: Jar) {
    exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
    baseName = "ChristieStartTorqueTestTopology"
    manifest {
        attributes 'Main-Class': 'christie.test.topology.localTestTopology.StartTorqueTestTopology',
                'Implementation-Title': 'christieStartTorqueTestTopology',
                'Implementation-Description': 'Quickstart',
                'Implementation-Version': version
                // 'Assembly-Date': new java.util.Date().toString()

    }
    from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
    with jar
}

clean.doFirst {
    delete "out"
}