Skip to content

Commit

Permalink
Add mavenLocal to components project (#3906)
Browse files Browse the repository at this point in the history
We have scripts in compose/README.md
These scripts needs mavenLocal to correcty build local version of all
Compose libraries
  • Loading branch information
dima-avdeev-jb authored Nov 8, 2023
1 parent 9167a87 commit 9773115
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions components/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ pluginManagement {
gradlePluginPortal()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
if (extra["compose.useMavenLocal"] == "true") {
mavenLocal()
}
}

plugins {
Expand All @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion compose/scripts/publishComponentsToMavenLocal
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9773115

Please sign in to comment.