fix: if we don't have a testmod, we don't have a testmod
All checks were successful
ci/woodpecker/push/gradle Pipeline was successful
ci/woodpecker/push/pages Pipeline was successful

This commit is contained in:
Johannes Frohnmeyer 2024-07-21 18:19:57 +02:00
parent 2f473a920d
commit f2b30e3873
Signed by: Johannes
GPG Key ID: E76429612C2929F4

View File

@ -97,10 +97,11 @@ afterEvaluate {
// }
}
val hasTestmod = !sourceSets.testmod.get().resources.isEmpty
if (!isRoot) rootProject.dependencies {
api(project(path = project.path, configuration = "shadow"))
if (lomArgs.isSplitSources) clientImplementation(sourceSets.client.get().output)
testmodImplementation(project(mapOf("path" to project.path, "configuration" to "testmod")))
if (hasTestmod) testmodImplementation(project(mapOf("path" to project.path, "configuration" to "testmod")))
if (!devOnly) include(project)
}