Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 2f06470

Browse files
committed
Merge branch 'release/prepare-version-catalog-accessor-0.2.0'
2 parents b3ebf16 + a1369e9 commit 2f06470

File tree

14 files changed

+59
-21
lines changed

14 files changed

+59
-21
lines changed
Lines changed: 1 addition & 1 deletion
Loading

docs/develop/badges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ curl "https://img.shields.io/badge/Plugin_Development-→-orange.svg?style=flat"
8080
```
8181
- Gradle Version catalog accessor
8282
```bash
83-
curl "https://img.shields.io/badge/VersionCatalogAccessor-v0.1.1-orange.svg?style=flat" -s -o ../assets/images/badge-release-gradle-version-catalog-accessor.svg
83+
curl "https://img.shields.io/badge/VersionCatalogAccessor-v0.2.0-orange.svg?style=flat" -s -o ../assets/images/badge-release-gradle-version-catalog-accessor.svg
8484
```
8585

8686
### Other
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
gradle/wrapper/
2+
gradlew
3+
gradlew.bat

plugin-development/gradle-test-util/gradle/libs-gradle-test-util.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ gradle = "8.0"
33
kotlin = "1.8.10"
44
test-jUnit5 = "5.9.2"
55
test-mockk = "1.13.4"
6-
plugin-kotlin-binaryCompatibility = "0.12.1"
6+
plugin-kotlin-binaryCompatibility = "0.13.0"
77
plugin-mavenPublish = "0.24.0"
88

99
[libraries]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
gradle/wrapper/
2+
gradlew
3+
gradlew.bat

plugin-development/version-catalog-accessor/CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ This project adheres to [semantic versioning](http://semver.org/spec/v2.0.0.html
99

1010
## [Unreleased](https://github.com/bitfunk/gradle-plugins/releases/latest)
1111

12-
See [changeset](https://github.com/bitfunk/gradle-plugins/compare/[email protected])
12+
See [changeset](https://github.com/bitfunk/gradle-plugins/compare/[email protected])
13+
14+
## [0.2.0](https://github.com/bitfunk/gradle-plugins/releases/tag/[email protected])
15+
16+
See [changeset](https://github.com/bitfunk/gradle-plugins/compare/plugin-dev-version-catalog-accessor@[email protected])
1317

1418
### Bumped
1519

16-
- Gradle Plugin Convention 0.0.7 -> 0.1.0
20+
- Gradle Plugin Convention 0.0.7 -> 0.2.0
1721
- Jackson Dataformat Toml 2.14.1 -> 2.14.2
1822

1923
## [0.1.1](https://github.com/bitfunk/gradle-plugins/releases/tag/[email protected])

plugin-development/version-catalog-accessor/api/version-catalog-accessor.api

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ public final class eu/bitfunk/gradle/plugin/development/version/catalog/accessor
4545
public fun configureSourceSet (Lorg/gradle/api/Project;)V
4646
}
4747

48+
public final class eu/bitfunk/gradle/plugin/development/version/catalog/accessor/VersionCatalogAccessorPlugin$inlined$sam$i$org_gradle_api_Action$0 : org/gradle/api/Action {
49+
public fun <init> (Lkotlin/jvm/functions/Function1;)V
50+
public final synthetic fun execute (Ljava/lang/Object;)V
51+
}
52+
4853
public abstract interface class eu/bitfunk/gradle/plugin/development/version/catalog/accessor/VersionCatalogAccessorPluginExtension : eu/bitfunk/gradle/plugin/development/version/catalog/accessor/VersionCatalogAccessorContract$Extension {
4954
}
5055

plugin-development/version-catalog-accessor/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ plugins {
2323
}
2424

2525
group = "eu.bitfunk.gradle.plugin.development.version.catalog.accessor"
26-
version = "0.1.1"
26+
version = "0.2.0"
2727

2828
gradlePlugin {
2929
plugins.create("gradlePluginVersionCatalog") {

plugin-development/version-catalog-accessor/gradle/libs-catalog-accessor.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
gradlePluginConvention = "0.1.0"
2+
gradlePluginConvention = "0.2.0"
33

44
[libraries]
55
kotlinPoet = "com.squareup:kotlinpoet:1.12.0"

plugin-development/version-catalog-accessor/src/main/kotlin/eu/bitfunk/gradle/plugin/development/version/catalog/accessor/intern/Generator.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ internal class Generator(
4242

4343
val file = FileSpec.builder(classPackageName, className + CLASS_NAME)
4444
.indent(" ")
45-
.addImport(classPackageName, "${accessorInterface.name}.${NAME_BUNDLES.capitalize()}")
46-
.addImport(classPackageName, "${accessorInterface.name}.${NAME_LIBRARIES.capitalize()}")
47-
.addImport(classPackageName, "${accessorInterface.name}.${NAME_PLUGINS.capitalize()}")
48-
.addImport(classPackageName, "${accessorInterface.name}.${NAME_VERSIONS.capitalize()}")
45+
.addImport(classPackageName, "${accessorInterface.name}.${NAME_BUNDLES.titleCase()}")
46+
.addImport(classPackageName, "${accessorInterface.name}.${NAME_LIBRARIES.titleCase()}")
47+
.addImport(classPackageName, "${accessorInterface.name}.${NAME_PLUGINS.titleCase()}")
48+
.addImport(classPackageName, "${accessorInterface.name}.${NAME_VERSIONS.titleCase()}")
4949
.addImport(
5050
VersionCatalogsExtension::class.java.packageName,
5151
VersionCatalogsExtension::class.java.simpleName
@@ -63,7 +63,7 @@ internal class Generator(
6363

6464
private fun generateClassName(): String {
6565
return baseName.split("-")
66-
.map { it.capitalize() }
66+
.map { it.titleCase() }
6767
.joinToString(separator = "") { it }
6868
}
6969

0 commit comments

Comments
 (0)