-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #509 from jmfayard/update-toml
Add support for Versions Catalogs `gradle/libs.versions.toml`
- Loading branch information
Showing
100 changed files
with
5,184 additions
and
719 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,50 @@ | ||
#!/usr/bin/env bash | ||
fail() { | ||
echo "$1" | ||
exit 1 | ||
} | ||
checkInstalled() { | ||
which "$1" || fail "ERROR: please install $1" | ||
} | ||
|
||
cd plugins | ||
./gradlew test publishToMavenLocal | ||
runGradleTaskInFolder() { | ||
echo | ||
echo "== cd $1 ==" | ||
cd $1 || fail "ERROR: Folder $1 doesn't exist" | ||
pwd | ||
|
||
echo '$' "./gradlew $TASK" | ||
./gradlew $TASK || fail "ERROR for task $TASK" | ||
cd .. | ||
} | ||
|
||
DIR="$(basename $PWD)" | ||
TASK="check refreshVersions" | ||
|
||
test -n "$1" && TASK="$*" | ||
echo "TASK=$TASK" | ||
|
||
cd ../sample-plugins | ||
./gradlew check refreshVersions | ||
test "$DIR" = "refreshVersions" || fail "ERROR: must be called from the refreshVersions folder" | ||
checkInstalled java | ||
checkInstalled node | ||
checkInstalled yarn | ||
|
||
|
||
cd plugins || fail "can't cd plugins" | ||
./gradlew test publishToMavenLocal | ||
cd .. | ||
|
||
cd ../sample-kotlin | ||
./gradlew check refreshVersions | ||
runGradleTaskInFolder sample-kotlin | ||
runGradleTaskInFolder sample-multi-modules | ||
runGradleTaskInFolder sample-groovy | ||
runGradleTaskInFolder sample-kotlin-js | ||
|
||
cd ..sample-groovy | ||
./gradlew check refreshVersions | ||
test -n "$ANDROID_SDK_ROOT" && { | ||
runGradleTaskInFolder sample-android | ||
} | ||
|
||
echo "SUCCESS" | ||
test "$TASK" = "refreshVersionsCleanup" || { | ||
echo "To clean up your git history, you can run:" | ||
echo " ./checkPlugins.sh refreshVersionsCleanup" | ||
} |
Binary file modified
BIN
+1.19 KB
(100%)
dummy-library-for-testing/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
dummy-library-for-testing/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
131 changes: 0 additions & 131 deletions
131
plugins/buildSrcLibs/src/main/kotlin/de/fayard/buildSrcLibs/internal/DependencyNotations.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.