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

add spotless and spotbugs var

parent 01326bab
No related branches found
No related tags found
1 merge request!95Add lib directory
...@@ -15,10 +15,6 @@ plugins { ...@@ -15,10 +15,6 @@ plugins {
id 'java-library' id 'java-library'
} }
apply from: "${projectDir}/gradle/git-hooks.gradle"
apply from: "${projectDir}/gradle/spotbugs.gradle"
apply from: "${projectDir}/gradle/spotless.gradle"
sourceCompatibility = JavaVersion.VERSION_11 sourceCompatibility = JavaVersion.VERSION_11
compileJava.options.encoding = 'UTF-8' compileJava.options.encoding = 'UTF-8'
...@@ -26,6 +22,20 @@ repositories { ...@@ -26,6 +22,20 @@ repositories {
jcenter() jcenter()
} }
ext {
projectName = 'nshmp-lib'
spotbugsDir = "./gradle"
spotlessDir = "./src/main/resources"
gitTag = 'git describe --tags'.execute().text.replace('\n', '') ?: 'unknown'
gitLink = '<a href="https://code.usgs.gov/ghsc/nshmp/nshmp-lib">' + gitTag +'</a>'
propsPath = '/resources/main/app.properties'
docTitle = projectName + ': ' + gitLink
}
apply from: "${projectDir}/gradle/git-hooks.gradle"
apply from: "${projectDir}/gradle/spotbugs.gradle"
apply from: "${projectDir}/gradle/spotless.gradle"
dependencies { dependencies {
api 'com.google.guava:guava:28.2-jre' api 'com.google.guava:guava:28.2-jre'
api 'com.google.code.gson:gson:2.8.6' api 'com.google.code.gson:gson:2.8.6'
...@@ -40,14 +50,6 @@ dependencies { ...@@ -40,14 +50,6 @@ dependencies {
testImplementation 'org.hamcrest:hamcrest-library:1.3' testImplementation 'org.hamcrest:hamcrest-library:1.3'
} }
ext {
projectName = 'nshmp-lib'
gitTag = 'git describe --tags'.execute().text.replace('\n', '') ?: 'unknown'
gitLink = '<a href="https://code.usgs.gov/ghsc/nshmp/nshmp-lib">' + gitTag +'</a>'
propsPath = '/resources/main/app.properties'
docTitle = projectName + ': ' + gitLink
}
test { test {
useJUnitPlatform() useJUnitPlatform()
......
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