generated from ikmdev/repo-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
439d402
commit 4d21cf9
Showing
1 changed file
with
201 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,201 @@ | ||
<?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"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>dev.ikm.build</groupId> | ||
<artifactId>parent</artifactId> | ||
<version>1.55.0</version> | ||
<relativePath></relativePath> | ||
</parent> | ||
|
||
<groupId>dev.ikm.jpms</groupId> | ||
<artifactId>protobuf-java</artifactId> | ||
<version>${core.artifact.version}-${core.artifact.release}</version> | ||
<packaging>jar</packaging> | ||
<name>Tinkar Protobuf Java</name> | ||
<url>https://github.com/HL7/tinkar-proto</url> | ||
|
||
<properties> | ||
<!-- change release here--> | ||
<core.artifact.version>3.22.0</core.artifact.version> | ||
<core.artifact.release>r7</core.artifact.release> | ||
|
||
<maven.moditect.plugin>1.2.2.Final</maven.moditect.plugin> | ||
</properties> | ||
|
||
<licenses> | ||
<license> | ||
<name>The Apache Software License, Version 2.0</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
|
||
<dependencies> | ||
<!-- Has no transitive dependencies in this artifact --> | ||
</dependencies> | ||
|
||
<build> | ||
<resources> | ||
<resource> | ||
<directory>${basedir}/</directory> | ||
<includes> | ||
<include>LICENSE.txt</include> | ||
</includes> | ||
</resource> | ||
</resources> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.moditect</groupId> | ||
<artifactId>moditect-maven-plugin</artifactId> | ||
<version>${maven.moditect.plugin}</version> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
<plugins> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>sources</id> | ||
<goals> | ||
<goal>copy</goal> | ||
</goals> | ||
<phase>prepare-package</phase> | ||
<configuration> | ||
<artifactItems> | ||
<artifactItem> | ||
<groupId>com.google.protobuf</groupId> | ||
<artifactId>protobuf-java</artifactId> | ||
<version>${core.artifact.version}</version> | ||
<classifier>sources</classifier> | ||
</artifactItem> | ||
<artifactItem> | ||
<groupId>com.google.protobuf</groupId> | ||
<artifactId>protobuf-java</artifactId> | ||
<version>${core.artifact.version}</version> | ||
<classifier>javadoc</classifier> | ||
</artifactItem> | ||
</artifactItems> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</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}/dependency/protobuf-java-${core.artifact.version}-sources.jar</file> | ||
<type>jar</type> | ||
<classifier>sources</classifier> | ||
</artifact> | ||
<artifact> | ||
<file>${project.build.directory}/dependency/protobuf-java-${core.artifact.version}-javadoc.jar</file> | ||
<type>jar</type> | ||
<classifier>javadoc</classifier> | ||
</artifact> | ||
</artifacts> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.moditect</groupId> | ||
<artifactId>moditect-maven-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>add-module-infos</id> | ||
<phase>generate-resources</phase> | ||
<goals> | ||
<goal>add-module-info</goal> | ||
</goals> | ||
<configuration> | ||
<outputDirectory>${project.build.directory}/moditect</outputDirectory> | ||
<overwriteExistingFiles>true</overwriteExistingFiles> | ||
<modules> | ||
<module> | ||
<artifact> | ||
<groupId>com.google.protobuf</groupId> | ||
<artifactId>protobuf-java</artifactId> | ||
<version>${core.artifact.version}</version> | ||
</artifact> | ||
<moduleInfoSource> | ||
module dev.ikm.jpms.protobuf { | ||
requires java.logging; | ||
requires jdk.unsupported; | ||
exports com.google.protobuf; | ||
exports com.google.protobuf.compiler; | ||
} | ||
</moduleInfoSource> | ||
</module> | ||
</modules> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-antrun-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>rename-sources</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
<configuration> | ||
<target> | ||
<echo message="renaming sources file" /> | ||
<copy file="${project.build.directory}/dependency/protobuf-java-${core.artifact.version}-sources.jar" | ||
tofile="${project.build.directory}/protobuf-java-${core.artifact.version}-${core.artifact.release}-sources.jar" /> | ||
</target> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>rename-javadoc</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
<configuration> | ||
<target> | ||
<echo message="renaming javadoc file" /> | ||
<copy file="${project.build.directory}/dependency/protobuf-java-${core.artifact.version}-javadoc.jar" | ||
tofile="${project.build.directory}/protobuf-java-${core.artifact.version}-${core.artifact.release}-javadoc.jar" /> | ||
</target> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<phase>prepare-package</phase> | ||
<configuration> | ||
<target> | ||
<echo message="unzipping file"/> | ||
<unzip src="${project.build.directory}/moditect/protobuf-java-${core.artifact.version}.jar" | ||
dest="${project.build.directory}/classes/"/> | ||
</target> | ||
</configuration> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |