Skip to content

Commit

Permalink
use conventions plugin that does not require version catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Otto committed Feb 4, 2023
1 parent 221bb36 commit aaf4dad
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 17 deletions.
4 changes: 2 additions & 2 deletions application/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ application {

dependencies {
implementation(project(":subproject-two"))
implementation(libs.slf4jApi)
implementation("org.slf4j:slf4j-api")
runtimeOnly("ch.qos.logback:logback-classic")
integrationTestImplementation(libs.testing.slf4jTest)
integrationTestImplementation("com.github.valfirst:slf4j-test")
configurations.named("integrationTestRuntimeOnly") {
exclude(group = "ch.qos.logback", module = "logback-classic")
exclude(group = "org.slf4j", module = "slf4j-nop")
Expand Down
2 changes: 1 addition & 1 deletion architecture-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

dependencies {
testImplementation(libs.testing.archunit)
testImplementation("com.tngtech.archunit:archunit")
}

val exposedTestClasses: Configuration by configurations.creating {
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repositories {
mavenCentral()
}

val conventionsVersion = "2023.01.30"
val conventionsVersion = "2023.02.04"

dependencies {
implementation("de.c-otto:java-conventions:$conventionsVersion")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
plugins {
java
id("de.c-otto.java-conventions")
}

// https://github.com/gradle/gradle/issues/22468
apply(plugin = "de.c-otto.java-conventions")

val sharedTestClasses: Configuration by configurations.creating {
isCanBeConsumed = false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
plugins {
java
id("de.c-otto.java-conventions")
id("de.c-otto.playground.architecture-tests")
}

// https://github.com/gradle/gradle/issues/22468
apply(plugin = "de.c-otto.java-conventions")

group = "de.c-otto.playground"

tasks.named("check") {
Expand Down
7 changes: 1 addition & 6 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,4 @@ dependencyResolutionManagement {
repositories {
mavenCentral()
}
versionCatalogs {
create("libs") {
from("de.c-otto:version-catalog:2023.01.29")
}
}
}
}

0 comments on commit aaf4dad

Please sign in to comment.