Skip to content

Commit c16094b

Browse files
authored
Remove resolveDependencies target (#6775)
1 parent c27f651 commit c16094b

File tree

2 files changed

+4
-24
lines changed

2 files changed

+4
-24
lines changed

build.gradle

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -79,26 +79,6 @@ task installGitHooks(type: Copy, dependsOn: 'setLocalRepo') {
7979
into localRepo + '/hooks'
8080
}
8181

82-
tasks.register('resolveDependencies') {
83-
// Copied from here:
84-
// http://www.jonathanpearlin.com/2014/10/28/gradle_resolve_all_dependencies.html
85-
description 'Resolves all dependencies.'
86-
doLast {
87-
project.rootProject.allprojects.each { subProject ->
88-
subProject.buildscript.configurations.each { configuration ->
89-
if (configuration.canBeResolved) {
90-
configuration.resolve()
91-
}
92-
}
93-
subProject.configurations.each { configuration ->
94-
if (configuration.canBeResolved) {
95-
configuration.resolve()
96-
}
97-
}
98-
}
99-
}
100-
}
101-
10282
spotless {
10383
// Resolve the Spotless plugin dependencies from the buildscript repositories rather than the
10484
// project repositories. That way the spotless plugin does not use the locally built version of

checker/bin-devel/clone-related.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ echo "... done: (cd ${AT} && ./.build-without-test.sh)"
8383
## Compile
8484

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

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

0 commit comments

Comments
 (0)