Skip to content

Commit

Permalink
Make sure all base codestarts work for 2.x and 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Jun 22, 2023
1 parent eedd893 commit 8a96b27
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
package org.acme;

{#if quarkus.bom.version.startsWith("2.") or quarkus.bom.version.startsWith("1.")}
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
{#else}
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
{/if}

@Path("{resource.path}")
public class {resource.class-name} {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@
*/
package {package-name}.it;

{#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("/{extension.id}")
@ApplicationScoped
Expand Down

0 comments on commit 8a96b27

Please sign in to comment.