Fix cooperative development configuration
Deprecated testCompile was not available, replace with testApi
This commit is contained in:
committed by
TeamCityServer
parent
4073f177b4
commit
65b6e7076b
@@ -172,14 +172,14 @@ fun DependencyHandler.jpsLikeModuleDependency(moduleName: String, scope: JpsDepS
|
|||||||
when (scope) {
|
when (scope) {
|
||||||
JpsDepScope.COMPILE -> {
|
JpsDepScope.COMPILE -> {
|
||||||
if (exported) {
|
if (exported) {
|
||||||
add("testCompile", projectTests(moduleName))
|
add("testApi", projectTests(moduleName))
|
||||||
} else {
|
} else {
|
||||||
add("testImplementation", projectTests(moduleName))
|
add("testImplementation", projectTests(moduleName))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
JpsDepScope.TEST -> {
|
JpsDepScope.TEST -> {
|
||||||
if (exported) {
|
if (exported) {
|
||||||
add("testCompile", projectTests(moduleName))
|
add("testApi", projectTests(moduleName))
|
||||||
} else {
|
} else {
|
||||||
add("testImplementation", projectTests(moduleName))
|
add("testImplementation", projectTests(moduleName))
|
||||||
}
|
}
|
||||||
@@ -189,7 +189,7 @@ fun DependencyHandler.jpsLikeModuleDependency(moduleName: String, scope: JpsDepS
|
|||||||
}
|
}
|
||||||
JpsDepScope.PROVIDED -> {
|
JpsDepScope.PROVIDED -> {
|
||||||
if (exported) {
|
if (exported) {
|
||||||
add("testCompile", projectTests(moduleName))
|
add("testApi", projectTests(moduleName))
|
||||||
} else {
|
} else {
|
||||||
add("testImplementation", projectTests(moduleName))
|
add("testImplementation", projectTests(moduleName))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user