Skip to content

Commit 8b7a811

Browse files
committed
Create properties for Vert.x Web and Web Client version
Useful for when we test snapshots. Usually we wanto to override one dependency and keep the other the same.
1 parent 33921ac commit 8b7a811

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

gradle.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ org.gradle.java.installations.auto-download=false
4646
# this is required when using intervals or weird versions or the build will fail
4747
#skipOrmVersionParsing = true
4848

49-
# Override default Vert.x version
49+
# Override default Vert.x Sql client version
5050
#vertxSqlClientVersion = 4.4.4-SNAPSHOT
5151

52+
# Override default Vert.x Web client and server versions. For integration tests, both default to vertxSqlClientVersion
53+
#vertxWebVersion = 4.4.4
54+
#vertxWebtClientVersion = 4.4.4
55+

integration-tests/techempower-postgres-it/build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,18 @@ ext {
1515
jacksonDatabindVersion = '2.15.2'
1616
jbossLoggingVersion = '3.5.0.Final'
1717
assertjVersion = '3.24.2'
18+
vertxWebVersion = project.hasProperty( 'vertxWebVersion' )
19+
? project.property( 'vertxWebVersion' )
20+
: vertxSqlClientVersion
21+
vertxWebClientVersion = project.hasProperty( 'vertxWebClientVersion' )
22+
? project.property( 'vertxWebClientVersion' )
23+
: vertxSqlClientVersion
1824
}
1925

2026
dependencies {
2127
implementation project( ':hibernate-reactive-core' )
22-
implementation "io.vertx:vertx-web:${vertxSqlClientVersion}"
23-
implementation "io.vertx:vertx-web-client:${vertxSqlClientVersion}"
28+
implementation "io.vertx:vertx-web:${vertxWebVersion}"
29+
implementation "io.vertx:vertx-web-client:${vertxWebClientVersion}"
2430

2531
runtimeOnly "io.vertx:vertx-pg-client:${vertxSqlClientVersion}"
2632
// The Pg client requires this dependency

integration-tests/verticle-postgres-it/build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,18 @@ ext {
1515
jacksonDatabindVersion = '2.15.2'
1616
jbossLoggingVersion = '3.5.0.Final'
1717
assertjVersion = '3.24.2'
18+
vertxWebVersion = project.hasProperty( 'vertxWebVersion' )
19+
? project.property( 'vertxWebVersion' )
20+
: vertxSqlClientVersion
21+
vertxWebClientVersion = project.hasProperty( 'vertxWebClientVersion' )
22+
? project.property( 'vertxWebClientVersion' )
23+
: vertxSqlClientVersion
1824
}
1925

2026
dependencies {
2127
implementation project(':hibernate-reactive-core')
22-
implementation "io.vertx:vertx-web:${vertxSqlClientVersion}"
23-
implementation "io.vertx:vertx-web-client:${vertxSqlClientVersion}"
28+
implementation "io.vertx:vertx-web:${vertxWebVersion}"
29+
implementation "io.vertx:vertx-web-client:${vertxWebClientVersion}"
2430

2531
runtimeOnly "io.vertx:vertx-pg-client:${vertxSqlClientVersion}"
2632
// The Pg client requires this dependency

0 commit comments

Comments
 (0)