Skip to content

Commit 97b6af7

Browse files
committed
Separate test and demo dependency versions from main constraints
1 parent d5c56a9 commit 97b6af7

File tree

8 files changed

+30
-18
lines changed

8 files changed

+30
-18
lines changed

build.gradle

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,9 @@ dependencies {
5858
}
5959
api('com.google.guava:guava:[24.1.1,31)')
6060
api('com.upokecenter:cbor:[4.5.1,5)')
61-
api('javax.ws.rs:javax.ws.rs-api:[2.1,3)')
62-
api('javax.xml.bind:jaxb-api:[2.3.0,3)')
63-
api('junit:junit:[4.12,5)')
64-
api('org.apache.httpcomponents:httpclient:[4.5.2,5)')
6561
api('org.bouncycastle:bcpkix-jdk15on:[1.62,2)')
6662
api('org.bouncycastle:bcprov-jdk15on:[1.62,2)')
67-
api('org.eclipse.jetty:jetty-servlet:[9.4.9.v20180320,10)')
68-
api('org.glassfish.jersey.containers:jersey-container-servlet-core:[2.33,3)')
69-
api('org.glassfish.jersey.containers:jersey-container-servlet:[2.33,3)')
70-
api('org.glassfish.jersey.inject:jersey-hk2:[2.33,3)')
71-
api('org.mockito:mockito-core:[2.27.0,3)')
72-
api('org.scalacheck:scalacheck_2.13:[1.14.0,2)')
73-
api('org.scalatest:scalatest_2.13:[3.0.8,3.1)')
7463
api('org.slf4j:slf4j-api:[1.7.25,2)')
75-
api('uk.org.lidalia:slf4j-test:[1.1.0,2)')
7664
}
7765
}
7866

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ include ':test-dependent-projects:java-dep-webauthn-server-attestation'
99
include ':test-dependent-projects:java-dep-webauthn-server-core'
1010
include ':test-dependent-projects:java-dep-webauthn-server-core-and-bouncycastle'
1111
include ':test-dependent-projects:java-dep-yubico-util'
12+
include ':test-platform'

test-platform/build.gradle

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
plugins {
2+
id 'java-platform'
3+
}
4+
5+
description = 'Dependency constraints for tests'
6+
7+
dependencies {
8+
constraints {
9+
api('junit:junit:[4.12,5)')
10+
api('org.apache.httpcomponents:httpclient:[4.5.2,5)')
11+
api('org.mockito:mockito-core:[2.27.0,3)')
12+
api('org.scalacheck:scalacheck_2.13:[1.14.0,2)')
13+
api('org.scalatest:scalatest_2.13:[3.0.8,3.1)')
14+
api('uk.org.lidalia:slf4j-test:[1.1.0,2)')
15+
}
16+
}

webauthn-server-attestation/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ dependencies {
4444
)
4545

4646
testImplementation(
47+
platform(project(":test-platform")),
4748
project(':webauthn-server-core').sourceSets.test.output,
4849
project(':yubico-util-scala'),
4950
'com.fasterxml.jackson.datatype:jackson-datatype-jdk8',

webauthn-server-core/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ dependencies {
3131
)
3232

3333
testImplementation(
34+
platform(project(":test-platform")),
3435
project(':yubico-util-scala'),
3536
'com.fasterxml.jackson.datatype:jackson-datatype-jdk8',
3637
'junit:junit',

webauthn-server-demo/build.gradle

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,24 @@ dependencies {
1919
'com.fasterxml.jackson.core:jackson-databind',
2020
'com.google.guava:guava',
2121
'com.upokecenter:cbor',
22-
'javax.ws.rs:javax.ws.rs-api',
2322
'org.bouncycastle:bcprov-jdk15on',
24-
'org.eclipse.jetty:jetty-server',
25-
'org.eclipse.jetty:jetty-servlet',
26-
'org.glassfish.jersey.containers:jersey-container-servlet-core',
2723
'org.slf4j:slf4j-api',
2824
)
2925

26+
implementation(
27+
'org.eclipse.jetty:jetty-servlet:9.4.9.v20180320',
28+
'org.glassfish.jersey.containers:jersey-container-servlet-core:2.36',
29+
'javax.ws.rs:javax.ws.rs-api:2.1.1',
30+
)
31+
3032
runtimeOnly(
3133
'ch.qos.logback:logback-classic:1.3.0',
32-
'org.glassfish.jersey.containers:jersey-container-servlet',
33-
'org.glassfish.jersey.inject:jersey-hk2',
34+
'org.glassfish.jersey.containers:jersey-container-servlet:2.36',
35+
'org.glassfish.jersey.inject:jersey-hk2:2.36',
3436
)
3537

3638
testImplementation(
39+
platform(project(":test-platform")),
3740
project(':webauthn-server-core').sourceSets.test.output,
3841
project(':yubico-util-scala'),
3942

yubico-util-scala/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ targetCompatibility = 1.8
1010

1111
dependencies {
1212
implementation(platform(rootProject))
13+
implementation(platform(project(":test-platform")))
1314

1415
implementation(
1516
'org.scala-lang:scala-library',

yubico-util/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ targetCompatibility = 1.8
1616

1717
dependencies {
1818
api(platform(rootProject))
19+
api(platform(project(":test-platform")))
1920

2021
api(
2122
'com.fasterxml.jackson.core:jackson-databind',

0 commit comments

Comments
 (0)