mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
Remove:
```
__LATEST_COMPOSE_RELEASE_VERSION__
__KOTLIN_COMPOSE_VERSION__
System.getenv("COMPOSE_TEMPLATE_COMPOSE_VERSION")
```
They pollute templates/examples.
Now, all paths where we need to change the version are hardcoded in the script.
Usage:
```
./replace.sh 1.0.0-rc6
```
This script is planned to run on CI
In the future I will add support for changing Kotlin version
34 lines
988 B
Kotlin
34 lines
988 B
Kotlin
subprojects {
|
|
version = findProperty("deploy.version") ?: property("compose.version")!!
|
|
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
|
}
|
|
|
|
plugins.withId("java") {
|
|
configureIfExists<JavaPluginExtension> {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
withJavadocJar()
|
|
withSourcesJar()
|
|
}
|
|
}
|
|
|
|
plugins.withId("maven-publish") {
|
|
configureIfExists<PublishingExtension> {
|
|
repositories {
|
|
maven {
|
|
name = "ComposeRepo"
|
|
setUrl(System.getenv("COMPOSE_REPO_URL"))
|
|
credentials {
|
|
username = System.getenv("COMPOSE_REPO_USERNAME")
|
|
password = System.getenv("COMPOSE_REPO_KEY")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |