Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep 2.x extensions codestarts embedded in tooling and mark them legacy #30923

Merged
merged 1 commit into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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