Skip to content

Commit

Permalink
Add jakarta artifacts for declarative persistence and entity view int…
Browse files Browse the repository at this point in the history
…egration
  • Loading branch information
beikov committed Apr 10, 2024
1 parent 35e2f02 commit 94ab575
Show file tree
Hide file tree
Showing 5 changed files with 836 additions and 0 deletions.
277 changes: 277 additions & 0 deletions declarative/entity-view-jakarta/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,277 @@
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>blaze-expression-declarative</artifactId>
<groupId>com.blazebit</groupId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>blaze-expression-declarative-entity-view-jakarta</artifactId>

<properties>
<module.name>com.blazebit.expression.declarative.view</module.name>
</properties>

<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>blaze-expression-declarative-entity-view</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>jakarta.persistence</groupId>
<artifactId>jakarta.persistence-api</artifactId>
<version>${version.jakarta-jpa-api}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.weld.se</groupId>
<artifactId>weld-se-core</artifactId>
<version>${version.weld-jakarta}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>blaze-expression-declarative-persistence-jakarta</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>blaze-persistence-entity-view-api</artifactId>
<version>${version.blaze-persistence}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>blaze-persistence-core-parser</artifactId>
<version>${version.blaze-persistence}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>blaze-persistence-entity-view-impl</artifactId>
<version>${version.blaze-persistence}</version>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>blaze-apt-utils</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>transform-jar</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<property name="plugin_classpath" refid="maven.plugin.classpath" />
<java classname="org.eclipse.transformer.cli.JakartaTransformerCLI" fork="true">
<!--suppress UnresolvedMavenProperty -->
<arg value="${com.blazebit:blaze-expression-declarative-entity-view:jar}" />
<arg value="${project.build.directory}/${project.build.finalName}.jar" />
<arg value="-q" />
<arg value="-o" />
<arg value="-tr" />
<arg value="${project.basedir}/../../rules/jakarta-renames.properties" />
<classpath>
<!--suppress UnresolvedMavenProperty -->
<pathelement path="${plugin_classpath}" />
</classpath>
</java>
</target>
</configuration>
</execution>
<execution>
<id>transform-sources-jar</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<property name="plugin_classpath" refid="maven.plugin.classpath" />
<!--suppress UnresolvedMavenProperty -->
<ac:propertyregex xmlns:ac="antlib:net.sf.antcontrib" property="source" input="${com.blazebit:blaze-expression-declarative-entity-view:jar}" regexp="\.jar$" replace="-sources.jar" global="true" />
<java classname="org.eclipse.transformer.cli.JakartaTransformerCLI" fork="true">
<!--suppress UnresolvedMavenProperty -->
<arg value="${source}" />
<arg value="${project.build.directory}/${project.build.finalName}-sources.jar" />
<arg value="-q" />
<arg value="-o" />
<arg value="-tr" />
<arg value="${project.basedir}/../../rules/jakarta-renames.properties" />
<classpath>
<!--suppress UnresolvedMavenProperty -->
<pathelement path="${plugin_classpath}" />
</classpath>
</java>
</target>
</configuration>
</execution>
<execution>
<id>transform-javadoc</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<property name="plugin_classpath" refid="maven.plugin.classpath" />
<!--suppress UnresolvedMavenProperty -->
<ac:propertyregex xmlns:ac="antlib:net.sf.antcontrib" property="source" input="${com.blazebit:blaze-expression-declarative-entity-view:jar}" regexp="\.jar$" replace="-javadoc.jar" global="true" />
<java classname="org.eclipse.transformer.cli.JakartaTransformerCLI" fork="true">
<!--suppress UnresolvedMavenProperty -->
<arg value="${source}" />
<arg value="${project.build.directory}/${project.build.finalName}-javadoc.jar" />
<arg value="-q" />
<arg value="-o" />
<arg value="-tr" />
<arg value="${project.basedir}/../../rules/jakarta-renames.properties" />
<classpath>
<!--suppress UnresolvedMavenProperty -->
<pathelement path="${plugin_classpath}" />
</classpath>
</java>
</target>
</configuration>
</execution>
<!-- IntelliJ needs the source to be available to not complain about implementations, so we provide that... -->
<execution>
<id>unpack-sources</id>
<phase>package</phase>
<configuration>
<target>
<unzip src="${project.build.directory}/${project.build.finalName}-sources.jar" dest="${project.build.directory}/java/" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<!-- Unpack JAR because Quarkus relies on the directory contents for class loading -->
<execution>
<id>unpack-classes</id>
<phase>package</phase>
<configuration>
<target>
<unzip src="${project.build.directory}/${project.build.finalName}.jar" dest="${project.build.directory}/classes/" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.eclipse.transformer</groupId>
<artifactId>org.eclipse.transformer.cli</artifactId>
<version>0.5.0</version>
</dependency>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>1.0b3</version>
<exclusions>
<exclusion>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>biz.aQute.bnd</groupId>
<artifactId>biz.aQute.bnd.transform</artifactId>
<version>${version.bnd}</version>
<scope>compile</scope>
</dependency>
</dependencies>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${project.build.directory}/${project.build.finalName}-sources.jar</file>
<classifier>sources</classifier>
<type>jar</type>
</artifact>
</artifacts>
</configuration>
</execution>
<execution>
<id>intellij-fake-attach-source</id>
<phase>package</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/java/</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>blazebit-release</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${project.build.directory}/${project.build.finalName}-sources.jar</file>
<classifier>sources</classifier>
<type>jar</type>
</artifact>
<artifact>
<file>${project.build.directory}/${project.build.finalName}-javadoc.jar</file>
<classifier>javadoc</classifier>
<type>jar</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
Loading

0 comments on commit 94ab575

Please sign in to comment.