Skip to content

Commit b159588

Browse files
authored
Migrate to version catalog and configure Dependabot (#78)
1 parent 1ff73d4 commit b159588

8 files changed

Lines changed: 69 additions & 19 deletions

File tree

.github/dependabot.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gradle"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
groups:
8+
test-dependencies:
9+
patterns:
10+
- "org.junit*"
11+
- "org.assertj*"
12+
- "*junit*"
13+
- "org.mockito*"
14+
- "org.testcontainers*"
15+
- "org.awaitility*"
16+
plugins:
17+
patterns:
18+
- "com.bakdata.release"
19+
- "com.bakdata.sonar"
20+
- "com.bakdata.sonatype"
21+
freefair-plugins:
22+
patterns:
23+
- "io.freefair*"
24+
25+
- package-ecosystem: "github-actions"
26+
directory: "/"
27+
schedule:
28+
interval: "monthly"

build.gradle.kts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import java.util.*
22

33
plugins {
44
// eat your own dog food - apply the plugins to this plugin project
5-
id("com.bakdata.release") version "2.0.0"
6-
id("com.bakdata.sonar") version "2.0.0"
7-
id("com.bakdata.sonatype") version "2.0.0"
8-
id("org.gradle.kotlin.kotlin-dsl") version "6.4.2" apply false
9-
id("com.gradle.plugin-publish") version "2.0.0" apply false
5+
alias(libs.plugins.release)
6+
alias(libs.plugins.sonar)
7+
alias(libs.plugins.sonatype)
8+
alias(libs.plugins.kotlin) apply false
9+
alias(libs.plugins.plugin.publish) apply false
1010
}
1111

1212
allprojects {
@@ -86,9 +86,9 @@ subprojects {
8686
}
8787

8888
dependencies {
89-
"testRuntimeOnly"("org.junit.platform:junit-platform-launcher")
90-
"testImplementation"("org.junit.jupiter:junit-jupiter:6.0.2")
91-
"testImplementation"("org.assertj:assertj-core:3.27.7")
89+
"testRuntimeOnly"(rootProject.libs.junit.platform.launcher)
90+
"testImplementation"(rootProject.libs.junit.jupiter)
91+
"testImplementation"(rootProject.libs.assertj)
9292
}
9393
}
9494

gradle/libs.versions.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[versions]
2+
junit = "6.0.2"
3+
4+
[libraries]
5+
jib = { group = "com.google.cloud.tools.jib", name = "com.google.cloud.tools.jib.gradle.plugin", version = "3.5.2" }
6+
release = { group = "net.researchgate", name = "gradle-release", version = "3.1.0" }
7+
sonarqube = { group = "org.sonarsource.scanner.gradle", name = "sonarqube-gradle-plugin", version = "7.2.2.6593" }
8+
nexus-publish = { group = "io.github.gradle-nexus", name = "publish-plugin", version = "2.0.0" }
9+
10+
junit-platform-launcher = { group = "org.junit.platform", name = "junit-platform-launcher" }
11+
junit-jupiter = { group = "org.junit.jupiter", name = "junit-jupiter", version.ref = "junit" }
12+
assertj = { group = "org.assertj", name = "assertj-core", version = "3.27.7" }
13+
wiremock = { group = "org.wiremock", name = "wiremock", version = "3.13.2" }
14+
wiremock-junit = { group = "ru.lanwen.wiremock", name = "wiremock-junit5", version = "1.3.1" }
15+
16+
[plugins]
17+
release = { id = "com.bakdata.release", version = "2.0.0" }
18+
sonar = { id = "com.bakdata.sonar", version = "2.0.0" }
19+
sonatype = { id = "com.bakdata.sonatype", version = "2.0.0" }
20+
dokka = { id = "org.jetbrains.dokka", version = "2.0.0" }
21+
kotlin = { id = "org.gradle.kotlin.kotlin-dsl", version = "6.4.2" }
22+
plugin-publish = { id = "com.gradle.plugin-publish", version = "2.0.0" }

jib/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
plugins {
22
kotlin("jvm")
3-
id("org.jetbrains.dokka") version "2.0.0"
3+
alias(libs.plugins.dokka)
44
}
55
apply(plugin = "org.gradle.kotlin.kotlin-dsl")
66

77
description = "Configures jib repository, tag and image name"
88

99
dependencies {
10-
implementation("com.google.cloud.tools.jib", "com.google.cloud.tools.jib.gradle.plugin", "3.5.2")
10+
implementation(libs.jib)
1111
}

mockito/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
kotlin("jvm")
3-
id("org.jetbrains.dokka") version "2.0.0"
3+
alias(libs.plugins.dokka)
44
}
55
apply(plugin = "org.gradle.kotlin.kotlin-dsl")
66

release/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
plugins {
22
kotlin("jvm")
3-
id("org.jetbrains.dokka") version "2.0.0"
3+
alias(libs.plugins.dokka)
44
}
55
apply(plugin = "org.gradle.kotlin.kotlin-dsl")
66

77
description = "Configures Gradle Release plugin for usage in CI"
88

99
dependencies {
10-
implementation("net.researchgate", "gradle-release", "3.1.0")
10+
implementation(libs.release)
1111
}

sonar/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
plugins {
22
kotlin("jvm")
3-
id("org.jetbrains.dokka") version "2.0.0"
3+
alias(libs.plugins.dokka)
44
}
55
apply(plugin = "org.gradle.kotlin.kotlin-dsl")
66

77
description = "Configures sonar for multi project setups for all jvm languages"
88

99
dependencies {
10-
implementation("org.sonarsource.scanner.gradle", "sonarqube-gradle-plugin", "7.2.2.6593")
10+
implementation(libs.sonarqube)
1111
}
1212

1313
tasks.withType<Test> {

sonatype/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
plugins {
22
kotlin("jvm")
3-
id("org.jetbrains.dokka") version "2.0.0"
3+
alias(libs.plugins.dokka)
44
}
55
apply(plugin = "org.gradle.kotlin.kotlin-dsl")
66

77
description = "Sets up nexusPublish and closeAndReleaseRepository tasks to push to sonatype (and later synced to central)"
88

99
dependencies {
10-
implementation("io.github.gradle-nexus", "publish-plugin", "2.0.0")
10+
implementation(libs.nexus.publish)
1111

12-
testImplementation("org.wiremock:wiremock:3.13.2")
13-
testImplementation("ru.lanwen.wiremock:wiremock-junit5:1.3.1")
12+
testImplementation(libs.wiremock)
13+
testImplementation(libs.wiremock.junit)
1414
}
1515

1616
tasks.withType<Test> {

0 commit comments

Comments
 (0)