Releases: GradleUp/gr8
v0.11.2
v0.11.1
Configurable R8 version
Gr8 0.11.0 uses R8 8.5.35 by default.
You can now override this version.
Using the https://storage.googleapis.com/r8-releases/raw
repository (doc):
repositories {
maven("https://storage.googleapis.com/r8-releases/raw")
}
gr8 {
create("default") {
r8Version("8.8.19")
//...
}
}
Gr8 can also download a R8 jar from a git sha1:
gr8 {
create("default") {
r8Version("887704078a06fc0090e7772c921a30602bf1a49f")
//...
}
}
[BREAKING] Artifact transform
Gr8 now uses an artifact transform to filter the input jars:
gr8 {
registerFilterTransform(listOf(".*/impldep/META-INF/versions/.*"))
}
As a consequence, Gr8Configurator.configuration(String)
and Gr8Configurator.classPathConfiguration(String)
are removed and replaced by equivalent APIs accepting files:
gr8 {
create("default") {
// Replace
configuration("shadowedDependencies")
// With
addProgramJarsFrom(configurations.getByName("shadowedDependencies"))
// Replace
stripGradleApi(true)
classPathConfiguration("compileOnlyDependenciesForGr8")
// With
val compileOnlyDependenciesForGr8 = configurations.create("compileOnlyDependenciesForGr8") {
attributes {
attribute(ArtifactTypeDefinition.ARTIFACT_TYPE_ATTRIBUTE, FilterTransform.artifactType)
}
attributes {
attribute(Usage.USAGE_ATTRIBUTE, project.objects.named<Usage>(Usage.JAVA_API))
}
}
registerFilterTransform(listOf(".*/impldep/META-INF/versions/.*"))
addClassPathJarsFrom(compileOnlyDependenciesForGr8)
}
}
v0.11.0
Bad release, this release still has a dependency on r8
. Do not use.
0.10
Update R8 to 8.3.8
0.9
What's Changed
- Only publish the R8 mapping in the main publication by @martinbonnin in #19
Full Changelog: 0.8...0.9
0.8
What's Changed
- update README by @gabrielittner in #11
- stricter isGradleApi, fixes #10 by @martinbonnin in #12
- filter out pom files from classPathConfiguration by @gabrielittner in #14
- add support for Java toolchains by @madisp in #16
- update R8 to 4.0.55 by @martinbonnin in #17
- use Java 11 in test plugin by @martinbonnin in #18
New Contributors
- @gabrielittner made their first contribution in #11
- @madisp made their first contribution in #16
Full Changelog: 0.7...0.8
0.7
Support for Gradle build cache
0.6
Update R8 to ed91d27f5094710e9cee0f6a5d12a20f40ee315e
. This version of R8 contains support for relocating without obfuscating. You can now do this in your rules.pro:
-dontobfuscate
-repackageclasses com.example.relocated
This is useful if you want to relocate to avoid nameclashes but still keep the class names for better debuggability
0.5
What's Changed
- Add support for publishing the non-relocated plugin. This is useful for debugging and/or to save some memory during build.
- Publish the R8 mapping file automatically along the relocated jar.
New Contributors
Full Changelog: 0.4...0.5
0.4
Bump R8 to 3.2.49 to support Java17