2017-03-21 11:58:19 -07:00
|
|
|
version = '1.0'
|
2015-11-19 14:39:21 -08:00
|
|
|
|
2017-03-21 11:58:19 -07:00
|
|
|
buildscript {
|
|
|
|
apply from: 'gradle/scripts/repositories.gradle'
|
2017-03-15 13:53:43 -07:00
|
|
|
|
2017-03-21 11:58:19 -07:00
|
|
|
buildscript.repositories.addAll(project.repositories)
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath 'gradle.plugin.com.palantir:jacoco-coverage:0.3.0'
|
2017-04-04 21:35:14 -07:00
|
|
|
classpath 'gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.13.1'
|
2017-03-21 11:58:19 -07:00
|
|
|
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.1'
|
2017-04-04 21:35:14 -07:00
|
|
|
classpath 'com.moowork.gradle:gradle-node-plugin:1.1.1'
|
2017-03-21 11:58:19 -07:00
|
|
|
}
|
|
|
|
}
|
2016-10-19 17:08:07 -07:00
|
|
|
|
2016-08-03 15:50:00 -07:00
|
|
|
configurations.all {
|
|
|
|
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
|
|
|
|
exclude group: 'log4j'
|
|
|
|
|
|
|
|
resolutionStrategy {
|
|
|
|
dependencySubstitution {
|
|
|
|
substitute module('org.slf4j:slf4j-log4j12') with module('ch.qos.logback:logback-classic:1.1.7')
|
|
|
|
//prefer 'log4j-over-slf4j' over 'log4j'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-19 14:39:21 -08:00
|
|
|
subprojects {
|
|
|
|
apply plugin: 'java'
|
2016-10-19 17:08:07 -07:00
|
|
|
|
2015-11-19 14:56:20 -08:00
|
|
|
task excludegroup(type: Test) {
|
|
|
|
useTestNG() {
|
|
|
|
excludeGroups 'needConfig'
|
|
|
|
}
|
|
|
|
|
|
|
|
testLogging {
|
|
|
|
showStandardStreams = true
|
|
|
|
}
|
|
|
|
}
|
2015-11-19 14:39:21 -08:00
|
|
|
|
2016-08-01 13:00:39 -07:00
|
|
|
task buildWithWarning(type: JavaCompile, dependsOn: build) {
|
|
|
|
compileJava.options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
|
|
|
|
}
|
2015-11-19 14:39:21 -08:00
|
|
|
}
|
2016-05-16 14:58:28 +02:00
|
|
|
|
2017-03-21 11:58:19 -07:00
|
|
|
apply from: 'gradle/scripts/coverage.gradle'
|
|
|
|
apply from: 'gradle/scripts/dependency.gradle'
|
|
|
|
apply from: 'gradle/scripts/ide.gradle'
|
|
|
|
apply from: 'gradle/scripts/license.gradle'
|
|
|
|
|
2016-05-16 14:58:28 +02:00
|
|
|
task wrapper(type: Wrapper) {
|
2016-06-22 19:37:55 -07:00
|
|
|
gradleVersion = '2.14'
|
2016-05-16 14:58:28 +02:00
|
|
|
}
|
2017-03-23 16:46:36 -07:00
|
|
|
|
|
|
|
if (project.hasProperty('overrideBuildEnvironment')) {
|
|
|
|
//The property is automatically passed to the Gradle build when the project is built at LinkedIn
|
|
|
|
//The property contains the file path to a script plugin that 'adapts' this OS project to LinkedIn
|
|
|
|
//In order to adapt the project, we need to apply this script plugin:
|
|
|
|
apply from: project.overrideBuildEnvironment
|
|
|
|
}
|