view build.gradle @ 335:bd7abea6df90

msp0.6.0
author suruga
date Tue, 08 Aug 2017 16:27:01 +0900
parents 2de41738dc3b
children a8e96203367d
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.0'
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.0'
}

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


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