datahub/build.gradle
Mars Lan d1e644a7ec Add gradle support for building and packaging the ember web app (#409)
* Add gradle support for building and packaging the ember web app, alleviating the manual instlalation of node/npm/bower/ember.

* Remove generated files under web/public

* Update ember.gradle
2017-07-10 09:55:15 -07:00

61 lines
1.7 KiB
Groovy

version = '1.0'
buildscript {
apply from: 'gradle/scripts/repositories.gradle'
buildscript.repositories.addAll(project.repositories)
dependencies {
classpath 'gradle.plugin.com.palantir:jacoco-coverage:0.3.0'
classpath 'gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.13.1'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.1'
classpath 'com.moowork.gradle:gradle-node-plugin:1.1.1'
}
}
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'
}
}
}
subprojects {
apply plugin: 'java'
task excludegroup(type: Test) {
useTestNG() {
excludeGroups 'needConfig'
}
testLogging {
showStandardStreams = true
}
}
task buildWithWarning(type: JavaCompile, dependsOn: build) {
compileJava.options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
}
}
apply from: 'gradle/scripts/coverage.gradle'
apply from: 'gradle/scripts/dependency.gradle'
apply from: 'gradle/scripts/ide.gradle'
apply from: 'gradle/scripts/license.gradle'
task wrapper(type: Wrapper) {
gradleVersion = '2.14'
}
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
}