Skip to content

Commit

Permalink
feat(nx-quarkus-maven): migrate to quarkus 3 (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 authored May 18, 2023
1 parent ef373c2 commit b72bc15
Show file tree
Hide file tree
Showing 19 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions packages/common/src/lib/versions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export const dependencyManagementVersion = '1.1.0';
export const springKotlinVersion = '1.7.22';

//Quarkus
export const quarkusPlatformVersion = '2.16.6.Final';
export const quarkusKotlinVersion = '1.7.22';
export const quarkusPlatformVersion = '3.0.3.Final';
export const quarkusKotlinVersion = '1.8.10';

//Linters
export const checkstyleVersion = '10.11.0';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package <%= packageName %>;

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

@Path("/hello")
public class GreetingResource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ tasks.withType<Test> {
}

allOpen {
annotation("javax.ws.rs.Path")
annotation("javax.enterprise.context.ApplicationScoped")
annotation("jakarta.ws.rs.Path")
annotation("jakarta.enterprise.context.ApplicationScoped")
annotation("io.quarkus.test.junit.QuarkusTest")
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package <%= packageName %>

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

@Path("/hello")
class GreetingResource {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package <%= packageName %>;

import javax.enterprise.context.ApplicationScoped;
import jakarta.enterprise.context.ApplicationScoped;

@ApplicationScoped
public class GreetingService {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package <%= packageName %>;

import javax.inject.Inject;
import jakarta.inject.Inject;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ tasks.withType<Test> {
}

allOpen {
annotation("javax.enterprise.context.ApplicationScoped")
annotation("jakarta.enterprise.context.ApplicationScoped")
annotation("io.quarkus.test.junit.QuarkusTest")
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package <%= packageName %>

import javax.enterprise.context.ApplicationScoped
import jakarta.enterprise.context.ApplicationScoped

@ApplicationScoped
class GreetingService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package <%= packageName %>
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test
import io.quarkus.test.junit.QuarkusTest
import javax.inject.Inject
import jakarta.inject.Inject


@QuarkusTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package <%= packageName %>;

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

@Path("/hello")
public class GreetingResource {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package <%= packageName %>

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

@Path("/hello")
class GreetingResource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@
<plugin>all-open</plugin>
</compilerPlugins>
<pluginOptions>
<option>all-open:annotation=javax.ws.rs.Path</option>
<option>all-open:annotation=javax.enterprise.context.ApplicationScoped</option>
<option>all-open:annotation=jakarta.ws.rs.Path</option>
<option>all-open:annotation=jakarta.enterprise.context.ApplicationScoped</option>
<option>all-open:annotation=io.quarkus.test.junit.QuarkusTest</option>
</pluginOptions>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package <%= packageName %>;

import javax.enterprise.context.ApplicationScoped;
import jakarta.enterprise.context.ApplicationScoped;

@ApplicationScoped
public class GreetingService {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package <%= packageName %>;

import javax.inject.Inject;
import jakarta.inject.Inject;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package <%= packageName %>

import javax.enterprise.context.ApplicationScoped
import jakarta.enterprise.context.ApplicationScoped

@ApplicationScoped
class GreetingService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package <%= packageName %>
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test
import io.quarkus.test.junit.QuarkusTest
import javax.inject.Inject
import jakarta.inject.Inject


@QuarkusTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ describe('nx-quarkus-gradle e2e', () => {
const newGreetingResourceContent = greetingResourceContent
.replace(
regex1,
`$&\nimport javax.inject.Inject;\nimport org.acme.${names(
`$&\nimport jakarta.inject.Inject;\nimport org.acme.${names(
libName
).className.toLocaleLowerCase()}.GreetingService;`
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ describe('nx-quarkus-gradle kt e2e', () => {
const newGreetingResourceContent = greetingResourceContent
.replace(
regex1,
`$&\nimport javax.inject.Inject;\nimport org.acme.${names(
`$&\nimport jakarta.inject.Inject;\nimport org.acme.${names(
libName
).className.toLocaleLowerCase()}.GreetingService;`
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ describe('nx-quarkus-maven e2e', () => {
const newGreetingResourceContent = greetingResourceContent
.replace(
regex1,
`$&\nimport javax.inject.Inject;\nimport org.acme.${names(
`$&\nimport jakarta.inject.Inject;\nimport org.acme.${names(
libName
).className.toLocaleLowerCase()}.GreetingService;`
)
Expand Down

0 comments on commit b72bc15

Please sign in to comment.