update to Gradle 8.7
This commit is contained in:
parent
d55bb7e49c
commit
521ce16ea9
7 changed files with 21 additions and 61 deletions
13
build.gradle
13
build.gradle
|
@ -1,12 +1,8 @@
|
||||||
plugins {
|
plugins {
|
||||||
id "checkstyle"
|
|
||||||
id "pmd"
|
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
id 'signing'
|
id 'signing'
|
||||||
|
id "build-dashboard"
|
||||||
id "io.github.gradle-nexus.publish-plugin" version "2.0.0-rc-1"
|
id "io.github.gradle-nexus.publish-plugin" version "2.0.0-rc-1"
|
||||||
//id "com.github.spotbugs" version "6.0.0-beta.3"
|
|
||||||
id "org.cyclonedx.bom" version "1.7.4"
|
|
||||||
id "org.xbib.gradle.plugin.asciidoctor" version "3.0.0"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wrapper {
|
wrapper {
|
||||||
|
@ -30,13 +26,8 @@ ext {
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'java-library'
|
apply plugin: 'java-library'
|
||||||
//apply from: rootProject.file('gradle/ide/idea.gradle')
|
|
||||||
apply from: rootProject.file('gradle/repositories/maven.gradle')
|
apply from: rootProject.file('gradle/repositories/maven.gradle')
|
||||||
apply from: rootProject.file('gradle/compile/java.gradle')
|
apply from: rootProject.file('gradle/compile/java.gradle')
|
||||||
apply from: rootProject.file('gradle/test/junit5.gradle')
|
apply from: rootProject.file('gradle/test/junit5.gradle')
|
||||||
apply from: rootProject.file('gradle/quality/checkstyle.gradle')
|
|
||||||
apply from: rootProject.file('gradle/quality/pmd.gradle')
|
|
||||||
//apply from: rootProject.file('gradle/quality/spotbugs.gradle')
|
|
||||||
apply from: rootProject.file('gradle/publish/maven.gradle')
|
apply from: rootProject.file('gradle/publish/maven.gradle')
|
||||||
apply from: rootProject.file('gradle/publish/forgejo.gradle')
|
apply from: rootProject.file('gradle/publish/maven-central/sonatype.gradle')
|
||||||
apply from: rootProject.file('gradle/publish/sonatype.gradle')
|
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
apply plugin: 'idea'
|
|
||||||
|
|
||||||
idea {
|
|
||||||
module {
|
|
||||||
outputDir file('build/classes/java/main')
|
|
||||||
testOutputDir file('build/classes/java/test')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (project.convention.findPlugin(JavaPluginConvention)) {
|
|
||||||
//sourceSets.main.output.classesDirs = file("build/classes/java/main")
|
|
||||||
//sourceSets.test.output.classesDirs = file("build/classes/java/test")
|
|
||||||
}
|
|
|
@ -1,27 +0,0 @@
|
||||||
apply plugin: 'ivy-publish'
|
|
||||||
|
|
||||||
publishing {
|
|
||||||
repositories {
|
|
||||||
ivy {
|
|
||||||
url = "https://xbib.org/repo"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
publications {
|
|
||||||
ivy(IvyPublication) {
|
|
||||||
from components.java
|
|
||||||
descriptor {
|
|
||||||
license {
|
|
||||||
name = 'The Apache License, Version 2.0'
|
|
||||||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|
||||||
}
|
|
||||||
author {
|
|
||||||
name = 'Jörg Prante'
|
|
||||||
url = 'https://xbib.org/joerg'
|
|
||||||
}
|
|
||||||
descriptor.description {
|
|
||||||
text = rootProject.ext.description
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
|
||||||
|
if (project.hasProperty("signing.keyId")) {
|
||||||
|
apply plugin: 'signing'
|
||||||
|
signing {
|
||||||
|
sign publishing.publications."${project.name}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
|
if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
|
||||||
nexusPublishing {
|
nexusPublishing {
|
||||||
repositories {
|
repositories {
|
|
@ -16,7 +16,7 @@ publishing {
|
||||||
}
|
}
|
||||||
developers {
|
developers {
|
||||||
developer {
|
developer {
|
||||||
id = 'joerg'
|
id = 'jprante'
|
||||||
name = 'Jörg Prante'
|
name = 'Jörg Prante'
|
||||||
email = 'joergprante@gmail.com'
|
email = 'joergprante@gmail.com'
|
||||||
url = 'https://xbib.org/joerg'
|
url = 'https://xbib.org/joerg'
|
||||||
|
@ -42,10 +42,3 @@ publishing {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (project.hasProperty("signing.keyId")) {
|
|
||||||
apply plugin: 'signing'
|
|
||||||
signing {
|
|
||||||
sign publishing.publications."${project.name}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ if (project.hasProperty('forgeJoToken')) {
|
||||||
publishing {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url 'https://xbib.org/api/packages/xbib/maven'
|
url 'https://xbib.org/api/packages/joerg/maven'
|
||||||
credentials(HttpHeaderCredentials) {
|
credentials(HttpHeaderCredentials) {
|
||||||
name = "Authorization"
|
name = "Authorization"
|
||||||
value = "token ${project.property('forgeJoToken')}"
|
value = "token ${project.property('forgeJoToken')}"
|
|
@ -9,17 +9,25 @@ dependencies {
|
||||||
test {
|
test {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
failFast = false
|
failFast = false
|
||||||
|
ignoreFailures = true
|
||||||
jvmArgs '--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED',
|
jvmArgs '--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED',
|
||||||
'--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED',
|
'--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED',
|
||||||
'--add-exports=java.base/sun.nio.ch=ALL-UNNAMED',
|
'--add-exports=java.base/sun.nio.ch=ALL-UNNAMED',
|
||||||
|
'--add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED',
|
||||||
|
'--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED',
|
||||||
|
'--add-opens=jdk.compiler/com.sun.tools.javac=ALL-UNNAMED',
|
||||||
'--add-opens=java.base/java.lang=ALL-UNNAMED',
|
'--add-opens=java.base/java.lang=ALL-UNNAMED',
|
||||||
'--add-opens=java.base/java.lang.reflect=ALL-UNNAMED',
|
'--add-opens=java.base/java.lang.reflect=ALL-UNNAMED',
|
||||||
'--add-opens=java.base/java.io=ALL-UNNAMED',
|
'--add-opens=java.base/java.io=ALL-UNNAMED',
|
||||||
'--add-opens=java.base/java.nio=ALL-UNNAMED',
|
'--add-opens=java.base/java.nio=ALL-UNNAMED',
|
||||||
'--add-opens=java.base/java.util=ALL-UNNAMED'
|
'--add-opens=java.base/java.util=ALL-UNNAMED'
|
||||||
systemProperty 'java.util.logging.config.file', 'src/test/resources/logging.properties'
|
|
||||||
testLogging {
|
testLogging {
|
||||||
events 'STARTED', 'PASSED', 'FAILED', 'SKIPPED'
|
events 'STARTED', 'PASSED', 'FAILED', 'SKIPPED'
|
||||||
|
showStandardStreams = false
|
||||||
|
}
|
||||||
|
reports {
|
||||||
|
html.required = false
|
||||||
|
junitXml.outputLocation.set(layout.buildDirectory.dir("test-junit-xml"))
|
||||||
}
|
}
|
||||||
afterSuite { desc, result ->
|
afterSuite { desc, result ->
|
||||||
if (!desc.parent) {
|
if (!desc.parent) {
|
||||||
|
|
Loading…
Reference in a new issue