A plugin for generating BuildConstants for any kind of Gradle projects: Java, Kotlin, Groovy, etc. Designed for KTS scripts.
Full Changelog: https://github.com/gmazzo/gradle-buildconfig-plugin/compare/v5.3.4...v5.3.5
generateAtSync
by using prepareKotlinIdeaImport
hook task by @gmazzo in https://github.com/gmazzo/gradle-buildconfig-plugin/pull/122
jvm-1.8
for plugin jar by @gmazzo in https://github.com/gmazzo/gradle-buildconfig-plugin/pull/123
Thanks @jasonsparc for your contribution reporting and dealing with the generate and sync
and the cannot inline bytecode
issues!
Full Changelog: https://github.com/gmazzo/gradle-buildconfig-plugin/compare/v5.3.3...v5.3.4
SKIPPED
state if there are no fields to generate by @gmazzo in https://github.com/gmazzo/gradle-buildconfig-plugin/pull/116
Full Changelog: https://github.com/gmazzo/gradle-buildconfig-plugin/compare/v5.3.2...v5.3.3
Full Changelog: https://github.com/gmazzo/gradle-buildconfig-plugin/compare/v5.3.1...v5.3.2
prepareKotlinBuildScriptModel
task by @gmazzo in https://github.com/gmazzo/gradle-buildconfig-plugin/pull/114
Full Changelog: https://github.com/gmazzo/gradle-buildconfig-plugin/compare/v5.3.0...v5.3.1
Now the BuildConfig class/constants will be generated at Gradle Sync time on IntellJ IDEA
Full Changelog: https://github.com/gmazzo/gradle-buildconfig-plugin/compare/v5.2.0...v5.3.0
Map
, File
, and URI
types can be used with the DSLbuildConfigField("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 withProject.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
Full Changelog: https://github.com/gmazzo/gradle-buildconfig-plugin/compare/v5.1.0...v5.2.0
Full Changelog: https://github.com/gmazzo/gradle-buildconfig-plugin/compare/v5.0.1...v5.1.0
Full Changelog: https://github.com/gmazzo/gradle-buildconfig-plugin/compare/v5.0.0...v5.0.1
Introduced typesafe DSL support for Kotlin and Groovy #100
com.github.gmazzo.buildconfig
BuildConfigField
's type
and value
fields now has a dedicated wrapper class: BuildConfigType
and BuildConfigValue
JDK8
, now targeting JDK11
Full Changelog: https://github.com/gmazzo/gradle-buildconfig-plugin/compare/v4.2.0...v5.0.0