diff options
Diffstat (limited to 'build-logic/android-plugins/src')
-rw-r--r-- | build-logic/android-plugins/src/main/kotlin/app/passwordstore/gradle/AndroidCommon.kt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build-logic/android-plugins/src/main/kotlin/app/passwordstore/gradle/AndroidCommon.kt b/build-logic/android-plugins/src/main/kotlin/app/passwordstore/gradle/AndroidCommon.kt index 52357171..5e38b6eb 100644 --- a/build-logic/android-plugins/src/main/kotlin/app/passwordstore/gradle/AndroidCommon.kt +++ b/build-logic/android-plugins/src/main/kotlin/app/passwordstore/gradle/AndroidCommon.kt @@ -4,7 +4,9 @@ import app.passwordstore.gradle.flavors.configureSlimTests import com.android.build.gradle.TestedExtension import org.gradle.api.JavaVersion import org.gradle.api.Project +import org.gradle.api.tasks.testing.Test import org.gradle.kotlin.dsl.configure +import org.gradle.kotlin.dsl.withType @Suppress("UnstableApiUsage") object AndroidCommon { @@ -40,6 +42,12 @@ object AndroidCommon { animationsDisabled = true unitTests.isReturnDefaultValues = true } + project.tasks.withType<Test> { + jvmArgs( + "--add-opens=java.base/java.lang=ALL-UNNAMED", + "--add-opens=java.base/java.util=ALL-UNNAMED", + ) + } project.configureSlimTests() } |