Skip to content

v5.2.0

Compare
Choose a tag to compare
@gmazzo gmazzo released this 28 Dec 18:04
· 60 commits to main since this release

New features:

Map, File, and URI types can be used with the DSL

buildConfigField("MAP", mapOf("a" to 1, "b" to 2))
buildConfigField("FILE", File("aFile"))
buildConfigField("URI", uri("https://example.io"))
buildConfigField(Map.class, "MAP", [a: 1, b: 2])
buildConfigField(File.class, "FILE", new File("aFile"))
buildConfigField(URI.class, "URI", uri("https://example.io"))

Important

Avoid generating File entries with Project.file API, as they are created with absolute paths, and it will produce cache misses.

buildConfigField("FILE", file("aFile")) // will create a file targeting `/your/project/root/aFile` -> DON'T!
buildConfigField("FILE", file("aFile").relativeToOrSelf(projectDir)) // use this instead, for instance

What's Changed

  • Bump kotlin from 1.9.21 to 1.9.22 by @dependabot in #107
  • Bump io.github.gmazzo.publications.report from 1.2.0 to 1.2.2 by @dependabot in #108
  • Fix typo in KTS resource generation example. by @utwyko in #109

New Contributors

Full Changelog: v5.1.0...v5.2.0