Browse Source

Add mavenLocal to components project (#3906)

We have scripts in compose/README.md
These scripts needs mavenLocal to correcty build local version of all
Compose libraries
pull/3921/head
dima.avdeev 6 months ago committed by GitHub
parent
commit
9773115403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      components/settings.gradle.kts
  2. 2
      compose/scripts/publishComponentsToMavenLocal

6
components/settings.gradle.kts

@ -4,6 +4,9 @@ pluginManagement {
gradlePluginPortal()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
if (extra["compose.useMavenLocal"] == "true") {
mavenLocal()
}
}
plugins {
@ -16,6 +19,9 @@ pluginManagement {
dependencyResolutionManagement {
repositories {
if (extra["compose.useMavenLocal"] == "true") {
mavenLocal() // mavenLocal should be the first to get the correct version of skiko during a local build.
}
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")

2
compose/scripts/publishComponentsToMavenLocal

@ -8,6 +8,6 @@ if [[ -z "$COMPOSE_CUSTOM_VERSION" ]]; then
fi
pushd ../../components
./gradlew publishToMavenLocal -Pcompose.version="$COMPOSE_CUSTOM_VERSION" || exit 1
./gradlew publishToMavenLocal -Pcompose.version="$COMPOSE_CUSTOM_VERSION" -Pcompose.useMavenLocal=true || exit 1
popd

Loading…
Cancel
Save