Skip to content

Commit

Permalink
Remove resolveDependencies target (#6775)
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst authored Sep 3, 2024
1 parent c27f651 commit c16094b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
20 changes: 0 additions & 20 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,26 +79,6 @@ task installGitHooks(type: Copy, dependsOn: 'setLocalRepo') {
into localRepo + '/hooks'
}

tasks.register('resolveDependencies') {
// Copied from here:
// http://www.jonathanpearlin.com/2014/10/28/gradle_resolve_all_dependencies.html
description 'Resolves all dependencies.'
doLast {
project.rootProject.allprojects.each { subProject ->
subProject.buildscript.configurations.each { configuration ->
if (configuration.canBeResolved) {
configuration.resolve()
}
}
subProject.configurations.each { configuration ->
if (configuration.canBeResolved) {
configuration.resolve()
}
}
}
}
}

spotless {
// Resolve the Spotless plugin dependencies from the buildscript repositories rather than the
// project repositories. That way the spotless plugin does not use the locally built version of
Expand Down
8 changes: 4 additions & 4 deletions checker/bin-devel/clone-related.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ echo "... done: (cd ${AT} && ./.build-without-test.sh)"
## Compile

# Download dependencies, trying a second time if there is a failure.
(TERM=dumb timeout 300 ./gradlew resolveDependencies || \
(echo "./gradlew resolveDependencies failed; sleeping before trying again." && \
(TERM=dumb timeout 300 ./gradlew --write-verification-metadata sha256 help --dry-run --quiet || \
(echo "./gradlew --write-verification-metadata sha256 help --dry-run --quiet failed; sleeping before trying again." && \
sleep 1m && \
echo "Trying again: ./gradlew resolveDependencies" && \
TERM=dumb timeout 300 ./gradlew resolveDependencies))
echo "Trying again: ./gradlew --write-verification-metadata sha256 help --dry-run --quiet" && \
TERM=dumb timeout 300 ./gradlew --write-verification-metadata sha256 help --dry-run --quiet))

echo Exiting checker/bin-devel/clone-related.sh in "$(pwd)"

0 comments on commit c16094b

Please sign in to comment.