Skip to content

Commit

Permalink
Fix base-codestart 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy committed Apr 6, 2023
1 parent 4746a69 commit a595540
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@
{/for}

import io.quarkus.runtime.Quarkus;
{#if quarkus.bom.version.startsWith("2.") or quarkus.bom.version.startsWith("1.")}
import javax.enterprise.context.ApplicationScoped;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
{#else}
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
{/if}

@Path("{resource.path}")
@ApplicationScoped
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ plugins {
{/include}

allOpen {
{#if quarkus.platform.version.startsWith("2.") or quarkus.platform.version.startsWith("1.")}
annotation("javax.ws.rs.Path")
annotation("javax.enterprise.context.ApplicationScoped")
{#else}
annotation("jakarta.ws.rs.Path")
annotation("jakarta.enterprise.context.ApplicationScoped")
{/if}
annotation("io.quarkus.test.junit.QuarkusTest")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ plugins {
{/include}

allOpen {
{#if quarkus.platform.version.startsWith("2.") or quarkus.platform.version.startsWith("1.")}
annotation("javax.ws.rs.Path")
annotation("javax.enterprise.context.ApplicationScoped")
{#else}
annotation("jakarta.ws.rs.Path")
annotation("jakarta.enterprise.context.ApplicationScoped")
{/if}
annotation("io.quarkus.test.junit.QuarkusTest")
}

Expand Down

0 comments on commit a595540

Please sign in to comment.