Skip to content

Commit

Permalink
Keep 2.x extensions codestarts embeded in tooling and mark them legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy committed Feb 6, 2023
1 parent 5925a26 commit 9b6673f
Show file tree
Hide file tree
Showing 37 changed files with 24 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Those extensions codestarts are used with Quarkus platform 2.10 and below.
From 2.11 and onward, they are provided by the platform.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.acme;

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

@Path("{resource.path}")
public class {resource.class-name} {
Expand All @@ -13,4 +13,4 @@ public class {resource.class-name} {
public String hello() {
return "{resource.response}";
}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.acme

import jakarta.ws.rs.GET
import jakarta.ws.rs.Path
import jakarta.ws.rs.Produces
import jakarta.ws.rs.core.MediaType
import javax.ws.rs.GET
import javax.ws.rs.Path
import javax.ws.rs.Produces
import javax.ws.rs.core.MediaType

@Path("{resource.path}")
class {resource.class-name} {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.acme

import jakarta.ws.rs.\{GET, Path, Produces}
import jakarta.ws.rs.core.MediaType
import javax.ws.rs.\{GET, Path, Produces}
import javax.ws.rs.core.MediaType

@Path("{resource.path}")
class {resource.class-name} {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.acme;

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

@Path("{resource.path}")
public class {resource.class-name} {
Expand All @@ -13,4 +13,4 @@ public class {resource.class-name} {
public String hello() {
return "{resource.response}";
}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.acme

import jakarta.ws.rs.GET
import jakarta.ws.rs.Path
import jakarta.ws.rs.Produces
import jakarta.ws.rs.core.MediaType
import javax.ws.rs.GET
import javax.ws.rs.Path
import javax.ws.rs.Produces
import javax.ws.rs.core.MediaType

@Path("{resource.path}")
class {resource.class-name} {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.acme

import jakarta.ws.rs.\{GET, Path, Produces}
import jakarta.ws.rs.core.MediaType
import javax.ws.rs.\{GET, Path, Produces}
import javax.ws.rs.core.MediaType

@Path("{resource.path}")
class {resource.class-name} {
Expand Down

0 comments on commit 9b6673f

Please sign in to comment.