Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-lib
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
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-lib
Commits
2e2dfc10
Commit
2e2dfc10
authored
2 years ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
switch to jar task
parent
287d64a1
No related branches found
No related tags found
1 merge request
!266
Report Version
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build.gradle
+11
-4
11 additions, 4 deletions
build.gradle
gradle/git-version.gradle
+0
-12
0 additions, 12 deletions
gradle/git-version.gradle
with
11 additions
and
16 deletions
build.gradle
+
11
−
4
View file @
2e2dfc10
import
groovy.json.JsonOutput
plugins
{
plugins
{
id
"com.diffplug.spotless"
id
"com.diffplug.spotless"
id
"com.github.spotbugs"
id
"com.github.spotbugs"
...
@@ -40,6 +42,15 @@ java {
...
@@ -40,6 +42,15 @@ java {
withSourcesJar
()
withSourcesJar
()
}
}
jar
{
doFirst
{
def
versionPath
=
"/resources/main/version.json"
def
versionFile
=
new
File
(
project
.
buildDir
.
toString
()
+
versionPath
)
def
details
=
versionDetails
()
versionFile
.
write
(
JsonOutput
.
prettyPrint
(
JsonOutput
.
toJson
(
details
)))
}
}
javadoc
{
javadoc
{
def
docTitle
=
"<a href=\"https://code.usgs.gov/ghsc/nshmp/nshmp-lib.git\">${project.name}</a>"
def
docTitle
=
"<a href=\"https://code.usgs.gov/ghsc/nshmp/nshmp-lib.git\">${project.name}</a>"
options
.
setUse
(
true
)
options
.
setUse
(
true
)
...
@@ -60,10 +71,6 @@ javadoc {
...
@@ -60,10 +71,6 @@ javadoc {
exclude
"gov/usgs/earthquake/nshmp/internal/**"
exclude
"gov/usgs/earthquake/nshmp/internal/**"
}
}
jar
{
finalizedBy
(
"version"
)
}
// temporary task to support local running of lib while developing
// temporary task to support local running of lib while developing
// model parsing classes; TODO remove when parser is stable
// model parsing classes; TODO remove when parser is stable
task
fatJar
(
type:
Jar
)
{
task
fatJar
(
type:
Jar
)
{
...
...
This diff is collapsed.
Click to expand it.
gradle/git-version.gradle
deleted
100644 → 0
+
0
−
12
View file @
287d64a1
import
groovy.json.JsonOutput
apply
plugin:
"com.palantir.git-version"
task
version
()
{
doLast
{
def
versionPath
=
"/resources/main/version.json"
def
versionFile
=
new
File
(
project
.
buildDir
.
toString
()
+
versionPath
)
def
details
=
versionDetails
()
versionFile
.
write
(
JsonOutput
.
prettyPrint
(
JsonOutput
.
toJson
(
details
)))
}
}
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