Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Fix gradle resolve dependencies #182

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: groovy
jdk:
- oraclejdk8
- openjdk8
install: ./gradlew resolveAllDependencies assemble
before_script:
- "echo $JAVA_OPTS"
Expand Down
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ def getPomConfiguration() {
// download dependencies all at once, keeps downloads out of travis output
task resolveAllDependencies {
doLast {
configurations.all { it.resolve() }
rootProject.allprojects { project ->
def configs = project.buildscript.configurations + project.configurations
configs.findAll { c -> c.canBeResolved }
.forEach { c -> c.resolve() }
}
}
}