Skip to content

Commit

Permalink
Bump to Quarkus 3.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jul 11, 2024
1 parent c5a71bb commit 7ef7886
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 20 deletions.
2 changes: 1 addition & 1 deletion deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-reactive-deployment</artifactId>
<artifactId>quarkus-rest-deployment</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBundleBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import io.quarkus.deployment.pkg.PackageConfig;
import io.quarkus.deployment.pkg.NativeConfig;

public class KerberosBuildStep {

Expand Down Expand Up @@ -55,8 +55,8 @@ public NativeImageResourceBundleBuildItem resourceBundleBuildItem() {

@BuildStep(onlyIf = IsEnabled.class)
@Record(ExecutionTime.RUNTIME_INIT)
public void register2(KerberosRecorder rec, PackageConfig packageConfig) throws Exception {
if (packageConfig.type.equals(PackageConfig.NATIVE)) {
public void register2(KerberosRecorder rec, NativeConfig nativeConfig) throws Exception {
if (nativeConfig.enabled()) {
rec.registerProviderForNative();
}
}
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy</artifactId>
<artifactId>quarkus-rest</artifactId>
</dependency>
<dependency>
<groupId>io.quarkiverse.kerberos</groupId>
Expand Down Expand Up @@ -88,7 +88,7 @@
</plugins>
</build>
<properties>
<quarkus.package.type>native</quarkus.package.type>
<quarkus.native.enabled>true</quarkus.native.enabled>
</properties>
</profile>
</profiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
import jakarta.ws.rs.GET;
import jakarta.ws.rs.NotAuthorizedException;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.WebApplicationException;
import jakarta.ws.rs.core.HttpHeaders;

import org.eclipse.microprofile.rest.client.inject.RestClient;
import org.ietf.jgss.GSSContext;
import org.jboss.resteasy.reactive.ClientWebApplicationException;

import io.quarkiverse.kerberos.client.KerberosClientSupport;

Expand Down Expand Up @@ -52,7 +54,11 @@ public String getIdentityWithMultiStepNegotiation() throws Exception {
@GET
@Path("without-kerberos-support")
public String getIdentityWithoutKerberosSupport() {
return identityServiceClient.getIdentity();
try {
return identityServiceClient.getIdentity();
} catch (ClientWebApplicationException ex) {
throw new WebApplicationException(ex.getResponse().getStatus());
}
}

private class IdentityServiceAction implements PrivilegedExceptionAction<String> {
Expand All @@ -78,5 +84,5 @@ public String run() throws Exception {
}
throw new RuntimeException("Kerberos ticket can not be created");
}
};
}
}
14 changes: 2 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkiverse</groupId>
<artifactId>quarkiverse-parent</artifactId>
<version>13</version>
<version>16</version>
</parent>
<groupId>io.quarkiverse.kerberos</groupId>
<artifactId>quarkus-kerberos-parent</artifactId>
Expand All @@ -24,13 +24,7 @@
<tag>HEAD</tag>
</scm>
<properties>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
<maven.compiler.parameters>true</maven.compiler.parameters>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.version>3.1.0.Final</quarkus.version>
<quarkus.version>3.12.2</quarkus.version>
<apacheds-all.version>2.0.0-M15</apacheds-all.version>
</properties>
<dependencyManagement>
Expand Down Expand Up @@ -72,10 +66,6 @@
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.version}</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down

0 comments on commit 7ef7886

Please sign in to comment.