Added Github workflow martix for JDK 1.8, 11 & 15.

This commit is contained in:
Erik C. Thauvin 2021-05-31 11:53:29 -07:00
parent b967f13230
commit 12936688ae
2 changed files with 36 additions and 25 deletions

View file

@ -93,8 +93,8 @@ clean {
test {
testLogging {
exceptionFormat = "full"
events("passed", "skipped", "failed")
exceptionFormat = 'full'
events('passed', 'skipped', 'failed')
}
useTestNG()
@ -123,7 +123,7 @@ tasks.withType(Checkstyle) {
publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
from components.java
groupId = project.group
artifactId = rootProject.name
@ -155,11 +155,11 @@ publishing {
}
repositories {
maven {
name = "ossrh"
name = 'ossrh'
project.afterEvaluate {
url = project.version.contains("SNAPSHOT")
? "https://oss.sonatype.org/content/repositories/snapshots/"
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
url = project.version.contains('SNAPSHOT')
? 'https://oss.sonatype.org/content/repositories/snapshots/'
: 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
}
credentials(PasswordCredentials)
}
@ -175,21 +175,23 @@ task copyToDeploy(type: Copy) {
from(configurations.runtimeClasspath) {
exclude('javax.servlet-api-*.jar', 'jsp-api-*.jar')
}
from(jar)
into(deployDir)
from jar
into deployDir
}
task deploy(dependsOn: ['clean', 'build', 'copyToDeploy']) {
task deploy {
description = "Copies all needed files to the ${deployDir} directory."
group = 'Publishing'
outputs.dir(deployDir)
inputs.files(copyToDeploy)
mustRunAfter(clean)
dependsOn(clean, build, 'copyToDeploy')
outputs.dir deployDir
inputs.files copyToDeploy
mustRunAfter clean
}
task release(dependsOn: ['wrapper', 'deploy', 'pandoc', 'publishToMavenLocal']) {
task release {
group = 'Publishing'
description = 'Releases new version.'
dependsOn(wrapper, 'deploy', 'pandoc', publishToMavenLocal)
}
task pandoc(type: Exec) {
@ -221,13 +223,13 @@ jacocoTestReport {
sonarqube {
properties {
property("sonar.organization", "ethauvin-github")
property("sonar.projectKey", "ethauvin_HttpStatus")
property("sonar.host.url", "https://sonarcloud.io")
property("sonar.sourceEncoding", "UTF-8")
property('sonar.organization', 'ethauvin-github')
property('sonar.projectKey', 'ethauvin_HttpStatus')
property('sonar.host.url', 'https://sonarcloud.io')
property('sonar.sourceEncoding', 'UTF-8')
}
}
tasks.sonarqube {
dependsOn("jacocoTestReport")
dependsOn 'jacocoTestReport'
}