update to Java 17, update dependencies

This commit is contained in:
Jörg Prante 2023-05-21 13:16:00 +02:00
parent 36a1503875
commit 43f9e94263
6 changed files with 23 additions and 22 deletions

View file

@ -46,7 +46,6 @@ class JFlexTask extends DefaultTask {
Options.encoding = ext.encoding ? Charset.forName(ext.encoding) : Charset.defaultCharset()
Options.verbose = ext.verbose
Options.progress = ext.progress
Options.unused_warning = ext.unused_warning
Options.jlex = ext.jlex
Options.no_minimize = ext.no_minimize
Options.no_backup = ext.no_backup

View file

@ -33,8 +33,8 @@ class PublishingSpec extends PluginSpecification {
}
shadowJar {
classifier = ''
baseName = 'maven-all'
archiveBaseName = 'maven-all'
archiveClassifier = ''
}
publishing {

View file

@ -38,11 +38,11 @@ class ShadowPluginSpec extends PluginSpecification {
then:
ShadowJar shadow = project.tasks.findByName('shadowJar') as ShadowJar
assert shadow
assert shadow.getProperty('baseName') == projectName
assert shadow.getProperty('destinationDir') == new File(project.buildDir, 'libs')
assert shadow.getProperty('version') == version
assert shadow.getProperty('classifier') == 'all'
assert shadow.getProperty('extension') == 'jar'
assert shadow.archiveBaseName.get() == projectName
assert shadow.destinationDirectory.get().asFile == new File(project.buildDir, 'libs')
assert shadow.archiveVersion.get() == version
assert shadow.archiveClassifier.get() == 'all'
assert shadow.archiveExtension.get() == 'jar'
and:
Configuration shadowConfig = project.configurations.findByName('shadow')
@ -82,8 +82,8 @@ class ShadowPluginSpec extends PluginSpecification {
// tag::rename[]
shadowJar {
baseName = 'shadow'
classifier = null
archiveBaseName = 'shadow'
archiveClassifier = null
version = null
}
// end::rename[]

View file

@ -5,13 +5,13 @@ dependencies {
}
compileGroovy {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
compileTestGroovy {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType(GroovyCompile) {

View file

@ -3,6 +3,8 @@ apply plugin: 'java-library'
java {
modularity.inferModulePath.set(true)
withSourcesJar()
withJavaDocJar()
}
compileJava {

View file

@ -5,8 +5,8 @@ dependencyResolutionManagement {
version('gradle', '8.1.1')
version('groovy', '3.0.17')
version('spock', '2.0-groovy-3.0')
version('junit', '5.9.2')
version('asm', '9.4')
version('junit', '5.9.3')
version('asm', '9.5')
library('groovy-core', 'org.codehaus.groovy', 'groovy').versionRef('groovy')
library('spock-core', 'org.spockframework', 'spock-core').versionRef('spock')
library('spock-junit4', 'org.spockframework', 'spock-junit4').versionRef('spock')
@ -18,13 +18,13 @@ dependencyResolutionManagement {
library('asm', 'org.ow2.asm', 'asm').versionRef('asm')
library('asm-commons', 'org.ow2.asm', 'asm-commons').versionRef('asm')
library('asm-util', 'org.ow2.asm', 'asm-util').versionRef('asm')
library('asciidoctorj', 'org.asciidoctor', 'asciidoctorj').version('2.5.7')
library('jruby', 'org.jruby', 'jruby').version('9.3.9.0')
library('jsoup', 'org.jsoup', 'jsoup').version('1.15.3')
library('jflex', 'de.jflex', 'jflex').version('1.8.2')
library('asciidoctorj', 'org.asciidoctor', 'asciidoctorj').version('2.5.8')
library('jruby', 'org.jruby', 'jruby').version('9.4.2.0')
library('jsoup', 'org.jsoup', 'jsoup').version('1.16.1')
library('jflex', 'de.jflex', 'jflex').version('1.9.1')
library('jacc', 'org.xbib', 'jacc').version('2.2.0')
library('groovy-git', 'org.xbib.groovy', 'groovy-git').version('2.1.0')
library('rpm', 'org.xbib', 'rpm-core').version('2.2.0')
library('rpm', 'org.xbib', 'rpm-core').version('3.0.0')
plugin('publish', 'com.gradle.plugin-publish').version('1.0.0')
}
}