Browse Source
* Update examples to Gradle 7.3.3 Resolves #1654 * Update compose and agp in examples Resolves #1117 * Fix gradle plugins classloading in examples and templates * Make falling balls mpp compatible with examples checkerpull/1747/head
Alexey Tsvetkov
3 years ago
committed by
GitHub
63 changed files with 173 additions and 93 deletions
@ -1,7 +1,26 @@ |
|||||||
allprojects { |
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
||||||
|
|
||||||
|
plugins { |
||||||
|
// this is necessary to avoid the plugins to be loaded multiple times |
||||||
|
// in each subproject's classloader |
||||||
|
kotlin("jvm") apply false |
||||||
|
kotlin("multiplatform") apply false |
||||||
|
kotlin("android") apply false |
||||||
|
id("com.android.application") apply false |
||||||
|
id("com.android.library") apply false |
||||||
|
id("org.jetbrains.compose") apply false |
||||||
|
} |
||||||
|
|
||||||
|
subprojects { |
||||||
repositories { |
repositories { |
||||||
google() |
google() |
||||||
mavenCentral() |
mavenCentral() |
||||||
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") |
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") |
||||||
} |
} |
||||||
|
|
||||||
|
plugins.withId("org.jetbrains.kotlin.multiplatform") { |
||||||
|
tasks.withType<KotlinCompile> { |
||||||
|
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn" |
||||||
|
} |
||||||
|
} |
||||||
} |
} |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -1,3 +1,3 @@ |
|||||||
kotlin.code.style=official |
kotlin.code.style=official |
||||||
kotlin.version=1.6.10 |
kotlin.version=1.6.10 |
||||||
compose.version=1.0.1-rc2 |
compose.version=1.0.1 |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -1,3 +1,3 @@ |
|||||||
kotlin.code.style=official |
kotlin.code.style=official |
||||||
kotlin.version=1.6.10 |
kotlin.version=1.6.10 |
||||||
compose.version=1.0.1-rc2 |
compose.version=1.0.1 |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -1,4 +1,4 @@ |
|||||||
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 |
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 |
||||||
kotlin.code.style=official |
kotlin.code.style=official |
||||||
kotlin.version=1.6.10 |
kotlin.version=1.6.10 |
||||||
compose.version=1.0.1-rc2 |
compose.version=1.0.1 |
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -1,3 +1,3 @@ |
|||||||
# TODO can we get rid of duplication with root gradle.properties? |
# TODO can we get rid of duplication with root gradle.properties? |
||||||
kotlin.version=1.6.10 |
kotlin.version=1.6.10 |
||||||
compose.version=1.0.1-rc2 |
compose.version=1.0.1 |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -1,3 +1,3 @@ |
|||||||
kotlin.code.style=official |
kotlin.code.style=official |
||||||
kotlin.version=1.6.10 |
kotlin.version=1.6.10 |
||||||
compose.version=1.0.1-rc2 |
compose.version=1.0.1 |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -1,4 +1,4 @@ |
|||||||
kotlin.code.style=official |
kotlin.code.style=official |
||||||
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 |
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 |
||||||
kotlin.version=1.6.10 |
kotlin.version=1.6.10 |
||||||
compose.version=1.0.1-rc2 |
compose.version=1.0.1 |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -1,3 +1,3 @@ |
|||||||
kotlin.code.style=official |
kotlin.code.style=official |
||||||
kotlin.version=1.6.10 |
kotlin.version=1.6.10 |
||||||
compose.version=1.0.1-rc2 |
compose.version=1.0.1 |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -1,3 +1,3 @@ |
|||||||
kotlin.code.style=official |
kotlin.code.style=official |
||||||
kotlin.version=1.6.10 |
kotlin.version=1.6.10 |
||||||
compose.version=1.0.1-rc2 |
compose.version=1.0.1 |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -1,5 +1,8 @@ |
|||||||
|
org.gradle.jvmargs=-Xmx3g |
||||||
|
compose.version=1.1.0-beta04 |
||||||
|
kotlin.version=1.6.10 |
||||||
|
kotlin.code.style=official |
||||||
kotlin.native.cacheKind=none |
kotlin.native.cacheKind=none |
||||||
kotlin.native.useEmbeddableCompilerJar=true |
kotlin.native.useEmbeddableCompilerJar=true |
||||||
org.gradle.jvmargs=-Xmx3g |
|
||||||
kotlin.mpp.enableGranularSourceSetsMetadata=true |
|
||||||
kotlin.native.enableDependencyPropagation=false |
kotlin.native.enableDependencyPropagation=false |
||||||
|
kotlin.mpp.enableGranularSourceSetsMetadata=true |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -1,12 +1,20 @@ |
|||||||
pluginManagement { |
pluginManagement { |
||||||
repositories { |
repositories { |
||||||
mavenLocal() |
mavenLocal() |
||||||
gradlePluginPortal() |
|
||||||
mavenCentral() |
mavenCentral() |
||||||
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") } |
gradlePluginPortal() |
||||||
|
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") |
||||||
google() |
google() |
||||||
} |
} |
||||||
|
|
||||||
|
plugins { |
||||||
|
val kotlinVersion = extra["kotlin.version"] as String |
||||||
|
kotlin("multiplatform").version(kotlinVersion) |
||||||
|
|
||||||
|
val composeVersion = extra["compose.version"] as String |
||||||
|
id("org.jetbrains.compose").version(composeVersion) |
||||||
|
} |
||||||
} |
} |
||||||
|
|
||||||
rootProject.name = "falling-balls-mpp" |
rootProject.name = "falling-balls-mpp" |
||||||
|
|
||||||
|
@ -1,4 +1,4 @@ |
|||||||
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 |
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 |
||||||
kotlin.code.style=official |
kotlin.code.style=official |
||||||
kotlin.version=1.6.10 |
kotlin.version=1.6.10 |
||||||
compose.version=1.0.1-rc2 |
compose.version=1.0.1 |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -1,4 +1,4 @@ |
|||||||
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 |
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 |
||||||
kotlin.code.style=official |
kotlin.code.style=official |
||||||
kotlin.version=1.6.10 |
kotlin.version=1.6.10 |
||||||
compose.version=1.0.1-rc2 |
compose.version=1.0.1 |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
Loading…
Reference in new issue