Skip to content

Releases: gmazzo/gradle-buildconfig-plugin

v5.3.5

12 Jan 16:42
Compare
Choose a tag to compare

What's Changed

  • Revert "Removed reflection on Kotlin binding" by @gmazzo in #124

Full Changelog: v5.3.4...v5.3.5

v5.3.4

12 Jan 14:52
Compare
Choose a tag to compare

What's Changed

  • Bump io.mockk:mockk from 1.13.8 to 1.13.9 by @dependabot in #117
  • Bump com.android.application from 8.2.0 to 8.2.1 by @dependabot in #119
  • Bump com.github.gmazzo.buildconfig from 5.2.0 to 5.3.3 by @dependabot in #118
  • Improved generateAtSync by using prepareKotlinIdeaImport hook task by @gmazzo in #122
  • Targeting jvm-1.8 for plugin jar by @gmazzo in #123

Thanks @jasonsparc for your contribution reporting and dealing with the generate and sync and the cannot inline bytecode issues!

Full Changelog: v5.3.3...v5.3.4

v5.3.3

07 Jan 20:45
Compare
Choose a tag to compare

What's Changed

  • Task will have SKIPPED state if there are no fields to generate by @gmazzo in #116

Full Changelog: v5.3.2...v5.3.3

v5.3.2

03 Jan 14:56
Compare
Choose a tag to compare

What's Changed

  • Only create generated dirs when it has specs by @gmazzo in #115

Full Changelog: v5.3.1...v5.3.2

v5.3.1

03 Jan 09:27
Compare
Choose a tag to compare

What's Changed

  • Do not early create prepareKotlinBuildScriptModel task by @gmazzo in #114

Full Changelog: v5.3.0...v5.3.1

v5.3.0

02 Jan 22:16
Compare
Choose a tag to compare

New features

Now the BuildConfig class/constants will be generated at Gradle Sync time on IntellJ IDEA

What's Changed

  • Removed reflection on Kotlin binding by @gmazzo in #101
  • Bump io.github.gmazzo.publications.report from 1.2.2 to 1.2.4 by @dependabot in #111
  • Added missing Kotlin DSLs by @gmazzo in #112
  • Generate build config class at Gradle Sync (IDEA) by @gmazzo in #113

Full Changelog: v5.2.0...v5.3.0

v5.2.0

28 Dec 18:04
Compare
Choose a tag to compare

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

v5.1.0

18 Dec 22:08
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.0.1...v5.1.0

v5.0.1

18 Dec 09:34
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.0.0...v5.0.1

v5.0.0

17 Dec 16:14
Compare
Choose a tag to compare

New Features

Introduced typesafe DSL support for Kotlin and Groovy #100

Breaking changes

  • Plugin classes has been repackaged to com.github.gmazzo.buildconfig
  • BuildConfigField's type and value fields now has a dedicated wrapper class: BuildConfigType and BuildConfigValue
  • Dropped support for JDK8, now targeting JDK11

What's Changed

  • Bump com.android.application from 8.1.3 to 8.1.4 by @dependabot in #92
  • Bump com.squareup:kotlinpoet from 1.14.2 to 1.15.1 by @dependabot in #91
  • Bump org.apache.commons:commons-lang3 from 3.13.0 to 3.14.0 by @dependabot in #93
  • Bump com.squareup:kotlinpoet from 1.15.1 to 1.15.3 by @dependabot in #96
  • Bump kotlin from 1.9.20 to 1.9.21 by @dependabot in #94
  • Update Gradle Wrapper from 8.4 to 8.5 by @gmazzo in #95
  • Fix generic tests by @gmazzo in #99
  • Add support for basic generic types by @ZacSweers in #98
  • Bump com.android.application from 8.1.4 to 8.2.0 by @dependabot in #97
  • Introduced Typesafe DSL and support for generic types by @gmazzo in #100
  • Correct plugin classes package by @gmazzo in #102

New Contributors

Full Changelog: v4.2.0...v5.0.0