Releases: gmazzo/gradle-buildconfig-plugin
Releases · gmazzo/gradle-buildconfig-plugin
v5.3.5
v5.3.4
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 usingprepareKotlinIdeaImport
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
v5.3.2
v5.3.1
v5.3.0
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
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
What's Changed
- Bump junit:junit from 4.13.1 to 4.13.2 by @dependabot in #105
- Bump io.github.gmazzo.publications.report from 1.0.0 to 1.1.0 by @dependabot in #104
- Improved DSL by @gmazzo in #106
Full Changelog: v5.0.1...v5.1.0
v5.0.1
v5.0.0
New Features
Introduced typesafe DSL support for Kotlin and Groovy #100
Breaking changes
- Plugin classes has been repackaged to
com.github.gmazzo.buildconfig
BuildConfigField
'stype
andvalue
fields now has a dedicated wrapper class:BuildConfigType
andBuildConfigValue
- Dropped support for
JDK8
, now targetingJDK11
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
- @ZacSweers made their first contribution in #98
Full Changelog: v4.2.0...v5.0.0