From 8786e6abff2118f2fd0d74d28b2d3a5b503b48ca Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 22 Sep 2022 00:56:15 +0530 Subject: Upgrade AndroidX dependencies (#2139) --- .../src/main/kotlin/app/passwordstore/gradle/AndroidCommon.kt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build-logic/android-plugins') 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 { + jvmArgs( + "--add-opens=java.base/java.lang=ALL-UNNAMED", + "--add-opens=java.base/java.util=ALL-UNNAMED", + ) + } project.configureSlimTests() } -- cgit v1.2.3