From bc7d37601fb3744ecafa824ee2cf81439f5393aa Mon Sep 17 00:00:00 2001 From: Baron Roberts Date: Thu, 30 May 2024 16:33:46 -0700 Subject: [PATCH] Migrate to cthing-versioning plugin. --- build.gradle.kts | 16 +++++++--------- gradle/libs.versions.toml | 2 +- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index eae3576..7177c6a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,26 +12,24 @@ allprojects { } } +buildscript { + repositories { + mavenCentral() + } +} + plugins { `java-library` checkstyle jacoco `maven-publish` signing + alias(libs.plugins.cthingVersioning) alias(libs.plugins.dependencyAnalysis) alias(libs.plugins.spotbugs) alias(libs.plugins.versions) } -buildscript { - repositories { - mavenCentral() - } - dependencies { - classpath(libs.cthingProjectVersion) - } -} - version = ProjectVersion("4.3.1", BuildType.snapshot) group = "org.cthing" description = "Parses version numbers, ranges and constraints in a variety of formats." diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 4d8e0d5..185157d 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -7,6 +7,7 @@ junit = "5.10.2" spotbugs = "4.8.3" [plugins] +cthingVersioning = { id = "org.cthing.cthing-versioning", version = "1.0.0" } dependencyAnalysis = { id = "com.autonomousapps.dependency-analysis", version = "1.30.0" } spotbugs = { id = "com.github.spotbugs", version = "6.0.7" } versions = { id = "com.github.ben-manes.versions", version = "0.51.0" } @@ -14,7 +15,6 @@ versions = { id = "com.github.ben-manes.versions", version = "0.51.0" } [libraries] assertJ = "org.assertj:assertj-core:3.25.3" cthingAnnots = "org.cthing:cthing-annotations:1.0.0" -cthingProjectVersion = "org.cthing:cthing-projectversion:1.0.0" jsr305 = "com.google.code.findbugs:jsr305:3.0.2" junitApi = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junit" } junitEngine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junit" }