META-INF.maven.org.finos.legend.engine.legend-engine-xt-protobuf-pure.pom.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2020 Goldman Sachs Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <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/maven-v4_0_0.xsd"> <parent> <groupId>org.finos.legend.engine</groupId> <artifactId>legend-engine-xts-protobuf</artifactId> <version>4.54.1</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>legend-engine-xt-protobuf-pure</artifactId> <packaging>jar</packaging> <name>Legend Engine - XT - Protobuf - PAR/JAVA</name> <build> <plugins> <plugin> <groupId>org.finos.legend.pure</groupId> <artifactId>legend-pure-maven-generation-par</artifactId> <configuration> <sourceDirectory>src/main/resources</sourceDirectory> <purePlatformVersion>${legend.pure.version}</purePlatformVersion> <repositories> <repository>core_external_format_protobuf</repository> </repositories> <extraRepositories> <extraRepository>${project.basedir}/src/main/resources/core_external_format_protobuf.definition.json</extraRepository> </extraRepositories> </configuration> <executions> <execution> <phase>generate-sources</phase> <goals> <goal>build-pure-jar</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>org.finos.legend.pure</groupId> <artifactId>legend-pure-m2-dsl-mapping-grammar</artifactId> <version>${legend.pure.version}</version> </dependency> <dependency> <groupId>org.finos.legend.pure</groupId> <artifactId>legend-pure-m2-dsl-diagram-grammar</artifactId> <version>${legend.pure.version}</version> </dependency> <dependency> <groupId>org.finos.legend.pure</groupId> <artifactId>legend-pure-m2-dsl-graph-grammar</artifactId> <version>${legend.pure.version}</version> </dependency> <dependency> <groupId>org.finos.legend.engine</groupId> <artifactId>legend-engine-pure-code-compiled-core</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.finos.legend.engine</groupId> <artifactId>legend-engine-language-pure-dsl-generation-pure</artifactId> <version>${project.version}</version> </dependency> </dependencies> </plugin> <plugin> <groupId>org.finos.legend.pure</groupId> <artifactId>legend-pure-maven-generation-java</artifactId> <executions> <execution> <phase>compile</phase> <goals> <goal>build-pure-compiled-jar</goal> </goals> <configuration> <generateSources>true</generateSources> <preventJavaCompilation>true</preventJavaCompilation> <generationType>modular</generationType> <useSingleDir>true</useSingleDir> <repositories> <repository>core_external_format_protobuf</repository> </repositories> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>org.finos.legend.pure</groupId> <artifactId>legend-pure-m2-dsl-mapping-grammar</artifactId> <version>${legend.pure.version}</version> </dependency> <dependency> <groupId>org.finos.legend.pure</groupId> <artifactId>legend-pure-m2-dsl-diagram-grammar</artifactId> <version>${legend.pure.version}</version> </dependency> <dependency> <groupId>org.finos.legend.pure</groupId> <artifactId>legend-pure-m2-dsl-graph-grammar</artifactId> <version>${legend.pure.version}</version> </dependency> <dependency> <groupId>org.finos.legend.engine</groupId> <artifactId>legend-engine-pure-code-compiled-core</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.finos.legend.engine</groupId> <artifactId>legend-engine-language-pure-dsl-generation-pure</artifactId> <version>${project.version}</version> </dependency> </dependencies> </plugin> </plugins> </build> <dependencies> <!-- PURE --> <dependency> <groupId>org.finos.legend.pure</groupId> <artifactId>legend-pure-m4</artifactId> </dependency> <dependency> <groupId>org.finos.legend.pure</groupId> <artifactId>legend-pure-m3-core</artifactId> </dependency> <dependency> <groupId>org.finos.legend.pure</groupId> <artifactId>legend-pure-m2-dsl-mapping-grammar</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.finos.legend.pure</groupId> <artifactId>legend-pure-runtime-java-engine-compiled</artifactId> </dependency> <dependency> <groupId>org.finos.legend.engine</groupId> <artifactId>legend-engine-pure-code-compiled-core</artifactId> </dependency> <dependency> <groupId>org.finos.legend.engine</groupId> <artifactId>legend-engine-language-pure-dsl-generation-pure</artifactId> </dependency> <dependency> <groupId>org.finos.legend.engine</groupId> <artifactId>legend-engine-pure-platform-java</artifactId> </dependency> <dependency> <groupId>org.finos.legend.engine</groupId> <artifactId>legend-engine-pure-runtime-java-extension-compiled-functions-unclassified</artifactId> </dependency> <dependency> <groupId>org.finos.legend.engine</groupId> <artifactId>legend-engine-pure-runtime-java-extension-compiled-functions-json</artifactId> </dependency> <dependency> <groupId>org.finos.legend.engine</groupId> <artifactId>legend-engine-pure-runtime-java-extension-shared-functions-json</artifactId> </dependency> <dependency> <groupId>org.eclipse.collections</groupId> <artifactId>eclipse-collections</artifactId> </dependency> <dependency> <groupId>org.eclipse.collections</groupId> <artifactId>eclipse-collections-api</artifactId> </dependency> <!-- PURE --> <!-- TEST --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> </dependency> <!-- TEST --> </dependencies> <profiles> <profile> <id>generate-protocol-version</id> <properties> <folderPath>core_external_format_protobuf/protocol</folderPath> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>create-protocol-file</id> <phase>generate-sources</phase> <goals> <goal>run</goal> </goals> <configuration> <target name="protocol"> <copy file="${basedir}/src/main/resources/${folderPath}/protocol_${protocol.SourceVersion}.pure" tofile="${basedir}/src/main/resources/${folderPath}/protocol_${protocol.TargetVersion}.pure" /> <replace file="${basedir}/src/main/resources/${folderPath}/protocol_${protocol.TargetVersion}.pure" token="${protocol.SourceVersion}" value="${protocol.TargetVersion}" /> </target> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>