Skip to content

Commit

Permalink
Switch to gradle-defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoberstar committed Feb 10, 2022
1 parent c0450b1 commit 996cb6b
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 197 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

reckon {
scopeFromProp()
stageFromProp("alpha", "beta", "rc", "final")
stageFromProp("beta", "rc", "final")
}

jbake {
Expand Down
23 changes: 0 additions & 23 deletions buildSrc/build.gradle.kts

This file was deleted.

93 changes: 0 additions & 93 deletions buildSrc/src/main/kotlin/java-library-convention.gradle.kts

This file was deleted.

28 changes: 0 additions & 28 deletions buildSrc/src/main/kotlin/locking-convention.gradle.kts

This file was deleted.

26 changes: 0 additions & 26 deletions buildSrc/src/main/kotlin/spotless-convention.gradle.kts

This file was deleted.

2 changes: 1 addition & 1 deletion grgit-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("java-library-convention")
id("org.ajoberstar.defaults.java-library")
groovy
id("org.gradle.test-retry")
}
Expand Down
25 changes: 6 additions & 19 deletions grgit-gradle/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
plugins {
id("java-library-convention")
id("java-gradle-plugin")
id("org.ajoberstar.defaults.gradle-plugin")
groovy

id("com.gradle.plugin-publish")
id("org.ajoberstar.stutter")
}

Expand Down Expand Up @@ -62,30 +60,19 @@ tasks.named("check") {
dependsOn(tasks.named("compatTest"))
}

pluginBundle {
website = "https://github.com/ajoberstar/grgit"
vcsUrl = "https://github.com/ajoberstar/grgit.git"
description = "The Groovy way to use Git"
gradlePlugin {
plugins {
create("grgitPlugin") {
id = "org.ajoberstar.grgit"
displayName = "The Groovy way to use Git"
tags = listOf("git", "groovy")
description = "The Groovy way to use Git"
implementationClass = "org.ajoberstar.grgit.gradle.GrgitPlugin"
}
create("grgitServicePlugin") {
id = "org.ajoberstar.grgit-service"
displayName = "The Groovy way to use Git (BuildService edition)"
tags = listOf("git", "groovy")
description = "The Groovy way to use Git (BuildService edition)"
implementationClass = "org.ajoberstar.grgit.gradle.GrgitServicePlugin"
}
}
mavenCoordinates {
groupId = project.group as String
artifactId = project.name as String
version = project.version.toString()
}
}

// remove duplicate publication
gradlePlugin {
setAutomatedPublishing(false)
}

This file was deleted.

This file was deleted.

9 changes: 5 additions & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
pluginManagement {
plugins {
id("org.gradle.test-retry") version "1.3.1"
id("com.gradle.plugin-publish") version "0.20.0"
id("org.ajoberstar.defaults.java-library") version "0.17.1"
id("org.ajoberstar.defaults.gradle-plugin") version "0.17.1"

id("org.ajoberstar.grgit") version "4.1.1"
id("org.ajoberstar.reckon") version "0.13.1"
id("org.ajoberstar.git-publish") version "3.0.0"
id("org.ajoberstar.reckon") version "0.13.2"
id("org.ajoberstar.git-publish") version "3.0.1"
id("org.ajoberstar.stutter") version "0.7.0"

id("org.gradle.test-retry") version "1.3.1"
id("com.diffplug.spotless") version "6.2.1"
id("org.jbake.site") version "5.5.0"
}
Expand Down

0 comments on commit 996cb6b

Please sign in to comment.