Skip to content

Commit

Permalink
update to jdk version 17
Browse files Browse the repository at this point in the history
- update gradle to new version 8.8
- update of lombok version to 1.18.32
- update of gradle-plugin dependency 'spotless-plugin-gradle' to new minor version 7.0.0.BETA1
- update of gradle-plugin dependency 'grgit-gradle' to new minor version 5.2.2
  • Loading branch information
astrapisixtynine committed Jun 18, 2024
1 parent a8da94c commit a29a063
Show file tree
Hide file tree
Showing 6 changed files with 147 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .idea/runConfigurations/tree_api__versionCatalogFormat_.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions .idea/runConfigurations/tree_api__versionCatalogUpdate_.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ ADDED:

- new libs.versions.toml file for new automatic catalog versions update

CHANGED:

- update to jdk version 17
- update gradle to new version 8.8
- update of lombok version to 1.18.32
- update of gradle-plugin dependency 'spotless-plugin-gradle' to new minor version 7.0.0.BETA1
- update of gradle-plugin dependency 'grgit-gradle' to new minor version 5.2.2

Version 1.5
-------------
Expand Down
41 changes: 41 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[versions]
commons-text-version = "1.12.0"
file-worker-version = "17.2"
gradle-migration-data-version = "2.2"
gradle-plugin-grgit-version = "5.2.2"
gradle-plugin-license-version = "0.16.1"
gradle-plugin-lombok-version = "8.6"
gradle-plugin-spotless-version = "7.0.0.BETA1"
gradle-plugin-version-catalog-update-version = "0.8.4"
gradle-plugin-versions-version = "0.51.0"
junit-jupiter-version = "5.11.0-M2"
junit-platform-launcher-version = "1.11.0-M2"
lombok-version = "1.18.32"
meanbean-version = "2.0.3"
silly-io-version = "3"
throwable-version = "2.3"

[libraries]
commons-text = { module = "org.apache.commons:commons-text", version.ref = "commons-text-version" }
file-worker = { module = "io.github.astrapi69:file-worker", version.ref = "file-worker-version" }
gradle-migration-data = { module = "io.github.astrapi69:gradle-migration-data", version.ref = "gradle-migration-data-version" }
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-jupiter-version" }
junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher", version.ref = "junit-platform-launcher-version" }
lombok = { module = "org.projectlombok:lombok", version.ref = "lombok-version" }
meanbean = { module = "org.meanbean:meanbean", version.ref = "meanbean-version" }
silly-io = { module = "io.github.astrapi69:silly-io", version.ref = "silly-io-version" }
throwable = { module = "io.github.astrapi69:throwable", version.ref = "throwable-version" }

[bundles]
unit-testing = [
"junit-jupiter",
"meanbean",
]

[plugins]
gradle-versions-plugin = { id = "com.github.ben-manes.versions", version.ref = "gradle-plugin-versions-version" }
grgit-gradle = { id = "org.ajoberstar.grgit", version.ref = "gradle-plugin-grgit-version" }
license-gradle-plugin = { id = "com.github.hierynomus.license", version.ref = "gradle-plugin-license-version" }
lombok-plugin = { id = "io.freefair.lombok", version.ref = "gradle-plugin-lombok-version" }
spotless-plugin-gradle = { id = "com.diffplug.spotless", version.ref = "gradle-plugin-spotless-version" }
version-catalog-update = { id = "nl.littlerobots.version-catalog-update", version.ref = "gradle-plugin-version-catalog-update-version" }
32 changes: 32 additions & 0 deletions gradle/version-catalog-update.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
versionCatalogUpdate {
// sort the catalog by key (default is true)
sortByKey = true
// Referenced that are pinned are not automatically updated.
// They are also not automatically kept however (use keep for that).
pin {
// pins all libraries and plugins using the given versions
// versions = ["my-version-name", "other-version"]
// pins specific libraries that are in the version catalog
// libraries = [libs.my.library.reference, libs.my.other.library.reference]
// pins specific plugins that are in the version catalog
// plugins = [libs.plugins.my.plugin, libs.plugins.my.other.plugin]
// pins all libraries (not plugins) for the given groups
// groups = ["com.somegroup", "com.someothergroup"]
}
keep {
// keep has the same options as pin to keep specific entries
// note that for versions it will ONLY keep the specified version, not all
// entries that reference it.
// versions = ["my-version-name", "other-version"]
// libraries = [libs.my.library.reference, libs.my.other.library.reference]
// plugins = [libs.plugins.my.plugin, libs.plugins.my.other.plugin]
// groups = ["com.somegroup", "com.someothergroup"]

// keep versions without any library or plugin reference
keepUnusedVersions = true
// keep all libraries that aren't used in the project
keepUnusedLibraries = true
// keep all plugins that aren't used in the project
keepUnusedPlugins = true
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Wed Feb 19 18:39:09 CET 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
Expand Down

0 comments on commit a29a063

Please sign in to comment.