Skip to content

Commit

Permalink
Fix 'Misdetected cycle between :cli-bot:shadowJar and :cli-bot:test'
Browse files Browse the repository at this point in the history
  • Loading branch information
serpro69 committed May 29, 2024
1 parent bee9cb1 commit 20c85c5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion buildSrc/src/main/kotlin/faker-base-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ tasks.withType<Jar> {
tasks {
getByName(integrationTest.name).dependsOn(test)
jar { dependsOn(integrationTest) }
assemble { dependsOn(jar) }
}

tasks.withType<DokkaTask>().configureEach {
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/faker-lib-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ publishing {

tasks {
getByName(shadowJar.name).dependsOn(jar)
assemble { dependsOn(shadowJar) }
build { dependsOn(shadowJar) }
}
1 change: 0 additions & 1 deletion cli-bot/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ val shadowJar by tasks.getting(ShadowJar::class) {
// we also need to make sure ShadowJar task depend on core having been built
dependsOn(":core:shadowJar")
fakers.forEach { dependsOn(":faker:$it:shadowJar") }
dependsOn(tasks.test)
}

// dunno why, but gradle is complaining that 'startScripts' may run before dependencies have been built
Expand Down

0 comments on commit 20c85c5

Please sign in to comment.