Newer
Older
id "com.diffplug.spotless" version "${spotlessVersion}"
id "com.github.johnrengelman.shadow" version "${shadowVersion}"
id "com.github.node-gradle.node" version "${nodePluginVersion}"
id "com.palantir.git-version" version "${gitVersionVersion}"
id "com.star-zero.gradle.githook" version "${githooksVersion}"
task runAashto(type: JavaExec) {
dependsOn(":src:aashto:run")
task runHazard(type: JavaExec) {
dependsOn(":src:hazard:run")
apply from: "${rootDir}/gradle/node.gradle"
subprojects {
apply plugin: "application"
apply plugin: "com.diffplug.spotless"
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "com.github.node-gradle.node"
apply plugin: "com.github.spotbugs"
apply plugin: "com.star-zero.gradle.githook"
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "eclipse-wtp"
apply plugin: "jacoco"
apply plugin: "java"
application {
mainClass = "gov.usgs.earthquake.nshmp.netcdf.www.Application"
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
apply from: "${rootDir}/gradle/app-version.gradle"
apply from: "${rootDir}/gradle/dependencies.gradle"
apply from: "${rootDir}/gradle/repositories.gradle"
apply from: "${rootDir}/gradle/spotbugs.gradle"
apply from: "${rootDir}/gradle/spotless.gradle"
jacoco {
toolVersion = "0.8.4"
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
}
check.dependsOn jacocoTestReport
shadowJar {
mergeServiceFiles()
}
/* SpotBugs */
tasks.withType(com.github.spotbugs.snom.SpotBugsTask) {
reports {
html {
enabled true
stylesheet = 'fancy-hist.xsl'
}