Skip to content

Commit

Permalink
Migrate to cthing-versioning plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
baron1405 committed May 31, 2024
1 parent ff4e580 commit 9e15a88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
19 changes: 7 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,24 @@ repositories {
mavenCentral()
}

buildscript {
repositories {
mavenCentral()
}
}

plugins {
`java-gradle-plugin`
checkstyle
jacoco
signing
alias(libs.plugins.cthingVersioning)
alias(libs.plugins.dependencyAnalysis)
alias(libs.plugins.pluginPublish)
alias(libs.plugins.spotbugs)
alias(libs.plugins.versions)
}

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath(libs.cthingProjectVersion)
}
}

version = ProjectVersion("1.0.2", BuildType.snapshot)
group = "org.cthing"
description = "A Gradle plugin for counting lines of code."
Expand Down Expand Up @@ -163,9 +161,6 @@ tasks {

publishPlugins {
doFirst {
if ((version as ProjectVersion).isSnapshotBuild) {
throw GradleException("Cannot publish a developer build to the Gradle Plugin Portal")
}
if (!project.hasProperty("gradle.publish.key") || !project.hasProperty("gradle.publish.secret")) {
throw GradleException("Gradle Plugin Portal credentials not defined")
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
pluginPublish = { id = "com.gradle.plugin-publish", version = "1.2.1" }
spotbugs = { id = "com.github.spotbugs", version = "6.0.7" }
Expand All @@ -16,7 +17,6 @@ versions = { id = "com.github.ben-manes.versions", version = "0.51.0" }
assertJ = "org.assertj:assertj-core:3.25.3"
commonsIO = "commons-io:commons-io:2.15.1"
cthingAnnots = "org.cthing:cthing-annotations:1.0.0"
cthingProjectVersion = "org.cthing:cthing-projectversion:1.0.0"
escapers = "org.cthing:escapers:1.0.0"
jacksonCoreUtils = "com.github.java-json-tools:jackson-coreutils:2.0"
jacksonCore = { module = "com.fasterxml.jackson.core:jackson-core", version.ref = "jackson" }
Expand Down

0 comments on commit 9e15a88

Please sign in to comment.