Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-ws
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-ws
Commits
62ff614e
Commit
62ff614e
authored
2 years ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
Switch to download plugin
parent
eed7d727
No related branches found
No related tags found
2 merge requests
!162
Production Release | nshmp-ws
,
!161
Resolves - Fault Section Tags
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
build.gradle
+3
-5
3 additions, 5 deletions
build.gradle
gradle.properties
+1
-0
1 addition, 0 deletions
gradle.properties
gradle/fault-sections.gradle
+29
-0
29 additions, 0 deletions
gradle/fault-sections.gradle
settings.gradle
+0
-11
0 additions, 11 deletions
settings.gradle
with
33 additions
and
16 deletions
build.gradle
+
3
−
5
View file @
62ff614e
...
@@ -6,6 +6,7 @@ plugins {
...
@@ -6,6 +6,7 @@ plugins {
id
"com.github.spotbugs"
version
"${spotbugsVersion}"
id
"com.github.spotbugs"
version
"${spotbugsVersion}"
id
"com.palantir.git-version"
version
"${gitVersionVersion}"
id
"com.palantir.git-version"
version
"${gitVersionVersion}"
id
"com.star-zero.gradle.githook"
version
"${githooksVersion}"
id
"com.star-zero.gradle.githook"
version
"${githooksVersion}"
id
"de.undercouch.download"
version
"${downloadVersion}"
id
"eclipse-wtp"
id
"eclipse-wtp"
id
"io.micronaut.application"
version
"${micronautPluginVersion}"
id
"io.micronaut.application"
version
"${micronautPluginVersion}"
id
"jacoco"
id
"jacoco"
...
@@ -24,6 +25,7 @@ java {
...
@@ -24,6 +25,7 @@ java {
apply
from:
"${projectDir}/gradle/app-version.gradle"
apply
from:
"${projectDir}/gradle/app-version.gradle"
apply
from:
"${projectDir}/gradle/dependencies.gradle"
apply
from:
"${projectDir}/gradle/dependencies.gradle"
apply
from:
"${projectDir}/gradle/fault-sections.gradle"
apply
from:
"${projectDir}/gradle/git-hooks.gradle"
apply
from:
"${projectDir}/gradle/git-hooks.gradle"
apply
from:
"${projectDir}/gradle/node.gradle"
apply
from:
"${projectDir}/gradle/node.gradle"
apply
from:
"${projectDir}/gradle/repositories.gradle"
apply
from:
"${projectDir}/gradle/repositories.gradle"
...
@@ -52,6 +54,7 @@ shadowJar {
...
@@ -52,6 +54,7 @@ shadowJar {
}
}
tasks
.
withType
(
JavaCompile
)
{
tasks
.
withType
(
JavaCompile
)
{
dependsOn
downloadFaultSections
options
.
encoding
=
"UTF-8"
options
.
encoding
=
"UTF-8"
options
.
compilerArgs
.
add
(
"-parameters"
)
options
.
compilerArgs
.
add
(
"-parameters"
)
}
}
...
@@ -60,11 +63,6 @@ tasks.withType(JavaExec) {
...
@@ -60,11 +63,6 @@ tasks.withType(JavaExec) {
jvmArgs
(
'-noverify'
,
'-XX:TieredStopAtLevel=1'
,
'-Dcom.sun.management.jmxremote'
)
jvmArgs
(
'-noverify'
,
'-XX:TieredStopAtLevel=1'
,
'-Dcom.sun.management.jmxremote'
)
}
}
task
libsClean
(
type:
Delete
)
{
delete
"libs"
}
clean
.
dependsOn
libsClean
/* Add HTML reports to SpotBugs */
/* Add HTML reports to SpotBugs */
tasks
.
withType
(
com
.
github
.
spotbugs
.
snom
.
SpotBugsTask
)
{
tasks
.
withType
(
com
.
github
.
spotbugs
.
snom
.
SpotBugsTask
)
{
reports
{
reports
{
...
...
This diff is collapsed.
Click to expand it.
gradle.properties
+
1
−
0
View file @
62ff614e
downloadVersion
=
5.1.0
githooksVersion
=
1.2.0
githooksVersion
=
1.2.0
gitVersionVersion
=
0.15.0
gitVersionVersion
=
0.15.0
jacksonVersion
=
2.9.0
jacksonVersion
=
2.9.0
...
...
This diff is collapsed.
Click to expand it.
gradle/fault-sections.gradle
0 → 100644
+
29
−
0
View file @
62ff614e
apply
plugin:
"de.undercouch.download"
ext
{
archiveUrl
=
"https://code.usgs.gov/ghsc/nshmp/nshm-fault-sections/-/archive"
faultsDir
=
"src/main/resources/fault-sections"
;
}
task
downloadFaultSections
()
{
doLast
{
// Download and unzip nshm-fault-sections tag 1.1
def
zipFile1p1
=
new
File
(
faultsDir
,
"nshm-fault-sections-1.1.zip"
)
download
.
run
{
src
"${archiveUrl}/1.1/nshm-fault-sections-1.1.zip"
dest
zipFile1p1
}
copy
{
from
zipTree
(
zipFile1p1
)
into
faultsDir
}
delete
{
delete
zipFile1p1
}
}
}
task
faultSectionsClean
(
type:
Delete
)
{
delete
faultsDir
}
clean
.
dependsOn
faultSectionsClean
This diff is collapsed.
Click to expand it.
settings.gradle
+
0
−
11
View file @
62ff614e
plugins
{
id
"com.alexvasilkov.git-dependencies"
version
"2.0.3"
}
rootProject
.
name
=
"nshmp-ws"
rootProject
.
name
=
"nshmp-ws"
git
{
fetch
(
"https://code.usgs.gov/ghsc/nshmp/nshm-fault-sections.git"
,
{
name
"fault-sections--1.1"
tag
"1.1"
})
}
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