Skip to content

Commit 281f72f

Browse files
build(deps): Bump io.smallrye:smallrye-parent from 47 to 48 (#2426)
* build(deps): Bump io.smallrye:smallrye-parent from 47 to 48 Bumps [io.smallrye:smallrye-parent](https://github.com/smallrye/smallrye-parent) from 47 to 48. - [Release notes](https://github.com/smallrye/smallrye-parent/releases) - [Commits](https://github.com/smallrye/smallrye-parent/commits) --- updated-dependencies: - dependency-name: io.smallrye:smallrye-parent dependency-version: '48' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Remove Shrinkwrap BOM imports in testsuite (JUnit version conflict) Signed-off-by: Michael Edgar <[email protected]> * Remove surefire-junit-platform plugin dependency from testsuite/extra Signed-off-by: Michael Edgar <[email protected]> * Gradle plugin: update wrapper, fix builde/test for Gradle 9 Signed-off-by: Michael Edgar <[email protected]> * Revert update of testsuite/extra to Java 17 Signed-off-by: Michael Edgar <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Michael Edgar <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Michael Edgar <[email protected]>
1 parent 18bc277 commit 281f72f

File tree

10 files changed

+37
-47
lines changed

10 files changed

+37
-47
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>io.smallrye</groupId>
88
<artifactId>smallrye-parent</artifactId>
9-
<version>47</version>
9+
<version>48</version>
1010
</parent>
1111

1212
<artifactId>smallrye-open-api-parent</artifactId>

testsuite/extra/pom.xml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
<dependency>
5353
<groupId>org.jboss.shrinkwrap</groupId>
5454
<artifactId>shrinkwrap-api</artifactId>
55+
<version>${version.shrinkwrap_core}</version>
5556
<scope>test</scope>
5657
</dependency>
5758
<dependency>
@@ -103,17 +104,9 @@
103104

104105
<build>
105106
<plugins>
106-
<!-- Export the reserved port from above as a system property (code will use a default port if port unset) -->
107107
<plugin>
108108
<groupId>org.apache.maven.plugins</groupId>
109109
<artifactId>maven-surefire-plugin</artifactId>
110-
<dependencies>
111-
<dependency>
112-
<groupId>org.apache.maven.surefire</groupId>
113-
<artifactId>surefire-junit-platform</artifactId>
114-
<version>${version.surefire.plugin}</version>
115-
</dependency>
116-
</dependencies>
117110
<configuration>
118111
<systemPropertyVariables>
119112
<java.util.logging.config.file>${project.build.testOutputDirectory}/logging.properties</java.util.logging.config.file>

testsuite/pom.xml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,6 @@
5656
<type>pom</type>
5757
<scope>import</scope>
5858
</dependency>
59-
<!-- ShrinkWrap -->
60-
<dependency>
61-
<groupId>org.jboss.shrinkwrap</groupId>
62-
<artifactId>shrinkwrap-bom</artifactId>
63-
<version>${version.shrinkwrap_core}</version>
64-
<type>pom</type>
65-
<scope>import</scope>
66-
</dependency>
67-
<!-- ShrinkWrap Resolver -->
68-
<dependency>
69-
<groupId>org.jboss.shrinkwrap.resolver</groupId>
70-
<artifactId>shrinkwrap-resolver-bom</artifactId>
71-
<version>${version.shrinkwrap_resolver}</version>
72-
<type>pom</type>
73-
<scope>import</scope>
74-
</dependency>
7559
</dependencies>
7660
</dependencyManagement>
7761

testsuite/tck/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,19 @@
102102
<dependency>
103103
<groupId>org.jboss.shrinkwrap</groupId>
104104
<artifactId>shrinkwrap-api</artifactId>
105+
<version>${version.shrinkwrap_core}</version>
105106
<scope>test</scope>
106107
</dependency>
107108
<dependency>
108109
<groupId>org.jboss.shrinkwrap.resolver</groupId>
109110
<artifactId>shrinkwrap-resolver-impl-maven</artifactId>
111+
<version>${version.shrinkwrap_resolver}</version>
110112
<scope>test</scope>
111113
</dependency>
112114
<dependency>
113115
<groupId>org.jboss.shrinkwrap.resolver</groupId>
114116
<artifactId>shrinkwrap-resolver-api-maven</artifactId>
117+
<version>${version.shrinkwrap_resolver}</version>
115118
<scope>test</scope>
116119
</dependency>
117120

tools/gradle-plugin/build.gradle

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ group = "io.smallrye"
88

99
compileJava {
1010
options.encoding = 'UTF-8'
11-
sourceCompatibility = '11'
12-
targetCompatibility = '11'
11+
sourceCompatibility = JavaVersion.VERSION_11
12+
targetCompatibility = JavaVersion.VERSION_11
1313
}
1414

1515
compileTestJava {
@@ -20,7 +20,7 @@ repositories {
2020
mavenLocal()
2121
mavenCentral()
2222
maven {
23-
url = uri("file:./target/dependencies")
23+
url = uri("./target/dependencies")
2424
}
2525
}
2626

@@ -31,7 +31,8 @@ dependencies {
3131
implementation("io.smallrye:smallrye-open-api-vertx:${version}")
3232
implementation("io.smallrye.config:smallrye-config:${versionConfig}")
3333

34-
testImplementation("org.junit.jupiter:junit-jupiter:${versionJunit5}")
34+
testRuntimeOnly("org.junit.platform:junit-platform-launcher:${versionJunit}")
35+
testImplementation("org.junit.jupiter:junit-jupiter:${versionJunit}")
3536
testImplementation(gradleTestKit())
3637
testImplementation("org.assertj:assertj-core:3.27.6")
3738
testImplementation("com.fasterxml.jackson.core:jackson-databind:${versionJackson}")
@@ -41,10 +42,13 @@ test {
4142
testLogging {
4243
events "passed", "skipped", "failed"
4344
}
45+
4446
useJUnitPlatform()
47+
4548
// multiple Gradle invocations executed from the same testing JVM cause problems, so fork
4649
// for each test, and make sure we only run one Gradle execution in each test
47-
forkEvery 1
50+
forkEvery = 1
51+
4852
// For Gradle testing :(
4953
jvmArgs("--add-opens=java.base/java.lang.invoke=ALL-UNNAMED",
5054
"--add-opens=java.base/java.util=ALL-UNNAMED")
-17.7 KB
Binary file not shown.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=c16d517b50dd28b3f5838f0e844b7520b8f1eb610f2f29de7e4e04a1b7c9c79b
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
3+
distributionSha256Sum=f86344275d1b194688dd330abf9f6f2344cd02872ffee035f2d1ea2fd60cf7f3
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-all.zip
55
networkTimeout=10000
6+
validateDistributionUrl=true
67
zipStoreBase=GRADLE_USER_HOME
78
zipStorePath=wrapper/dists

tools/gradle-plugin/gradlew

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,8 @@ done
8383
# This is normally unused
8484
# shellcheck disable=SC2034
8585
APP_BASE_NAME=${0##*/}
86-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
87-
88-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
86+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
9088

9189
# Use the maximum available, or set MAX_FD != -1 to use that value.
9290
MAX_FD=maximum
@@ -133,26 +131,29 @@ location of your Java installation."
133131
fi
134132
else
135133
JAVACMD=java
136-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134+
if ! command -v java >/dev/null 2>&1
135+
then
136+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137137
138138
Please set the JAVA_HOME variable in your environment to match the
139139
location of your Java installation."
140+
fi
140141
fi
141142

142143
# Increase the maximum file descriptors if we can.
143144
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144145
case $MAX_FD in #(
145146
max*)
146147
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147-
# shellcheck disable=SC3045
148+
# shellcheck disable=SC2039,SC3045
148149
MAX_FD=$( ulimit -H -n ) ||
149150
warn "Could not query maximum file descriptor limit"
150151
esac
151152
case $MAX_FD in #(
152153
'' | soft) :;; #(
153154
*)
154155
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155-
# shellcheck disable=SC3045
156+
# shellcheck disable=SC2039,SC3045
156157
ulimit -n "$MAX_FD" ||
157158
warn "Could not set maximum file descriptor limit to $MAX_FD"
158159
esac
@@ -197,11 +198,15 @@ if "$cygwin" || "$msys" ; then
197198
done
198199
fi
199200

200-
# Collect all arguments for the java command;
201-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
202-
# shell script including quotes and variable substitutions, so put them in
203-
# double quotes to make sure that they get re-expanded; and
204-
# * put everything else in single quotes, so that it's not re-expanded.
201+
202+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
203+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
204+
205+
# Collect all arguments for the java command:
206+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207+
# and any embedded shellness will be escaped.
208+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209+
# treated as '${Hostname}' itself on the command line.
205210

206211
set -- \
207212
"-Dorg.gradle.appname=$APP_BASE_NAME" \

tools/gradle-plugin/src/maven-build/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
version=${project.version}
55
versionConfig=${version.io.smallrye.smallrye-config}
66
versionJackson=${jackson-bom.version}
7-
versionJunit5=${version.junit5}
7+
versionJunit=${version.junit}

tools/gradle-plugin/src/test/java/io/smallrye/openapi/gradleplugin/SmallryeOpenApiPluginTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ void smokeProject(Path buildDir, boolean withQuarkus, String taskName, String ou
185185
"plugins {",
186186
" id 'java-library'",
187187
" id 'io.smallrye.openapi'",
188-
withQuarkus ? " id 'io.quarkus' version '2.15.2.Final'" : "",
188+
withQuarkus ? " id 'io.quarkus' version '3.27.1'" : "",
189189
"}",
190190
"",
191191
"repositories {",
@@ -294,7 +294,7 @@ private static void checkGeneratedFiles(Path buildDir, String expectedOutputFile
294294
assertThat(targetOpenapiDir.resolve("my-openapi-schema-file.json")).isRegularFile();
295295

296296
JsonNode root = new ObjectMapper().readValue(
297-
targetOpenapiDir.resolve("my-openapi-schema-file.json").toUri().toURL(),
297+
targetOpenapiDir.resolve("my-openapi-schema-file.json").toFile(),
298298
JsonNode.class);
299299
assertThat(root.get("openapi").asText()).isEqualTo("999.999.999");
300300
assertThat(root.get("x-smallrye-gradle-generated").booleanValue()).isTrue();

0 commit comments

Comments
 (0)