Skip to content

Commit

Permalink
force no daemon for gradle releases
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoayyed committed May 31, 2024
1 parent ceebf2c commit e4149cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ci/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ function printred() {
}

function clean {
./gradlew clean --parallel --no-configuration-cache
./gradlew clean --parallel --no-configuration-cache --no-daemon
}

function build {
printgreen "Creating OpenRewrite recipe for ${casVersion}..."
./gradlew createOpenRewriteRecipe
./gradlew createOpenRewriteRecipe --no-daemon
git diff --quiet
git status
git add "**/rewrite/*.yml" && git commit -m "Generated OpenRewrite recipe for ${casVersion}"

printgreen "Building CAS. Please be patient as this might take a while..."
./gradlew assemble -x test -x check --parallel --no-watch-fs --no-configuration-cache \
./gradlew assemble -x test -x check --no-daemon --parallel --no-watch-fs --no-configuration-cache \
-DskipAot=true -DpublishReleases=true -DrepositoryUsername="$1" -DrepositoryPassword="$2"
if [ $? -ne 0 ]; then
printred "Building CAS failed."
Expand Down Expand Up @@ -64,7 +64,7 @@ function publish {
fi
printgreen "Publishing CAS releases. This might take a while..."
./gradlew publishToSonatype closeAndReleaseStagingRepository \
--no-build-cache --no-parallel --no-watch-fs --no-configuration-cache -DskipAot=true -DpublishReleases=true \
--no-build-cache --no-daemon --no-parallel --no-watch-fs --no-configuration-cache -DskipAot=true -DpublishReleases=true \
-DrepositoryUsername="$1" -DrepositoryPassword="$2" -DpublishReleases=true \
-Dorg.gradle.internal.http.socketTimeout=640000 \
-Dorg.gradle.internal.http.connectionTimeout=640000 \
Expand Down

0 comments on commit e4149cb

Please sign in to comment.