-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump minimum Java to 11 (#239). Drop palantir's version consistency p…
…lugin in favor of plugin catalogues and less invasive consistency/ sanity checker written by myself. #240.
- Loading branch information
Showing
16 changed files
with
275 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
allprojects { | ||
apply plugin: deps.plugins.dependencychecks.get().pluginId | ||
|
||
def mainConfigurations = project.configurations.matching { | ||
it.name in [ | ||
"compileClasspath", | ||
"runtimeClasspath" | ||
] | ||
} | ||
def testConfigurations = project.configurations.matching { | ||
it.name in [ | ||
"annotationProcessor", | ||
"testCompileClasspath", | ||
"testRuntimeClasspath" | ||
] | ||
} | ||
|
||
dependencyVersionChecks { | ||
lockFileComment = "An inventory of resolved dependency versions. Do not edit this file directly." | ||
|
||
configurationGroups { | ||
// this groups all 'main' source set configurations from all projects. | ||
main_dependencies { | ||
include mainConfigurations | ||
} | ||
// this groups all 'test' and other configurations from all projects. | ||
test_dependencies { | ||
include testConfigurations | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
constraints { | ||
mainConfigurations.configureEach { Configuration conf -> | ||
// no resolutions for conflicting dependencies at the moment. | ||
} | ||
} | ||
} | ||
} | ||
|
||
// Configure version catalog cleanups plugin. | ||
configure(rootProject) { | ||
apply plugin: deps.plugins.versionCatalogUpdate.get().pluginId | ||
|
||
versionCatalogUpdate { | ||
sortByKey = true | ||
|
||
keep { | ||
// Never remove these named versions (used for other things than module dependencies). | ||
versions = [ | ||
"minJava" | ||
] | ||
} | ||
|
||
versionCatalogs { | ||
deps { | ||
catalogFile = file("versions.toml") | ||
} | ||
} | ||
} | ||
|
||
tasks.matching { it.name == "tidy" }.configureEach { | ||
it.dependsOn(":versionCatalogFormatDeps") | ||
} | ||
|
||
tasks.matching { it.path in [":versionCatalogUpdateDeps"] }.configureEach { | ||
it.interactive = true | ||
} | ||
|
||
tasks.register("updateTomls", { | ||
dependsOn ":versionCatalogUpdateInternalDeps" | ||
dependsOn ":versionCatalogUpdateDeps" | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.