Skip to content

Commit

Permalink
Clean up build config
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Feb 18, 2021
1 parent 78ec598 commit 5971e07
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 31 deletions.
61 changes: 33 additions & 28 deletions build.gradle
Expand Up @@ -14,7 +14,7 @@ plugins {
id "nebula.provided-base" version "3.0.3"
id "com.jfrog.bintray" version "1.8.4"
id "net.ltgt.errorprone" version "1.2.1" apply false
id "biz.aQute.bnd.builder" version "5.1.1"
id "biz.aQute.bnd.builder" version "$bndVersion"
id 'org.javamodularity.moduleplugin' version '1.7.0' apply false
}

Expand All @@ -39,11 +39,6 @@ targetCompatibility = 1.8

//modularity.mixedJavaRelease 8

ext {
slf4jVersion = '1.7.30'
groovyVersion = '3.0.4'
}

repositories {
mavenCentral()
}
Expand All @@ -53,33 +48,43 @@ dependencies {
// errorproneJavac "com.google.errorprone:javac:9+181-r4173-1"

api "org.slf4j:slf4j-api:$slf4jVersion",
'commons-codec:commons-codec:1.14',
'org.apache.commons:commons-lang3:3.10',
'org.apache.commons:commons-collections4:4.4',
'org.threeten:threeten-extra:1.5.0',
'org.jooq:jool-java-8:0.9.14'

"commons-codec:commons-codec:$commonsCodecVersion",
"org.apache.commons:commons-lang3:$commonsLangVersion",
"org.apache.commons:commons-collections4:$commonsCollectionsVersion",
"org.threeten:threeten-extra:$threetenExtraVersion",
"org.jooq:jool-java-8:$joolVersion"

// optional timezone caching..
implementation 'javax.cache:cache-api:1.1.1', optional

// optional groovy DSL for calendar builder..
implementation "org.codehaus.groovy:groovy:$groovyVersion", optional
implementation "org.codehaus.groovy:groovy-dateutil:$groovyVersion", optional

compileOnly 'biz.aQute.bnd:biz.aQute.bndlib:5.1.1'

testImplementation "org.codehaus.groovy:groovy:$groovyVersion",
"org.codehaus.groovy:groovy-xml:$groovyVersion",
"org.codehaus.groovy:groovy-test:$groovyVersion",
'org.spockframework:spock-core:2.0-M3-groovy-3.0',
'junit:junit:4.13',
'org.ccil.cowan.tagsoup:tagsoup:1.2.1',
"org.slf4j:slf4j-log4j12:$slf4jVersion",
'org.cache2k:cache2k-jcache:1.2.4.Final'

// implementation "org.codehaus.groovy:groovy-dateutil:$groovyVersion", optional

compileOnly "biz.aQute.bnd:biz.aQute.bndlib:$bndVersion"

testCompile "org.codehaus.groovy:groovy:$groovyVersion",
"org.slf4j:slf4j-log4j12:$slf4jVersion",
"org.ccil.cowan.tagsoup:tagsoup:$tagsoupVersion",
"org.cache2k:cache2k-jcache:$jcacheVersion",
"org.codehaus.groovy:groovy-xml:$groovyVersion"

// junit
testImplementation "junit:junit:$junitVersion"

// groovy-test
testImplementation "org.codehaus.groovy:groovy-test:$groovyVersion"

// spock
testImplementation platform("org.spockframework:spock-bom:2.0-M4-groovy-3.0"),
"org.spockframework:spock-core"
}

jacocoTestReport {
reports {
xml.enabled true
html.enabled project.hasProperty('jacoco_htmlReport') \
&& 'true' == project.property('jacoco_htmlReport')
html.enabled 'true' == jacoco_htmlReport
}
}

Expand All @@ -98,13 +103,13 @@ task bundle(type: Bundle) {
}

task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
archiveClassifier.set('javadoc')
from 'build/docs/javadoc'
}

task sourcesJar(type: Jar) {
from sourceSets.main.allSource
archiveClassifier = 'sources'
archiveClassifier.set('sources')
}

jar.enabled = false
Expand Down
17 changes: 14 additions & 3 deletions gradle.properties.template
@@ -1,9 +1,20 @@
systemProp.sonar.host.url=https://sonar.mnode.org
slf4jVersion = 1.7.30
commonsCodecVersion = 1.14
commonsLangVersion = 3.10
commonsCollectionsVersion = 4.4
threetenExtraVersion = 1.5.0
joolVersion = 0.9.14

groovyVersion = 3.0.7
bndVersion = 5.1.1
tagsoupVersion = 1.2.1
jcacheVersion = 1.2.4.Final
junitVersion = 4.13

jacoco_htmlReport = true

sonatype_username=
sonatype_password=

bintray_user=
bintray_key=

jacoco_htmlReport = true

0 comments on commit 5971e07

Please sign in to comment.