Skip to content

Commit

Permalink
Merge pull request #30923 from ia3andy/fix-base-codestarts
Browse files Browse the repository at this point in the history
Keep 2.x extensions codestarts embedded in tooling and mark them legacy
  • Loading branch information
aloubyansky authored Feb 7, 2023
2 parents e664271 + cc4a8b7 commit e48aace
Show file tree
Hide file tree
Showing 48 changed files with 67 additions and 65 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
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("/hello")
public class GreetingResource {
Expand All @@ -13,4 +13,4 @@ public class GreetingResource {
public String hello() {
return "Hello from RESTEasy Reactive";
}
}
}
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("/hello")
public class GreetingResource {
Expand All @@ -13,4 +13,4 @@ public class GreetingResource {
public String hello() {
return "Hello RESTEasy";
}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.andy;

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("/bonjour")
public class BonjourResource {
Expand All @@ -13,4 +13,4 @@ public class BonjourResource {
public String hello() {
return "Hello RESTEasy";
}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.andy

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("/bonjour")
class BonjourResource {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.andy

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("/bonjour")
class BonjourResource {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package ilove.quark.us;

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("/hello")
public class GreetingResource {
Expand All @@ -13,4 +13,4 @@ public class GreetingResource {
public String hello() {
return "Hello RESTEasy";
}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package ilove.quark.us

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("/hello")
class GreetingResource {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ilove.quark.us

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("/hello")
class GreetingResource {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package ilove.quark.us;

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("/hello")
public class GreetingResource {
Expand All @@ -13,4 +13,4 @@ public class GreetingResource {
public String hello() {
return "Hello from RESTEasy Reactive";
}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package ilove.quark.us

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("/hello")
class GreetingResource {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ilove.quark.us

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("/hello")
class GreetingResource {
Expand Down

0 comments on commit e48aace

Please sign in to comment.