Skip to content

Commit

Permalink
Merge pull request #3 from FlorianMichael/patch
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
wagyourtail authored May 31, 2024
2 parents dcc704e + c11c44c commit bb53dd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ shadeDowngradedApi {
}
```

Optionally, you can also depend on the sahdeDowngradedApi task when running build.
Optionally, you can also depend on the shadeDowngradedApi task when running build.

```gradle
assemble.dependsOn shadeDowngradedApi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ abstract class DowngradeTransform : TransformAction<DowngradeFlags> {
val output = outputs.file("${input.nameWithoutExtension}-downgraded-${flags.downgradeTo.get()}.${input.extension}")
val classpath = dependencies.files

System.out.println(this.input.get().javaClass)

ClassDowngrader.downgradeTo(flags.toFlags()).use {
ZipDowngrader.downgradeZip(it, input.toPath(), classpath.map { it.toURI().toURL() }.toSet(), output.toPath())
}
}

}
}

0 comments on commit bb53dd9

Please sign in to comment.