Skip to content
Permalink
Browse files
Shade plugin does not handler to replace back some patterns
  • Loading branch information
jeanouii committed Feb 21, 2022
1 parent 1953d0a commit c774d997d0dbdcf2b35949c848afa66331a858b7
Showing 2 changed files with 58 additions and 7 deletions.
@@ -22,7 +22,18 @@
import java.util.List;
import java.util.Map;

import javax.transaction.*;
import javax.transaction.HeuristicMixedException;
import javax.transaction.HeuristicRollbackException;
import javax.transaction.InvalidTransactionException;
import javax.transaction.NotSupportedException;
import javax.transaction.RollbackException;
import javax.transaction.Status;
import javax.transaction.Synchronization;
import javax.transaction.SystemException;
import javax.transaction.Transaction;
import javax.transaction.TransactionManager;
import javax.transaction.TransactionSynchronizationRegistry;
import javax.transaction.UserTransaction;
import javax.transaction.xa.XAException;
import javax.transaction.xa.Xid;

52 pom.xml
@@ -155,17 +155,57 @@
</artifactSet>
<relocations>
<relocation>
<pattern>javax.transaction</pattern>
<pattern>javax.transaction.HeuristicMixedException</pattern>
<shadedPattern>jakarta.transaction</shadedPattern>
</relocation>
<relocation>
<pattern>javax.validation</pattern>
<shadedPattern>jakarta.validation</shadedPattern>
<pattern>javax.transaction.HeuristicRollbackException</pattern>
<shadedPattern>jakarta.transaction</shadedPattern>
</relocation>
<relocation>
<pattern>javax.transaction.InvalidTransactionException</pattern>
<shadedPattern>jakarta.transaction</shadedPattern>
</relocation>
<relocation>
<pattern>javax.transaction.NotSupportedException</pattern>
<shadedPattern>jakarta.transaction</shadedPattern>
</relocation>
<relocation>
<pattern>javax.transaction.RollbackException</pattern>
<shadedPattern>jakarta.transaction</shadedPattern>
</relocation>
<relocation>
<pattern>javax.transaction.Status</pattern>
<shadedPattern>jakarta.transaction</shadedPattern>
</relocation>
<relocation>
<pattern>javax.transaction.Synchronization</pattern>
<shadedPattern>jakarta.transaction</shadedPattern>
</relocation>
<!-- These must remain in javax namespace -->
<relocation>
<pattern>jakarta.transaction.xa</pattern>
<shadedPattern>javax.transaction.xa</shadedPattern>
<pattern>javax.transaction.SystemException</pattern>
<shadedPattern>jakarta.transaction</shadedPattern>
</relocation>
<relocation>
<pattern>javax.transaction.Transaction</pattern>
<shadedPattern>jakarta.transaction</shadedPattern>
</relocation>
<relocation>
<pattern>javax.transaction.TransactionManager</pattern>
<shadedPattern>jakarta.transaction</shadedPattern>
</relocation>
<relocation>
<pattern>javax.transaction.TransactionSynchronizationRegistry</pattern>
<shadedPattern>jakarta.transaction</shadedPattern>
</relocation>
<relocation>
<pattern>javax.transaction.UserTransaction</pattern>
<shadedPattern>jakarta.transaction</shadedPattern>
</relocation>

<relocation>
<pattern>javax.validation</pattern>
<shadedPattern>jakarta.validation</shadedPattern>
</relocation>
</relocations>
</configuration>

0 comments on commit c774d99

Please sign in to comment.