view build.gradle @ 320:e3e4ffd746cb

commit
author tatsuki
date Tue, 07 Feb 2017 21:34:21 +0900
parents b606b727dc2b
children 14190fd751cf
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/hg/maven/raw-file/e6b119647469/"}
}

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'
}

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))
    }
  }
}