Skip to content

Commit

Permalink
remove dependencyConstraints from the published gradle module metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Dec 4, 2022
1 parent 396a940 commit 7321a56
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 5 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ allprojects {
}

dependencies {
def deprecated = ['apiElements', 'archives', 'compileClasspath', 'default',
'runtimeClasspath', 'runtimeElements', 'testCompileClasspath', 'testRuntimeClasspath']
def ignored = [
'api', 'apiElements', 'archives', 'compileClasspath', 'compileOnlyApi', 'default',
'implementation', 'javadocElements', 'runtimeClasspath', 'runtimeElements', 'runtimeOnly',
'sourcesElements', 'testCompileClasspath', 'testRuntimeClasspath']
configurations.all { configuration ->
if (name !in deprecated) {
if (name !in ignored) {
restrictions.each { module, version ->
constraints.add(configuration.name, module).version { require version }
}
Expand Down
4 changes: 0 additions & 4 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ publishing {
url = 'https://github.com/ben-manes/caffeine'
inceptionYear = '2014'

withXml {
asNode().remove(asNode().dependencyManagement)
}

scm {
url = 'https://github.com/ben-manes/caffeine'
connection = 'scm:git:https://github.com/ben-manes/caffeine.git'
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ gradleEnterprise {
}
buildScan {
capture.taskInputFiles = true
publishAlways()

if (System.env.CI) {
uploadInBackground = false
publishAlways()
} else {
obfuscation.ipAddresses { [] }
}
Expand Down

0 comments on commit 7321a56

Please sign in to comment.