Skip to content

Commit 1da5a94

Browse files
authored
Merge pull request ehcache#3290 from myronkscott/fix_dependency_scope
fix dependency scope of core apis
2 parents b6671ff + 309883e commit 1da5a94

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

clustered/ehcache-client/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ dependencies {
3232
compileOnlyApi project(':ehcache-xml:ehcache-xml-spi')
3333

3434
api project(':clustered:ehcache-common')
35-
implementation "org.terracotta:client-api:$terracottaApisVersion"
35+
compileOnly "org.terracotta:client-api:$terracottaApisVersion"
3636
implementation "org.terracotta:terracotta-runnel:$terracottaPlatformVersion"
3737
implementation "org.terracotta:terracotta-lease-client:$terracottaPlatformVersion"
3838
implementation "org.terracotta:terracotta-dynamic-config-entities-topology-client:$terracottaPlatformVersion"
3939
implementation "org.terracotta:terracotta-utilities-tools:$terracottaUtilitiesVersion"
4040

4141
compileOnly 'org.osgi:org.osgi.service.component.annotations:1.3.0'
4242

43+
testImplementation "org.terracotta:client-api:$terracottaApisVersion"
4344
testImplementation "org.terracotta:terracotta-resources-offheap:$terracottaPlatformVersion"
4445
testImplementation "org.terracotta:terracotta-management-server-api:$terracottaPlatformVersion"
4546
testImplementation project(':clustered:server:ehcache-service-api')

clustered/ehcache-common-api/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ publishing.publications.withType(MavenPublication) {
2727
}
2828

2929
dependencies {
30-
api "org.terracotta:common-api:$terracottaApisVersion"
30+
compileOnlyApi "org.terracotta:common-api:$terracottaApisVersion"
3131
}

clustered/ehcache-common/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ dependencies {
3030
api project(':ehcache-api')
3131
api project(':clustered:ehcache-common-api')
3232

33-
implementation "org.terracotta:common-api:$terracottaApisVersion"
33+
compileOnly "org.terracotta:common-api:$terracottaApisVersion"
3434
implementation "org.terracotta:terracotta-runnel:$terracottaPlatformVersion"
3535
implementation "org.terracotta:terracotta-utilities-tools:$terracottaUtilitiesVersion"
3636

37+
testImplementation "org.terracotta:client-api:$terracottaApisVersion"
3738
testImplementation project(':clustered:test-utils')
3839
}

clustered/osgi-test/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ configurations.all {
5959
.using(module('org.ops4j.pax.url:pax-url-classpath:2.6.11'))
6060
substitute(module('org.ops4j.pax.url:pax-url-link:2.6.8'))
6161
.using(module('org.ops4j.pax.url:pax-url-link:2.6.11'))
62+
substitute(module('org.ops4j.pax.url:pax-url-aether:2.6.8'))
63+
// the 2 line has CVE-2025-48924 which is preventing build
64+
.using(module('org.ops4j.pax.url:pax-url-aether:3.0.1'))
6265
substitute(module('org.osgi:org.osgi.util.function:1.1.0'))
6366
.using(module('org.osgi:org.osgi.util.function:1.2.0'))
6467
.because('Dependency divergence in org.osgi:org.osgi.util.promise:1.2.0')

osgi-test/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies {
3434

3535
runtimeOnly ('org.ops4j.pax.exam:pax-exam-link-mvn:4.13.5') {
3636
exclude group:'org.slf4j', module:'slf4j-api'
37-
}
37+
}
3838
runtimeOnly ("org.ops4j.pax.url:pax-url-wrap:2.6.11") {
3939
exclude group:'org.slf4j', module:'slf4j-api'
4040
}
@@ -77,6 +77,9 @@ configurations.all {
7777
.using(module('org.ops4j.pax.url:pax-url-classpath:2.6.11'))
7878
substitute(module('org.ops4j.pax.url:pax-url-link:2.6.8'))
7979
.using(module('org.ops4j.pax.url:pax-url-link:2.6.11'))
80+
substitute(module('org.ops4j.pax.url:pax-url-aether:2.6.8'))
81+
// the 2 line has CVE-2025-48924 which is preventing build
82+
.using(module('org.ops4j.pax.url:pax-url-aether:3.0.1'))
8083
substitute(module('org.osgi:org.osgi.util.function:1.1.0'))
8184
.using(module('org.osgi:org.osgi.util.function:1.2.0'))
8285
.because('Dependency divergence in org.osgi:org.osgi.util.promise:1.2.0')

0 commit comments

Comments
 (0)