Fix resources processing configuration
* Add resources processing to the K/N compilations * Use a proper resources output path (composed from target + compilation rather than just compilation name) * Fix incorrect reassignment of the resources directory
This commit is contained in:
+17
@@ -163,6 +163,23 @@ class NewMultiplatformIT : BaseGradleIT() {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testResourceProcessing() = with(Project("sample-lib", gradleVersion, "new-mpp-lib-and-app")) {
|
||||
val targetsWithResources = listOf("jvm6", "wasm32", nativeHostTargetName)
|
||||
val processResourcesTasks =
|
||||
targetsWithResources.map { ":${it}ProcessResources" }
|
||||
|
||||
build(*processResourcesTasks.toTypedArray()) {
|
||||
assertSuccessful()
|
||||
assertTasksExecuted(*processResourcesTasks.toTypedArray())
|
||||
|
||||
targetsWithResources.forEach {
|
||||
assertFileExists("build/processedResources/$it/main/commonMainResource.txt")
|
||||
assertFileExists("build/processedResources/$it/main/${it}MainResource.txt")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testSourceSetCyclicDependencyDetection() = with(Project("sample-lib", gradleVersion, "new-mpp-lib-and-app")) {
|
||||
setupWorkingDir()
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
resource
|
||||
+1
@@ -0,0 +1 @@
|
||||
resource
|
||||
+1
@@ -0,0 +1 @@
|
||||
resource
|
||||
+1
@@ -0,0 +1 @@
|
||||
resource
|
||||
+1
@@ -0,0 +1 @@
|
||||
resource
|
||||
+1
@@ -0,0 +1 @@
|
||||
resource
|
||||
Reference in New Issue
Block a user