Skip to content

Releases: gmazzo/gradle-buildconfig-plugin

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

v4.2.0

20 Nov 19:01
Compare
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
Compare
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
Compare
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

v4.1.0

21 Jun 09:58
Compare
Choose a tag to compare

What's Changed

  • Added position to BuildConfigField to keep the insertion order by @gmazzo in #58

Automatic updates

  • Bump com.squareup:kotlinpoet from 1.13.1 to 1.13.2 by @dependabot in #49
  • Bump pl.droidsonroids.jacoco.testkit from 1.0.11 to 1.0.12 by @dependabot in #48
  • Bump com.android.application from 7.4.2 to 8.0.1 by @dependabot in #50
  • Update Gradle Wrapper from 8.1 to 8.1.1 by @github-actions in #51
  • Bump com.android.application from 8.0.1 to 8.0.2 by @dependabot in #54
  • Bump com.squareup:kotlinpoet from 1.13.2 to 1.14.1 by @dependabot in #53
  • Bump com.squareup:kotlinpoet from 1.14.1 to 1.14.2 by @dependabot in #56
  • Bump kotlin from 1.8.21 to 1.8.22 by @dependabot in #57

Full Changelog: v4.0.4...v4.1.0

v4.0.4

02 May 12:37
7697d3a
Compare
Choose a tag to compare

Fixed Entry BuildConfig.kt is a duplicate but no duplicate handling strategy has been set. when packaging sourcesJar.

v4.0.3

02 May 09:26
Compare
Choose a tag to compare

#47 Replaces generator input strategy to @Nested to pick configuration changes on each generator instance (like changing topLevelConstants from false to true)

Before this change, configuration changes using the same generator will incorrectly be computed as a cache hit giving UP-TO-DATE and FROM-CACHE task outputs when constant classes should be regenerated.

v4.0.2

25 Apr 15:28
Compare
Choose a tag to compare

Fixed Configuration Cache issues with Gradle 8.1.1 #45

v4.0.1

25 Apr 09:42
Compare
Choose a tag to compare

Changes:

  • Reverts changing default name to NonAndridBuildConfig when applied on Kotlin Android.
    It's user's responsibility to avoid clashes or duplicated classes when used with AGP plugin, either by setting
android.buildFeatures.buildConfig = false

or by specifying another packageName and/or className for this one.

v4.0.0

25 Apr 02:40
11ea73b
Compare
Choose a tag to compare

Breaking changes:

  • Minimum JDK is now 11
  • Kotlin generator now uses internal visibility by default
  • Multiple BuildConfigTask of the same SourceSet now are merged into a single one:
    • className, packageName and generator now can only be customized by SourceSet and no per-class anymore
    • packageName and generator for secondary SourceSets defaults to the main one
  • Dependency coordinates changed from com.github.gmazzo:gradle-buildconfig-plugin to com.github.gmazzo.buildconfig:plugin.
    Thanks @TWiStErRob for pointing it out!