Skip to content

Commit

Permalink
skip module info
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed May 12, 2024
1 parent 879e980 commit 41392da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions gradle-plugin/test-downgrade/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ val downgradeJar9 by tasks.creating(DowngradeJar::class) {
inputFile.set(tasks.jar.get().archiveFile)
archiveClassifier.set("downgraded-9")
downgradeTo = JavaVersion.VERSION_1_9
archiveVersion.set(props.getProperty("version") as String)
}

val shadeDowngradedApi9 by tasks.creating(ShadeAPI::class) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public Map<Path, Type> preScan(final Path root) throws IOException {
Files.walkFileTree(root, new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
if (file.getFileName().toString().equals("module-info.class")) {
return FileVisitResult.CONTINUE;
}
String path = root.relativize(file).toString();
if (path.endsWith(".class")) {
path = path.substring(0, path.length() - 6);
Expand Down

0 comments on commit 41392da

Please sign in to comment.