view build.gradle @ 353:15061909f4da

add scripts
author nozomi
date Mon, 25 Sep 2017 19:52:20 +0900
parents 7a7d5d175c0c
children e13af3fd64cf
line wrap: on
line source

apply plugin: "java"
apply plugin: 'maven'
apply plugin: 'idea'

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

repositories {
  mavenCentral()
    maven { url "http://eaio.com/maven2" }
    maven { url "http://repo.maven.apache.org/maven2" }
    maven { url "http://www.cr.ie.u-ryukyu.ac.jp/maven"}
}

dependencies {
    compile "commons-collections:commons-collections:3.2.1"
    compile "org.apache.maven.surefire:surefire-junit4:2.13"
    compile group: 'com.google.guava', name: 'guava', version: '20.0'
    compile fileTree(dir: 'lib', include: '*.jar')
    compile group: 'junit', name: 'junit', version: '4.11'
    compile group: 'cr.ie.u_ryukyu.ac.jp', name: 'Alice', version: '1.1', ext: 'jar'
    compile group: 'org.msgpack', name: 'msgpack', version: '0.6.12'
}

jar {
  manifest {
    attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
  }
  from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
  archiveName = 'jungle-core.jar'
}

ext {
  mavenRepository = System.getenv()['CRMAVEN']+'/maven'
}


uploadArchives {
  repositories {
    mavenDeployer {
      repository(url: uri(mavenRepository))
    }
  }
}

task LogupdateTest(type: Jar) {
    exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
    baseName = "logupdateTest"
    manifest {
        attributes 'Main-Class': 'jp.ac.u_ryukyu.ie.cr.jungleNetwork.logupdate.LogupdateTest',
                'Implementation-Title': 'LogupdateTet',
                'Implementation-Description': 'Quickstart',
                'Implementation-Version': version,
                'Assembly-Date': new java.util.Date().toString()

    }
    from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } + sourceSets.test.output

    with jar
}