Skip to content

Commit

Permalink
build: bump gradle wrapper to 8.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed Jan 9, 2024
1 parent ba3ed46 commit 892a2c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
8 changes: 1 addition & 7 deletions prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,6 @@ fi

for component in "${components[@]}"
do
# we're using gradle 7 in some components because of https://github.com/gradle-nexus/publish-plugin/issues/208
sed -i "s#shadow = .*#shadow = { id = \"com.github.johnrengelman.shadow\", version = \"7.1.2\" }#g" ${component}/gradle/libs.versions.toml

# make sure gradle 7.6 is used everywhere
grep -rlz "distributionUrl=" ${component} | xargs sed -i "s#gradle-8..*-bin.zip#gradle-7.6-bin.zip#g"

# publish artifacts to maven local
echo "Build and publish to maven local component $component"
cd "$component"
Expand Down Expand Up @@ -155,4 +149,4 @@ done
## Swap out the build file without the nexus plugin, because the nexus plugin
## gets applied at the root project level, otherwise it will throw an error.
mv Runtime-Metamodel/build.gradle.kts Runtime-Metamodel/build.gradle.kts.bak
mv Runtime-Metamodel/build.gradle.kts.release Runtime-Metamodel/build.gradle.kts
mv Runtime-Metamodel/build.gradle.kts.release Runtime-Metamodel/build.gradle.kts

0 comments on commit 892a2c1

Please sign in to comment.