File tree Expand file tree Collapse file tree 4 files changed +25
-3
lines changed
build-logic/convention/src/main/kotlin/project/convention/logic Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,12 @@ import com.android.build.api.dsl.CommonExtension
2020import org.gradle.api.JavaVersion
2121import org.gradle.api.Project
2222import org.gradle.api.plugins.JavaPluginExtension
23+ import org.gradle.api.tasks.testing.Test
24+ import org.gradle.jvm.toolchain.JavaLanguageVersion
25+ import org.gradle.jvm.toolchain.JavaToolchainService
2326import org.gradle.kotlin.dsl.configure
2427import org.gradle.kotlin.dsl.dependencies
28+ import org.gradle.kotlin.dsl.getByType
2529import org.gradle.kotlin.dsl.provideDelegate
2630import org.gradle.kotlin.dsl.withType
2731import org.jetbrains.kotlin.gradle.dsl.JvmTarget
@@ -110,4 +114,13 @@ private fun Project.configureKotlin() {
110114 )
111115 }
112116 }
117+
118+ val toolchains = extensions.getByType<JavaToolchainService >()
119+ tasks.withType<Test >().configureEach {
120+ javaLauncher.set(
121+ toolchains.launcherFor {
122+ languageVersion.set(JavaLanguageVersion .of(21 ))
123+ }
124+ )
125+ }
113126}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Runs all the unit tests
2929[bundle exec] fastlane android deploy
3030```
3131
32- Build Wallet and upload it to appcenter
32+ Build & Deploy Wallet
3333
3434### android prepare_binary
3535
Original file line number Diff line number Diff line change 1313# ANY KIND, either express or implied. See the Licence for the specific language
1414# governing permissions and limitations under the Licence.
1515#
16-
1716org.gradle.jvmargs =-Xmx8192m -Dfile.encoding=UTF-8
1817android.useAndroidX =true
1918kotlin.code.style =official
2019android.nonTransitiveRClass =true
21- android.enableR8.fullMode =false
20+ android.enableR8.fullMode =false
21+ toolChainResolverVersion =1.0.0
Original file line number Diff line number Diff line change 1515 */
1616
1717pluginManagement {
18+ val toolChainResolverVersion: String by extra
19+ plugins {
20+ id(" org.gradle.toolchains.foojay-resolver-convention" ) version toolChainResolverVersion
21+ }
1822 includeBuild(" build-logic" )
1923 repositories {
2024 google()
2125 mavenCentral()
2226 gradlePluginPortal()
2327 }
2428}
29+
2530dependencyResolutionManagement {
2631 repositoriesMode.set(RepositoriesMode .FAIL_ON_PROJECT_REPOS )
2732 repositories {
@@ -38,6 +43,10 @@ dependencyResolutionManagement {
3843 }
3944}
4045
46+ plugins {
47+ id(" org.gradle.toolchains.foojay-resolver-convention" )
48+ }
49+
4150rootProject.name = " EUDI Wallet"
4251include(" :app" )
4352include(" :business-logic" )
You can’t perform that action at this time.
0 commit comments