update to OpenJDK 21, Gradle 8.4
This commit is contained in:
parent
fbcd328be2
commit
f8a7228c5e
253 changed files with 1313 additions and 1278 deletions
|
@ -1,2 +1,2 @@
|
||||||
name = gradle-plugin-asciidoctor
|
name = gradle-plugin-asciidoctor
|
||||||
version = 3.0.0
|
version = 3.0.1
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
name = gradle-plugin-docker
|
name = gradle-plugin-docker
|
||||||
version = 3.0.0
|
version = 3.0.1
|
||||||
|
|
|
@ -13,7 +13,7 @@ dependencies {
|
||||||
api libs.groovy.git
|
api libs.groovy.git
|
||||||
testImplementation gradleTestKit()
|
testImplementation gradleTestKit()
|
||||||
testImplementation libs.spock.core
|
testImplementation libs.spock.core
|
||||||
testImplementation libs.junit4
|
testImplementation testLibs.junit4
|
||||||
}
|
}
|
||||||
|
|
||||||
if (project.hasProperty('gradle.publish.key')) {
|
if (project.hasProperty('gradle.publish.key')) {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
name = gradle-plugin-docker
|
name = gradle-plugin-docker
|
||||||
version = 3.0.0
|
version = 3.0.1
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
name = gradle-plugin-jacc
|
name = gradle-plugin-jacc
|
||||||
version = 3.0.0
|
version = 3.0.1
|
||||||
|
|
|
@ -26,8 +26,12 @@ class JaccTask extends DefaultTask {
|
||||||
|
|
||||||
static String getPackageName(File file) {
|
static String getPackageName(File file) {
|
||||||
String string = file.readLines().find { line ->
|
String string = file.readLines().find { line ->
|
||||||
line.startsWith('package')
|
line.startsWith('package ') || line.startsWith('%package ')
|
||||||
}
|
}
|
||||||
return string == null ? '' : string.substring(8, string.length() - 1)
|
if (string == null) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
int pos = string.indexOf(' ')
|
||||||
|
string = string.substring(pos + 1).replace(';', '')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,10 +56,12 @@ sourceSets {
|
||||||
.build()
|
.build()
|
||||||
assertEquals(TaskOutcome.SUCCESS, result.task(":build").getOutcome())
|
assertEquals(TaskOutcome.SUCCESS, result.task(":build").getOutcome())
|
||||||
|
|
||||||
File file = new File("${System.getProperty('user.dir')}/build/my-generated-sources/jacc")
|
File file = new File("${System.getProperty('user.dir')}/build/my-generated-sources/jacc/org/xbib/gradle/plugin/jacc/calc")
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
List<File> list = Arrays.asList(file.listFiles())
|
List<File> list = Arrays.asList(file.listFiles())
|
||||||
assertEquals(2, list.size())
|
assertEquals(2, list.size())
|
||||||
|
} else {
|
||||||
|
fail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
// ... enter arithmetic expressions ... hit EOF to terminate
|
// ... enter arithmetic expressions ... hit EOF to terminate
|
||||||
//
|
//
|
||||||
|
|
||||||
|
%package org.xbib.gradle.plugin.jacc.calc
|
||||||
%class Calc
|
%class Calc
|
||||||
%interface CalcTokens
|
%interface CalcTokens
|
||||||
%semantic int : yylval
|
%semantic int : yylval
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
name = gradle-plugin-jflex
|
name = gradle-plugin-jflex
|
||||||
version = 3.0.0
|
version = 3.0.1
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
name = gradle-plugin-rpm
|
name = gradle-plugin-rpm
|
||||||
version = 3.0.1
|
version = 3.0.2
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
name = gradle-plugin-shadow
|
name = gradle-plugin-shadow
|
||||||
version = 3.0.0
|
version = 3.0.1
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package org.xbib.gradle.plugin.shadow.internal
|
package org.xbib.gradle.plugin.shadow.internal
|
||||||
|
|
||||||
|
import groovy.io.FileType
|
||||||
import org.objectweb.asm.ClassReader
|
import org.objectweb.asm.ClassReader
|
||||||
|
|
||||||
import java.util.jar.JarEntry
|
import java.util.jar.JarEntry
|
||||||
|
@ -53,14 +54,14 @@ class Clazzpath {
|
||||||
} else if (Files.isDirectory(path)) {
|
} else if (Files.isDirectory(path)) {
|
||||||
String prefix = Utils.separatorsToUnix(Utils.normalize(path.toString() + File.separatorChar))
|
String prefix = Utils.separatorsToUnix(Utils.normalize(path.toString() + File.separatorChar))
|
||||||
List<Resource> list = []
|
List<Resource> list = []
|
||||||
path.traverse { p ->
|
path.traverse(type: FileType.FILES, nameFilter: ~/.*\.class$/) { p ->
|
||||||
if (Files.isRegularFile(p) && isValidResourceName(p.getFileName().toString())) {
|
if (Files.isRegularFile(p) && isValidResourceName(p.getFileName().toString())) {
|
||||||
list << new Resource(p.toString().substring(prefix.length())) {
|
list.add(new Resource(p.toString().substring(prefix.length())) {
|
||||||
@Override
|
@Override
|
||||||
InputStream getInputStream() throws IOException {
|
InputStream getInputStream() throws IOException {
|
||||||
Files.newInputStream(p)
|
Files.newInputStream(p)
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return addClazzpathUnit(list, s, true)
|
return addClazzpathUnit(list, s, true)
|
||||||
|
|
|
@ -8,7 +8,9 @@ class ClazzpathUnit {
|
||||||
|
|
||||||
private final Map<String, Clazz> dependencies
|
private final Map<String, Clazz> dependencies
|
||||||
|
|
||||||
ClazzpathUnit(String s, Map<String, Clazz> clazzes, Map<String, Clazz> dependencies) {
|
ClazzpathUnit(String s,
|
||||||
|
Map<String, Clazz> clazzes,
|
||||||
|
Map<String, Clazz> dependencies) {
|
||||||
this.s = s
|
this.s = s
|
||||||
this.clazzes = clazzes
|
this.clazzes = clazzes
|
||||||
this.dependencies = dependencies
|
this.dependencies = dependencies
|
||||||
|
|
|
@ -4,6 +4,7 @@ import org.gradle.api.Action
|
||||||
import org.gradle.api.GradleException
|
import org.gradle.api.GradleException
|
||||||
import org.gradle.api.UncheckedIOException
|
import org.gradle.api.UncheckedIOException
|
||||||
import org.gradle.api.file.FileCopyDetails
|
import org.gradle.api.file.FileCopyDetails
|
||||||
|
import org.gradle.api.file.FilePermissions
|
||||||
import org.gradle.api.file.FileTreeElement
|
import org.gradle.api.file.FileTreeElement
|
||||||
import org.gradle.api.file.RelativePath
|
import org.gradle.api.file.RelativePath
|
||||||
import org.gradle.api.internal.DocumentationRegistry
|
import org.gradle.api.internal.DocumentationRegistry
|
||||||
|
@ -411,6 +412,7 @@ class ShadowCopyAction implements CopyAction {
|
||||||
class RelativeArchivePath extends RelativePath {
|
class RelativeArchivePath extends RelativePath {
|
||||||
|
|
||||||
ZipEntry entry
|
ZipEntry entry
|
||||||
|
|
||||||
FileCopyDetails details
|
FileCopyDetails details
|
||||||
|
|
||||||
RelativeArchivePath(ZipEntry entry, FileCopyDetails fileDetails) {
|
RelativeArchivePath(ZipEntry entry, FileCopyDetails fileDetails) {
|
||||||
|
@ -472,7 +474,6 @@ class ShadowCopyAction implements CopyAction {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
void copyTo(OutputStream outputStream) {
|
void copyTo(OutputStream outputStream) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -499,5 +500,10 @@ class ShadowCopyAction implements CopyAction {
|
||||||
int getMode() {
|
int getMode() {
|
||||||
return archivePath.entry.unixMode
|
return archivePath.entry.unixMode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
FilePermissions getPermissions() {
|
||||||
|
return archivePath.details.permissions
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@ class DependencyUtilsTest {
|
||||||
@Test
|
@Test
|
||||||
void testShouldFindDependenciesOfClassObject() throws Exception {
|
void testShouldFindDependenciesOfClassObject() throws Exception {
|
||||||
Collection<String> dependencies = getDependenciesOfClass(Object).sort()
|
Collection<String> dependencies = getDependenciesOfClass(Object).sort()
|
||||||
|
// may vary from JDK to JDK
|
||||||
Collection<String> expectedDependencies = Arrays.asList(
|
Collection<String> expectedDependencies = Arrays.asList(
|
||||||
"java.lang.Class",
|
"java.lang.Class",
|
||||||
"java.lang.CloneNotSupportedException",
|
"java.lang.CloneNotSupportedException",
|
||||||
|
@ -23,6 +24,7 @@ class DependencyUtilsTest {
|
||||||
"java.lang.Object",
|
"java.lang.Object",
|
||||||
"java.lang.String",
|
"java.lang.String",
|
||||||
"java.lang.StringBuilder",
|
"java.lang.StringBuilder",
|
||||||
|
"java.lang.Thread",
|
||||||
"java.lang.Throwable")
|
"java.lang.Throwable")
|
||||||
.sort()
|
.sort()
|
||||||
// we do not care about jdk.internal classes, they vary between JDK versions and even JVMs
|
// we do not care about jdk.internal classes, they vary between JDK versions and even JVMs
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue