Skip to content

Releases: GradleUp/gr8

v0.11.2

05 Dec 17:08
Compare
Choose a tag to compare

Fix the groupId of the Gradle marker (#33)

v0.11.1

25 Nov 16:28
db8545e
Compare
Choose a tag to compare

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

25 Nov 16:04
Compare
Choose a tag to compare

Bad release, this release still has a dependency on r8. Do not use.

0.10

26 Sep 22:47
Compare
Choose a tag to compare

Update R8 to 8.3.8

0.9

06 Apr 13:56
Compare
Choose a tag to compare
0.9

What's Changed

Full Changelog: 0.8...0.9

0.8

04 Apr 09:08
Compare
Choose a tag to compare
0.8

What's Changed

New Contributors

Full Changelog: 0.7...0.8

0.7

01 Dec 13:02
3c5fc73
Compare
Choose a tag to compare

0.6

08 Sep 11:09
4688221
Compare
Choose a tag to compare
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

17 May 10:19
Compare
Choose a tag to compare
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

23 Mar 19:40
Compare
Choose a tag to compare
0.4

Bump R8 to 3.2.49 to support Java17