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

move repositories to file

parent 7d2a5f95
No related branches found
No related tags found
1 merge request!37Maven Registry
repositories {
jcenter()
maven {
url "https://artifacts.unidata.ucar.edu/repository/unidata-all/"
}
maven {
url "https://code.usgs.gov/api/v4/groups/160/-/packages/maven"
name "nshmp-lib"
credentials(HttpHeaderCredentials) {
name = 'Private-Token'
value = System.getenv("GITLAB_TOKEN")
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
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