@@ -42,6 +42,9 @@ tasks.withType(AbstractKotlinCompile::class.java).configureEach {
42
42
}
43
43
44
44
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 }
45
48
46
49
dependencies {
47
50
testImplementation(project(" :kotlin-gradle-plugin" )) {
@@ -111,6 +114,10 @@ dependencies {
111
114
testCompileOnly(project(" :kotlin-gradle-plugin-test-utils-embeddable" ))
112
115
testRuntimeOnly(project(" :kotlin-gradle-plugin-test-utils-embeddable" )) { isTransitive = false }
113
116
117
+ applePrivacyManifestPluginClasses.dependencies.all {
118
+ testCompileOnly(this ) { (this as ModuleDependency ).isTransitive = false }
119
+ }
120
+
114
121
// AGP classes for buildScriptInjection's
115
122
testImplementation(libs.android.gradle.plugin.gradle.api) { isTransitive = false }
116
123
@@ -400,12 +407,23 @@ tasks.withType<Test>().configureEach {
400
407
dependsOn(" :examples:annotation-processor-example:install" )
401
408
dependsOn(" :kotlin-dom-api-compat:install" )
402
409
dependsOn(cleanUserHomeKonanDir)
410
+ dependsOn(applePrivacyManifestPluginClasses)
403
411
404
412
systemProperty(" kotlinVersion" , rootProject.extra[" kotlinVersion" ] as String )
405
413
systemProperty(" runnerGradleVersion" , gradle.gradleVersion)
406
414
systemProperty(" composeSnapshotVersion" , composeRuntimeSnapshot.versions.snapshot.version.get())
407
415
systemProperty(" composeSnapshotId" , composeRuntimeSnapshot.versions.snapshot.id.get())
408
416
417
+ val applePrivacyManifestPluginClasspath = provider {
418
+ applePrivacyManifestPluginClasses.files.joinToString(" :" )
419
+ }
420
+ doFirst {
421
+ systemProperty(
422
+ " applePrivacyManifestPluginClasspath" ,
423
+ applePrivacyManifestPluginClasspath.get(),
424
+ )
425
+ }
426
+
409
427
// Add kotlin.gradle.autoDebugIT=false to local.properties to opt out of implicit withDebug when debugging the tests in IDE
410
428
val autoDebugIT = kotlinBuildProperties.getBoolean(" kotlin.gradle.autoDebugIT" , true )
411
429
if (autoDebugIT) {
0 commit comments