Skip to content
Snippets Groups Projects
Commit 7d2a5f95 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

move tasks to file

parent 74f559e1
No related branches found
No related tags found
1 merge request!37Maven Registry
apply plugin: "com.star-zero.gradle.githook"
apply plugin: "com.github.spotbugs"
apply plugin: "com.diffplug.gradle.spotless"
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs.add("-parameters")
}
tasks.withType(JavaExec) {
jvmArgs('-noverify', '-XX:TieredStopAtLevel=1', '-Dcom.sun.management.jmxremote')
}
task nshmpLibArtifacts(type: Copy) {
from {
configurations.nshmp.collect { zipTree(it) }
}
into nshmpLib
}
/* SpotBugs */
tasks.withType(com.github.spotbugs.snom.SpotBugsTask) {
dependsOn nshmpLibArtifacts
reports {
html {
enabled true
stylesheet = 'fancy-hist.xsl'
}
}
}
/* Spotless */
tasks.withType(com.diffplug.gradle.spotless.SpotlessExtension) {
dependsOn nshmpLibArtifacts
}
/* Githook */
tasks.withType(com.star_zero.gradle.githook.GithookExtension) {
dependsOn nshmpLibArtifacts
}
/* Run UpdateSwagger */
task swagger(type: JavaExec) {
doFirst {
mkdir swaggerDir
}
classpath sourceSets.main.runtimeClasspath
main = "gov.usgs.earthquake.nshmp.netcdf.swagger.UpdateSwagger"
}
task swaggerClean(type: Delete) {
delete swaggerDir
}
task libsClean(type: Delete) {
delete libsDir
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment