Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-haz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-haz
Commits
84ba5636
Commit
84ba5636
authored
3 years ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
Update gradle build
parent
7e9c3097
No related branches found
No related tags found
2 merge requests
!577
Production Release | nshmp-haz
,
!574
Resolves - Gradle Build
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
build.gradle
+20
-26
20 additions, 26 deletions
build.gradle
gradle.properties
+2
-1
2 additions, 1 deletion
gradle.properties
gradle/dependencies.gradle
+1
-1
1 addition, 1 deletion
gradle/dependencies.gradle
settings.gradle
+2
-2
2 additions, 2 deletions
settings.gradle
with
25 additions
and
30 deletions
build.gradle
+
20
−
26
View file @
84ba5636
...
@@ -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
"${node
Plugin
Version}"
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"
}
}
This diff is collapsed.
Click to expand it.
gradle.properties
+
2
−
1
View file @
84ba5636
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
gradle/dependencies.gradle
+
1
−
1
View file @
84ba5636
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}"
...
...
This diff is collapsed.
Click to expand it.
settings.gradle
+
2
−
2
View file @
84ba5636
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
"
})
})
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment