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
d7b7f1f0
Commit
d7b7f1f0
authored
5 years ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
update to Gradle 6
parent
10ddcd1f
No related branches found
No related tags found
1 merge request
!450
Gradle Update
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build.gradle
+34
-32
34 additions, 32 deletions
build.gradle
gradle/wrapper/gradle-wrapper.jar
+0
-0
0 additions, 0 deletions
gradle/wrapper/gradle-wrapper.jar
gradle/wrapper/gradle-wrapper.properties
+1
-1
1 addition, 1 deletion
gradle/wrapper/gradle-wrapper.properties
with
35 additions
and
33 deletions
build.gradle
+
34
−
32
View file @
d7b7f1f0
...
@@ -23,9 +23,11 @@
...
@@ -23,9 +23,11 @@
* default Eclipse directories such as WebContent may be deleted.
* default Eclipse directories such as WebContent may be deleted.
*/
*/
apply
plugin:
'jacoco'
plugins
{
apply
plugin:
'war'
id
'eclipse-wtp'
apply
plugin:
'eclipse-wtp'
id
'jacoco'
id
'war'
}
sourceCompatibility
=
1.8
sourceCompatibility
=
1.8
compileJava
.
options
.
encoding
=
'UTF-8'
compileJava
.
options
.
encoding
=
'UTF-8'
...
@@ -39,15 +41,15 @@ repositories {
...
@@ -39,15 +41,15 @@ repositories {
}
}
dependencies
{
dependencies
{
co
mp
i
le
'org.apache.tomcat:tomcat-catalina:8.0.45'
i
mple
mentation
'org.apache.tomcat:tomcat-catalina:8.0.45'
co
mp
i
le
'javax.websocket:javax.websocket-api:1.1'
i
mple
mentation
'javax.websocket:javax.websocket-api:1.1'
co
mp
i
le
'com.amazonaws:aws-lambda-java-core:1.1.0'
i
mple
mentation
'com.amazonaws:aws-lambda-java-core:1.1.0'
co
mp
i
le
'com.amazonaws:aws-java-sdk-lambda:1.11.461'
i
mple
mentation
'com.amazonaws:aws-java-sdk-lambda:1.11.461'
co
mp
i
le
'com.amazonaws:aws-java-sdk-s3:1.11.579'
i
mple
mentation
'com.amazonaws:aws-java-sdk-s3:1.11.579'
co
mp
i
le
'com.amazonaws:aws-java-sdk-ec2:1.11.619'
i
mple
mentation
'com.amazonaws:aws-java-sdk-ec2:1.11.619'
co
mp
i
le
project
(
':nshmp-lib'
)
i
mple
mentation
project
(
':nshmp-lib'
)
test
Co
mp
i
le
'junit:junit:4.12'
test
I
mple
mentation
'junit:junit:4.12'
}
}
sourceSets
{
sourceSets
{
...
@@ -75,7 +77,7 @@ ext {
...
@@ -75,7 +77,7 @@ ext {
projectName
=
'nshmp-haz'
projectName
=
'nshmp-haz'
propsPath
=
'/classes/java/main/service.properties'
propsPath
=
'/classes/java/main/service.properties'
/* Multi-model repository paths for version tracking */
/* Multi-model repository paths for version tracking */
repo_cous_2008
=
'../nshm-cous-2008'
repo_cous_2008
=
'../nshm-cous-2008'
repo_cous_2014
=
'../nshm-cous-2014'
repo_cous_2014
=
'../nshm-cous-2014'
...
@@ -83,7 +85,7 @@ ext {
...
@@ -83,7 +85,7 @@ ext {
repo_cous_2018
=
'../nshm-cous-2018'
repo_cous_2018
=
'../nshm-cous-2018'
repo_hi_2020
=
'../nshm-hi-2020'
repo_hi_2020
=
'../nshm-hi-2020'
repo_ak_2007
=
'../nshm-ak-2007'
repo_ak_2007
=
'../nshm-ak-2007'
/* Explicit model paths */
/* Explicit model paths */
model_wus_2008
=
"${repo_cous_2008}/Western US"
model_wus_2008
=
"${repo_cous_2008}/Western US"
model_ceus_2008
=
"${repo_cous_2008}/Central & Eastern US"
model_ceus_2008
=
"${repo_cous_2008}/Central & Eastern US"
...
@@ -109,15 +111,15 @@ ext {
...
@@ -109,15 +111,15 @@ ext {
dev_models
=
[
dev_models
=
[
[
model_ceus_2018
,
'models/ceus/2018'
],
[
model_ceus_2018
,
'models/ceus/2018'
],
[
model_wus_2018
,
'models/wus/2018'
],
[
model_wus_2018
,
'models/wus/2018'
],
[
model_hi_2020
,
'models/hi/2020'
]
[
model_hi_2020
,
'models/hi/2020'
]
]
]
getGitTag
=
{
gitDir
->
getGitTag
=
{
gitDir
->
def
cmd
=
'git --git-dir='
+
gitDir
+
'/.git describe --tags'
def
cmd
=
'git --git-dir='
+
gitDir
+
'/.git describe --tags'
return
cmd
.
execute
().
text
.
replace
(
'\n'
,
''
)
?:
'unknown'
return
cmd
.
execute
().
text
.
replace
(
'\n'
,
''
)
?:
'unknown'
}
}
/*
/*
* The git-dir option gets the correct tag when
* The git-dir option gets the correct tag when
* build is called from nshmp-haz-ws.
* build is called from nshmp-haz-ws.
*/
*/
...
@@ -128,7 +130,7 @@ ext {
...
@@ -128,7 +130,7 @@ ext {
docTitle
=
projectName
+
': '
+
gitLink
docTitle
=
projectName
+
': '
+
gitLink
docFooter
=
'<div style="float: left; font-size: 16px; text-align: right; '
+
docFooter
=
'<div style="float: left; font-size: 16px; text-align: right; '
+
'padding: 10px; width: 100%; box-sizing: border-box; background-color: #f9f9f9">'
+
'padding: 10px; width: 100%; box-sizing: border-box; background-color: #f9f9f9">'
+
'<b><a href="https://www.usgs.gov" target="_top">U.S. Geological Survey</a></b> '
+
'<b><a href="https://www.usgs.gov" target="_top">U.S. Geological Survey</a></b> '
+
'– National Seismic Hazard Model Project '
+
'– National Seismic Hazard Model Project '
+
'(<a href="https://earthquake.usgs.gov/hazards/" target="_top">NSHMP</a>) '
+
'(<a href="https://earthquake.usgs.gov/hazards/" target="_top">NSHMP</a>) '
+
'– <a href="https://github.com/usgs/nshmp-haz/blob/master/LICENSE.md" '
+
'– <a href="https://github.com/usgs/nshmp-haz/blob/master/LICENSE.md" '
+
...
@@ -149,11 +151,11 @@ jacocoTestReport {
...
@@ -149,11 +151,11 @@ jacocoTestReport {
html
.
enabled
true
html
.
enabled
true
}
}
afterEvaluate
{
afterEvaluate
{
classDirectories
=
files
(
classDirectories
.
files
.
collect
{
classDirectories
.
from
(
files
(
classDirectories
.
files
.
collect
{
fileTree
(
fileTree
(
dir:
it
,
dir:
it
,
exclude:
[
'**/etc/**'
])
exclude:
[
'**/etc/**'
])
})
})
)
}
}
}
}
check
.
dependsOn
jacocoTestReport
check
.
dependsOn
jacocoTestReport
...
@@ -205,14 +207,14 @@ jar {
...
@@ -205,14 +207,14 @@ jar {
doFirst
{
doFirst
{
/* possible fat jar */
/* possible fat jar */
if
(
rootProject
.
name
==
projectName
&&
!
thinJar
)
{
if
(
rootProject
.
name
==
projectName
&&
!
thinJar
)
{
from
{
configurations
.
compile
.
collect
{
from
{
configurations
.
compile
Classpath
.
collect
{
it
.
isDirectory
()
?
it
:
zipTree
(
it
).
matching
{
it
.
isDirectory
()
?
it
:
zipTree
(
it
).
matching
{
exclude
{
it
.
path
.
contains
(
'META-INF'
)
}
exclude
{
it
.
path
.
contains
(
'META-INF'
)
}
}
}
}}
}}
}
}
/*
/*
* Possibly record app version. The creation of this file
* Possibly record app version. The creation of this file
* on each build causes the classpath to appear changed so
* on each build causes the classpath to appear changed so
* Gradle reruns tests, even though no code has changed.
* Gradle reruns tests, even though no code has changed.
...
@@ -245,8 +247,8 @@ war {
...
@@ -245,8 +247,8 @@ war {
enabled
=
true
enabled
=
true
webAppDirName
=
'webapp'
webAppDirName
=
'webapp'
dependsOn
jar
dependsOn
jar
/*
/*
* Exclude existing models directory with symlinks
* Exclude existing models directory with symlinks
* to support Eclipse deployments.
* to support Eclipse deployments.
*/
*/
...
@@ -279,7 +281,7 @@ task assembleDev(type: War, dependsOn: 'war') {
...
@@ -279,7 +281,7 @@ task assembleDev(type: War, dependsOn: 'war') {
* Create am exploded war file with production models
* Create am exploded war file with production models
*/
*/
task
assembleUsgs
(
type:
Sync
)
{
task
assembleUsgs
(
type:
Sync
)
{
into
"${libsDir}/exploded-war"
into
"${libsDir
ectory.get()
}/exploded-war"
with
war
with
war
doFirst
{
doFirst
{
...
@@ -292,7 +294,7 @@ task assembleUsgs(type: Sync) {
...
@@ -292,7 +294,7 @@ task assembleUsgs(type: Sync) {
* Create am exploded war file with development models
* Create am exploded war file with development models
*/
*/
task
assembleUsgsDev
(
type:
Sync
)
{
task
assembleUsgsDev
(
type:
Sync
)
{
into
"${libsDir}/exploded-war"
into
"${libsDir
ectory.get()
}/exploded-war"
with
assembleDev
with
assembleDev
doFirst
{
doFirst
{
...
@@ -304,17 +306,17 @@ task assembleUsgsDev(type: Sync) {
...
@@ -304,17 +306,17 @@ task assembleUsgsDev(type: Sync) {
/**
/**
* Create a zip file of all dependencies
* Create a zip file of all dependencies
*/
*/
task
dependencie
s
(
type:
Zip
)
{
task
lib
s
(
type:
Zip
)
{
b
aseName
=
"nshmp-haz-dependencies"
archiveB
aseName
=
"nshmp-haz-dependencies"
from
{
from
{
configurations
.
compile
.
collect
{
configurations
.
compile
Classpath
.
collect
{
it
it
}
}
}
}
into
(
"java/lib"
)
into
(
"java/lib"
)
destinationDir
libsDir
destinationDir
ectory
.
value
(
libsDirectory
)
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
gradle/wrapper/gradle-wrapper.jar
+
0
−
0
View file @
d7b7f1f0
No preview for this file type
This diff is collapsed.
Click to expand it.
gradle/wrapper/gradle-wrapper.properties
+
1
−
1
View file @
d7b7f1f0
distributionBase
=
GRADLE_USER_HOME
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
distributionPath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-
4.10.2-bin
.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-
6.0.1-all
.zip
zipStoreBase
=
GRADLE_USER_HOME
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
zipStorePath
=
wrapper/dists
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