Skip to content

Releases: gmazzo/gradle-buildconfig-plugin

v5.3.2

03 Jan 14:56

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

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

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

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

Choose a tag to compare

What's Changed

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

v5.0.1

18 Dec 09:34

Choose a tag to compare

What's Changed

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

v5.0.0

17 Dec 16:14

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

v4.2.0

20 Nov 19:01

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.1.2...v4.2.0

v4.1.2

17 Jul 10:28
06c1c0d

Choose a tag to compare

Patch release to pick the latest inline bytecode changes from Gradle Kotlin DSL.

What's Changed

  • Update Gradle Wrapper from 8.1.1 to 8.2 by @gmazzo in #62
  • Bump kotlin from 1.8.22 to 1.9.0 by @dependabot in #63
  • Update Gradle Wrapper from 8.2 to 8.2.1 by @gmazzo in #64

Full Changelog: v4.1.1...v4.1.2

v4.1.1

22 Jun 09:29

Choose a tag to compare

What's Changed

  • Added BuildConfigDsl marker to prevent accidental scope issues by @gmazzo in #61

Full Changelog: v4.1.0...v4.1.1