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

Update gradle build

parent 7e9c3097
No related branches found
No related tags found
2 merge requests!577Production Release | nshmp-haz,!574Resolves - Gradle Build
...@@ -31,7 +31,7 @@ plugins { ...@@ -31,7 +31,7 @@ plugins {
id "application" id "application"
id "com.diffplug.spotless" version "${spotlessVersion}" id "com.diffplug.spotless" version "${spotlessVersion}"
id "com.github.johnrengelman.shadow" version "${shadowVersion}" id "com.github.johnrengelman.shadow" version "${shadowVersion}"
id "com.github.node-gradle.node" version "${nodeVersion}" id "com.github.node-gradle.node" version "${nodePluginVersion}"
id "com.github.spotbugs" version "${spotbugsVersion}" id "com.github.spotbugs" version "${spotbugsVersion}"
id "com.star-zero.gradle.githook" version "${githooksVersion}" id "com.star-zero.gradle.githook" version "${githooksVersion}"
id "eclipse-wtp" id "eclipse-wtp"
...@@ -40,32 +40,25 @@ plugins { ...@@ -40,32 +40,25 @@ plugins {
id "maven-publish" id "maven-publish"
} }
configurations {
nshmp
}
apply from: "${projectDir}/gradle/dependencies.gradle" apply from: "${projectDir}/gradle/dependencies.gradle"
apply from: "${projectDir}/gradle/ext.gradle" apply from: "${projectDir}/gradle/ext.gradle"
apply from: "${projectDir}/gradle/jar.gradle" apply from: "${projectDir}/gradle/jar.gradle"
apply from: "${projectDir}/gradle/git-hooks.gradle"
apply from: "${projectDir}/gradle/node.gradle"
apply from: "${projectDir}/gradle/repositories.gradle" apply from: "${projectDir}/gradle/repositories.gradle"
apply from: "${projectDir}/gradle/spotbugs.gradle"
apply from: "${projectDir}/gradle/spotless.gradle"
sourceCompatibility = JavaVersion.VERSION_11
compileJava.options.encoding = "UTF-8"
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
mainClassName = "gov.usgs.earthquake.nshmp.www.Application" mainClassName = "gov.usgs.earthquake.nshmp.www.Application"
sourceCompatibility = JavaVersion.VERSION_11
jacoco { jacoco {
toolVersion = "0.8.4" toolVersion = "0.8.4"
} }
test {
useJUnitPlatform()
filter {
excludeTestsMatching "gov.usgs.earthquake.nshmp.model.NshmTestsLarge"
}
}
jacocoTestReport { jacocoTestReport {
reports { reports {
xml.enabled true xml.enabled true
...@@ -87,7 +80,13 @@ tasks.withType(JavaCompile) { ...@@ -87,7 +80,13 @@ tasks.withType(JavaCompile) {
} }
tasks.withType(JavaExec) { tasks.withType(JavaExec) {
jvmArgs('-noverify', '-Xms2g', '-Xmx8g', '-XX:TieredStopAtLevel=1', '-Dcom.sun.management.jmxremote') jvmArgs(
'-noverify',
'-Xms2g',
'-Xmx8g',
'-XX:TieredStopAtLevel=1',
'-Dcom.sun.management.jmxremote',
)
} }
/* Add HTML reports to SpotBugs */ /* Add HTML reports to SpotBugs */
...@@ -105,15 +104,10 @@ task libsClean(type: Delete) { ...@@ -105,15 +104,10 @@ task libsClean(type: Delete) {
} }
clean.dependsOn libsClean clean.dependsOn libsClean
gradle.afterProject { test {
copy { useJUnitPlatform()
from {
configurations.nshmp.collect { zipTree(it) } filter {
} excludeTestsMatching "gov.usgs.earthquake.nshmp.model.NshmTestsLarge"
into nshmpLib
} }
apply from: "${nshmpLibGradleDir}/git-hooks.gradle"
apply from: "${nshmpLibGradleDir}/node.gradle"
apply from: "${nshmpLibGradleDir}/spotbugs.gradle"
apply from: "${nshmpLibGradleDir}/spotless.gradle"
} }
...@@ -7,7 +7,8 @@ jacksonVersion = 2.9.0 ...@@ -7,7 +7,8 @@ jacksonVersion = 2.9.0
junitVersion = 5.8.2 junitVersion = 5.8.2
micronautVersion = 2.4.1 micronautVersion = 2.4.1
mnPluginVersion = 1.4.2 mnPluginVersion = 1.4.2
nodeVersion = 3.0.1 nodePluginVersion = 3.0.1
nodeVersion = 16.3.0
nshmpLibVersion = 0.8.1 nshmpLibVersion = 0.8.1
nshmpWsUtilsVersion = 0.1.2 nshmpWsUtilsVersion = 0.1.2
shadowVersion = 5.2.0 shadowVersion = 5.2.0
......
dependencies { dependencies {
// NSHMP
implementation "ghsc:nshmp-lib:${nshmpLibVersion}" implementation "ghsc:nshmp-lib:${nshmpLibVersion}"
implementation "ghsc:nshmp-ws-utils:${nshmpWsUtilsVersion}" implementation "ghsc:nshmp-ws-utils:${nshmpWsUtilsVersion}"
nshmp "ghsc:nshmp-lib:${nshmpLibVersion}@zip"
// AWS // AWS
implementation "com.amazonaws:aws-lambda-java-core:${awsLambdaCoreVersion}" implementation "com.amazonaws:aws-lambda-java-core:${awsLambdaCoreVersion}"
......
plugins { plugins {
id "com.alexvasilkov.git-dependencies" version "2.0.1" id "com.alexvasilkov.git-dependencies" version "2.0.3"
} }
rootProject.name = "nshmp-haz" rootProject.name = "nshmp-haz"
...@@ -19,7 +19,7 @@ git { ...@@ -19,7 +19,7 @@ git {
if (user && pass) { if (user && pass) {
fetch("https://code.usgs.gov/ghsc/nshmp/nshms/nshm-hawaii.git", { fetch("https://code.usgs.gov/ghsc/nshmp/nshms/nshm-hawaii.git", {
name "nshmp-haz-dep--nshm-hi-2021" name "nshmp-haz-dep--nshm-hi-2021"
tag "main" tag "2.0.0"
}) })
} }
} }
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