diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 3c87db91..0fdd38bb 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -7,5 +7,5 @@ repositories { } dependencies { - implementation("com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.15") + implementation(libs.spotbugs) } diff --git a/buildSrc/settings.gradle.kts b/buildSrc/settings.gradle.kts new file mode 100644 index 00000000..b5a0fabf --- /dev/null +++ b/buildSrc/settings.gradle.kts @@ -0,0 +1,7 @@ +dependencyResolutionManagement { + versionCatalogs { + create("libs") { + from(files("../gradle/libs.versions.toml")) + } + } +} diff --git a/example/build.gradle.kts b/example/build.gradle.kts index 47c589a1..8075a072 100644 --- a/example/build.gradle.kts +++ b/example/build.gradle.kts @@ -4,5 +4,5 @@ plugins { dependencies { implementation(project(":lib")) - implementation("ch.randelshofer:fastdoubleparser:1.0.0") + implementation(libs.fastdoubleparser) } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 00000000..a53fe1c9 --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,12 @@ +[libraries] +junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version = "5.11.0" } +assertj-core = { module = "org.assertj:assertj-core", version = "3.26.3" } +fastdoubleparser = { module = "ch.randelshofer:fastdoubleparser", version = "1.0.0" } +gummy-bears = { module = "com.toasttab.android:gummy-bears-api-33", version = "0.9.0" } +spotbugs = { module = "com.github.spotbugs.snom:spotbugs-gradle-plugin", version = "6.0.20"} + +[plugins] +jmh = { id = "me.champeau.jmh", version = "0.7.2" } +pitest = { id = "info.solidsoft.pitest", version = "1.15.0" } +animalsniffer = { id = "ru.vyarus.animalsniffer", version = "1.7.1" } +bnd = { id = "biz.aQute.bnd.builder", version = "7.0.0" } diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index e6441136..a4b76b95 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a4413138..9355b415 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/gradlew b/gradlew index b740cf13..f5feea6d 100755 --- a/gradlew +++ b/gradlew @@ -15,6 +15,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +# SPDX-License-Identifier: Apache-2.0 +# ############################################################################## # @@ -84,7 +86,8 @@ done # shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s +' "$PWD" ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum diff --git a/gradlew.bat b/gradlew.bat index 25da30db..9d21a218 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -13,6 +13,8 @@ @rem See the License for the specific language governing permissions and @rem limitations under the License. @rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem @if "%DEBUG%"=="" @echo off @rem ########################################################################## diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index 1b27cc71..314ff9e5 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -6,10 +6,10 @@ plugins { `maven-publish` signing jacoco - id("me.champeau.jmh") version "0.7.2" - id("info.solidsoft.pitest") version "1.15.0" - id("ru.vyarus.animalsniffer") version "1.7.1" - id("biz.aQute.bnd.builder") version "7.0.0" + alias(libs.plugins.jmh) + alias(libs.plugins.pitest) + alias(libs.plugins.animalsniffer) + alias(libs.plugins.bnd) } group = "de.siegmar" @@ -54,16 +54,15 @@ configurations[intTest.implementationConfigurationName].extendsFrom(configuratio configurations[intTest.runtimeOnlyConfigurationName].extendsFrom(configurations.testRuntimeOnly.get()) dependencies { - commonImplementation("org.assertj:assertj-core:3.26.0") + commonImplementation(libs.assertj.core) - testImplementation(platform("org.junit:junit-bom:5.10.2")) - testImplementation("org.junit.jupiter:junit-jupiter") - testImplementation("org.assertj:assertj-core:3.26.0") + testImplementation(libs.junit.jupiter) + testImplementation(libs.assertj.core) testRuntimeOnly("org.junit.platform:junit-platform-launcher") "intTestImplementation"(project) - signature("com.toasttab.android:gummy-bears-api-33:0.8.0@signature") + signature(libs.gummy.bears) } tasks.test {