numass-framework/numass.gradle

45 lines
1.1 KiB
Groovy
Raw Normal View History

2015-12-18 16:20:47 +03:00
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'com.github.johnrengelman.shadow'
group = 'inr.numass'
version = '1.0.0'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
configurations {
deployerJars
}
repositories {
2016-04-24 22:17:52 +03:00
jcenter()
2015-12-18 16:20:47 +03:00
mavenCentral()
maven { url "http://www.inr.ru/~nozik/maven2/" }
// mavenLocal()
}
dependencies {
// Adding dependencies here will add the dependencies to each subproject.
testCompile group: 'junit', name: 'junit', version:'4.+'
deployerJars "org.apache.maven.wagon:wagon-ssh:2.8"
}
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.deployerJars
repository(url: "scp://al20.inr.ru/home/nozik/public_html/maven2"){
authentication(userName: "nozik", privateKey: "C:\\Users\\darksnake\\Dropbox\\al20_private_key_openSSH")
}
}
}
shadowJar {
dependencies {
mergeServiceFiles()
}
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
}