Skip to content

Commit

Permalink
Moved @Rollback to its own module quarkusio#24500
Browse files Browse the repository at this point in the history
(cherry picked from commit 77c441d)
  • Loading branch information
FroMage authored and gsmet committed Mar 29, 2022
1 parent cc37101 commit 42c9dd7
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 6 deletions.
5 changes: 5 additions & 0 deletions bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1558,6 +1558,11 @@
<artifactId>quarkus-resteasy-server-common-deployment</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-transaction-annotations</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-narayana-jta</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.quarkus.narayana.interceptor;

import io.quarkus.narayana.jta.Rollback;
import io.quarkus.transaction.annotations.Rollback;

// prevent a rollback to counter the default
@Rollback(false)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.quarkus.narayana.interceptor;

import io.quarkus.narayana.jta.Rollback;
import io.quarkus.transaction.annotations.Rollback;

// force a rollback to counter the default
@Rollback
Expand Down
4 changes: 4 additions & 0 deletions extensions/narayana-jta/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
<groupId>io.quarkus</groupId>
<artifactId>quarkus-arc</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-transaction-annotations</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-mutiny</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
import com.arjuna.ats.jta.logging.jtaLogger;

import io.quarkus.arc.runtime.InterceptorBindings;
import io.quarkus.narayana.jta.Rollback;
import io.quarkus.narayana.jta.runtime.CDIDelegatingTransactionManager;
import io.quarkus.narayana.jta.runtime.TransactionConfiguration;
import io.quarkus.transaction.annotations.Rollback;
import io.smallrye.mutiny.Multi;
import io.smallrye.reactive.converters.ReactiveTypeConverter;
import io.smallrye.reactive.converters.Registry;
Expand Down
1 change: 1 addition & 0 deletions extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
<module>redis-client</module>

<!-- Data access and validation -->
<module>transaction-annotations</module>
<module>narayana-jta</module>
<module>narayana-stm</module>
<module>narayana-lra</module>
Expand Down
19 changes: 19 additions & 0 deletions extensions/transaction-annotations/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>quarkus-extensions-parent</artifactId>
<groupId>io.quarkus</groupId>
<version>999-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>quarkus-transaction-annotations-parent</artifactId>
<name>Quarkus - Transaction Annotations</name>
<packaging>pom</packaging>
<modules>
<module>runtime</module>
</modules>
</project>
21 changes: 21 additions & 0 deletions extensions/transaction-annotations/runtime/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>quarkus-transaction-annotations-parent</artifactId>
<groupId>io.quarkus</groupId>
<version>999-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>quarkus-transaction-annotations</artifactId>
<name>Quarkus - Transaction Annotations - Runtime</name>
<description>Transaction Annotations - Runtime</description>
<dependencies>
</dependencies>

<build>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.narayana.jta;
package io.quarkus.transaction.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand All @@ -10,8 +10,6 @@
/**
* If you annotate your exception with this annotation, the transactional interceptor will
* use the exception's instructions to force a rollback or not.
*
* FIXME: move to SPI so it can be used by TransactionalReactive
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
Expand Down

0 comments on commit 42c9dd7

Please sign in to comment.