Skip to content

Commit

Permalink
fix: overriding dependency target maven-publish
Browse files Browse the repository at this point in the history
`resolutionStrategy` is only evaluated in the gradle build context. It
is not evaluated by maven-publish. The versions are therefore missing
in the generated POM file.
  • Loading branch information
halber authored and s4heid committed Nov 16, 2023
1 parent d7f3153 commit c077d3a
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ repositories {
mavenCentral()
}

configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'org.infinispan') {
details.useVersion '14.0.14.Final'
}
}
}

dependencies {
// Framework dependencies
def vertx_version = '4.4.6'
Expand All @@ -68,8 +60,12 @@ dependencies {
exclude group: 'org.infinispan', module: 'infinispan-commons'
exclude group: 'org.infinispan', module: 'infinispan-multimap'
}
implementation group: 'org.infinispan', name: 'infinispan-multimap-jakarta'
implementation group: 'org.infinispan', name: 'infinispan-core-jakarta'
def infinispan_version = '14.0.14.Final'
implementation group: 'org.infinispan', name: 'infinispan-multimap-jakarta', version: infinispan_version
implementation group: 'org.infinispan', name: 'infinispan-core-jakarta', version: infinispan_version
implementation group: 'org.infinispan', name: 'infinispan-clustered-lock', version: infinispan_version
implementation group: 'org.infinispan', name: 'infinispan-clustered-counter', version: infinispan_version
implementation group: 'org.infinispan', name: 'infinispan-component-annotations', version: infinispan_version

def jackson_version = '2.15.0'
implementation group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: jackson_version
Expand Down

0 comments on commit c077d3a

Please sign in to comment.