Skip to content

Commit

Permalink
updates quarkus sample to Quarkus v3 (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
pivotal-david-osullivan authored Aug 23, 2023
1 parent 82eb17a commit b112505
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion java/native-image/quarkus-native/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pack build applications/quarkus-native \
--env BP_MAVEN_BUILT_ARTIFACT="target/native-sources" \
--env BP_NATIVE_IMAGE_BUILD_ARGUMENTS_FILE="native-sources/native-image.args" \
--env BP_NATIVE_IMAGE_BUILT_ARTIFACT="native-sources/getting-started-*-runner.jar" \
--env BP_JVM_VERSION=11
--env BP_JVM_VERSION=17
```

## Running
Expand Down
2 changes: 1 addition & 1 deletion java/native-image/quarkus-native/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<properties>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
<quarkus.platform.version>2.11.3.Final</quarkus.platform.version>
<quarkus.platform.version>3.2.4.Final</quarkus.platform.version>
<compiler-plugin.version>3.10.1</compiler-plugin.version>
<surefire-plugin.version>3.0.0-M7</surefire-plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.acme.getting.started;

import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import jakarta.inject.Inject;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;

import org.jboss.resteasy.annotations.jaxrs.PathParam;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.acme.getting.started;

import javax.enterprise.context.ApplicationScoped;
import jakarta.enterprise.context.ApplicationScoped;

@ApplicationScoped
public class GreetingService {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.acme.getting.started;

import io.quarkus.test.junit.NativeImageTest;
import io.quarkus.test.junit.QuarkusIntegrationTest;

@NativeImageTest
@QuarkusIntegrationTest
public class NativeGreetingResourceIT extends GreetingResourceTest {

// Execute the same tests but in native mode.
Expand Down

0 comments on commit b112505

Please sign in to comment.