Skip to content
Merged
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
20 changes: 8 additions & 12 deletions .github/workflows/use-snapshot.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
// An init script to override a build configuration to use a snapshot version of NullAway
allprojects {
gradle.lifecycle.beforeProject {
Comment thread
msridhar marked this conversation as resolved.
repositories {
mavenCentral()
mavenLocal()
gradlePluginPortal()
}
}

gradle.projectsLoaded {
rootProject.allprojects {
configurations.all {
resolutionStrategy {
eachDependency {
if (requested.group == "com.uber.nullaway") {
useVersion("+")
}
configurations.configureEach {
resolutionStrategy {
eachDependency {
if (requested.group == "com.uber.nullaway") {
useVersion("+")
}
cacheChangingModulesFor(0, "seconds")
cacheDynamicVersionsFor(0, "seconds")
}
cacheChangingModulesFor(0, "seconds")
cacheDynamicVersionsFor(0, "seconds")
}
}
}