Skip to content

Commit d7ea8cc

Browse files
timofey-soloninSpace Team
authored and
Space Team
committed
Move apple-privacy-manifests plugin testing to KGP-IT
^KT-75075
1 parent a5a62a7 commit d7ea8cc

File tree

4 files changed

+210
-273
lines changed

4 files changed

+210
-273
lines changed

libraries/tools/kotlin-gradle-plugin-integration-tests/build.gradle.kts

+18
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ tasks.withType(AbstractKotlinCompile::class.java).configureEach {
4242
}
4343

4444
val kotlinGradlePluginTest = project(":kotlin-gradle-plugin").sourceSets.named("test").map { it.output }
45+
val applePrivacyManifestPluginClasses = configurations.detachedConfiguration(
46+
dependencies.create(dependencies.project(":kotlin-privacy-manifests-plugin"))
47+
).also { it.isTransitive = false }
4548

4649
dependencies {
4750
testImplementation(project(":kotlin-gradle-plugin")) {
@@ -111,6 +114,10 @@ dependencies {
111114
testCompileOnly(project(":kotlin-gradle-plugin-test-utils-embeddable"))
112115
testRuntimeOnly(project(":kotlin-gradle-plugin-test-utils-embeddable")) { isTransitive = false }
113116

117+
applePrivacyManifestPluginClasses.dependencies.all {
118+
testCompileOnly(this) { (this as ModuleDependency).isTransitive = false }
119+
}
120+
114121
// AGP classes for buildScriptInjection's
115122
testImplementation(libs.android.gradle.plugin.gradle.api) { isTransitive = false }
116123

@@ -400,12 +407,23 @@ tasks.withType<Test>().configureEach {
400407
dependsOn(":examples:annotation-processor-example:install")
401408
dependsOn(":kotlin-dom-api-compat:install")
402409
dependsOn(cleanUserHomeKonanDir)
410+
dependsOn(applePrivacyManifestPluginClasses)
403411

404412
systemProperty("kotlinVersion", rootProject.extra["kotlinVersion"] as String)
405413
systemProperty("runnerGradleVersion", gradle.gradleVersion)
406414
systemProperty("composeSnapshotVersion", composeRuntimeSnapshot.versions.snapshot.version.get())
407415
systemProperty("composeSnapshotId", composeRuntimeSnapshot.versions.snapshot.id.get())
408416

417+
val applePrivacyManifestPluginClasspath = provider {
418+
applePrivacyManifestPluginClasses.files.joinToString(":")
419+
}
420+
doFirst {
421+
systemProperty(
422+
"applePrivacyManifestPluginClasspath",
423+
applePrivacyManifestPluginClasspath.get(),
424+
)
425+
}
426+
409427
// Add kotlin.gradle.autoDebugIT=false to local.properties to opt out of implicit withDebug when debugging the tests in IDE
410428
val autoDebugIT = kotlinBuildProperties.getBoolean("kotlin.gradle.autoDebugIT", true)
411429
if (autoDebugIT) {

0 commit comments

Comments
 (0)