From 7bee596efd142d35a8d49ea20e9c23c4a005a0d6 Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Tue, 15 Dec 2020 11:44:17 +0300 Subject: [PATCH] Use kotlinCompilerRepo for calculator sample --- samples/calculator/build.gradle | 6 ++++++ samples/calculator/gradle.properties | 3 +++ 2 files changed, 9 insertions(+) diff --git a/samples/calculator/build.gradle b/samples/calculator/build.gradle index 9b4f0c9f682..2364b5baedb 100644 --- a/samples/calculator/build.gradle +++ b/samples/calculator/build.gradle @@ -5,6 +5,9 @@ buildscript { mavenCentral() maven { url 'https://dl.bintray.com/kotlin/kotlin-dev' } maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' } + if (project.hasProperty("kotlinCompilerRepo")) { + maven { setUrl(project.property("kotlinCompilerRepo")) } + } } dependencies { @@ -20,5 +23,8 @@ allprojects { mavenCentral() maven { url 'https://dl.bintray.com/kotlin/kotlin-dev' } maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' } + if (project.hasProperty("kotlinCompilerRepo")) { + maven { setUrl(project.property("kotlinCompilerRepo")) } + } } } diff --git a/samples/calculator/gradle.properties b/samples/calculator/gradle.properties index 146d025d3e9..341c76ecd5c 100644 --- a/samples/calculator/gradle.properties +++ b/samples/calculator/gradle.properties @@ -8,6 +8,9 @@ org.gradle.workers.max=4 # CHANGE_VERSION_WITH_RELEASE kotlin_version=1.4.10 +# Sets maven path for the kotlin version other than release +#kotlinCompilerRepo= + # Use custom Kotlin/Native home: kotlin.native.home=../../../dist