Skip to content
Snippets Groups Projects
pom.xml 5.78 KiB
Newer Older
  • Learn to ignore specific revisions
  • OZGCloud's avatar
    OZGCloud committed
    <?xml version="1.0" encoding="UTF-8"?>
    
        Copyright (C) 2022 Das Land Schleswig-Holstein vertreten durch den
        Ministerpräsidenten des Landes Schleswig-Holstein
        Staatskanzlei
        Abteilung Digitalisierung und zentrales IT-Management der Landesregierung
    
    
        Lizenziert unter der EUPL, Version 1.2 oder - sobald
        diese von der Europäischen Kommission genehmigt wurden -
        Folgeversionen der EUPL ("Lizenz");
        Sie dürfen dieses Werk ausschließlich gemäß
        dieser Lizenz nutzen.
        Eine Kopie der Lizenz finden Sie hier:
    
        https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
    
        Sofern nicht durch anwendbare Rechtsvorschriften
        gefordert oder in schriftlicher Form vereinbart, wird
        die unter der Lizenz verbreitete Software "so wie sie
        ist", OHNE JEGLICHE GEWÄHRLEISTUNG ODER BEDINGUNGEN -
        ausdrücklich oder stillschweigend - verbreitet.
        Die sprachspezifischen Genehmigungen und Beschränkungen
        unter der Lizenz sind dem Lizenztext zu entnehmen.
    
    -->
    
    OZGCloud's avatar
    OZGCloud committed
    <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">
    
    	<modelVersion>4.0.0</modelVersion>
    
    
    		<groupId>de.ozgcloud.common</groupId>
    		<artifactId>ozgcloud-common-dependencies</artifactId>
    
    OZGCloud's avatar
    OZGCloud committed
    		<version>4.3.1</version>
    
    	<groupId>de.ozgcloud.vorgang</groupId>
    	<artifactId>vorgang-manager-interface</artifactId>
    
    	<version>2.12.0</version>
    
    OZGCloud's avatar
    OZGCloud committed
    
    
    	<name>OZG-Cloud Vorgang Manager gRPC Interface</name>
    
    OZGCloud's avatar
    OZGCloud committed
    	<description>Interface (gRPC) for Vorgang Manager Server</description>
    
    OZGCloud's avatar
    OZGCloud committed
    		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    
    
    OZGCloud's avatar
    OZGCloud committed
    		<java.version>21</java.version>
    
    		<maven.compiler.source>${java.version}</maven.compiler.source>
    		<maven.compiler.target>${java.version}</maven.compiler.target>
    
    		<find-and-replace-maven-plugin.version>1.1.0</find-and-replace-maven-plugin.version>
    
    		<ozgcloud.license.version>1.6.0</ozgcloud.license.version>
    
    	<dependencyManagement>
    		<dependencies>
    			<dependency>
    
    				<groupId>de.ozgcloud.common</groupId>
    				<artifactId>ozgcloud-common-dependencies</artifactId>
    				<version>${ozgcloud-common.version}</version>
    
    				<type>pom</type>
    				<scope>import</scope>
    			</dependency>
    		</dependencies>
    	</dependencyManagement>
    
    
    	<dependencies>
    		<!-- GRPC -->
    		<dependency>
    			<groupId>io.grpc</groupId>
    			<artifactId>grpc-stub</artifactId>
    		</dependency>
    		<dependency>
    			<groupId>io.grpc</groupId>
    			<artifactId>grpc-protobuf</artifactId>
    		</dependency>
    
    		<dependency>
    			<groupId>jakarta.annotation</groupId>
    			<artifactId>jakarta.annotation-api</artifactId>
    		</dependency>
    
    	</dependencies>
    
    	<build>
    
    		<sourceDirectory>src/main/protobuf</sourceDirectory>
    
    		<extensions>
    			<extension>
    				<groupId>kr.motd.maven</groupId>
    				<artifactId>os-maven-plugin</artifactId>
    			</extension>
    		</extensions>
    
    		<plugins>
    			<plugin>
    				<groupId>com.github.os72</groupId>
    				<artifactId>protoc-jar-maven-plugin</artifactId>
    
    				<version>${protoc-jar-plugin.version}</version>
    
    				<executions>
    					<execution>
    						<phase>generate-sources</phase>
    						<goals>
    							<goal>run</goal>
    						</goals>
    						<configuration>
    							<outputTargets>
    								<outputTarget>
    									<type>java</type>
    
    								</outputTarget>
    								<outputTarget>
    									<type>grpc-java</type>
    
    									<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.58.0</pluginArtifact>
    
    								</outputTarget>
    							</outputTargets>
    						</configuration>
    					</execution>
    				</executions>
    			</plugin>
    
    			<plugin>
    				<groupId>io.github.floverfelt</groupId>
    				<artifactId>find-and-replace-maven-plugin</artifactId>
    				<version>${find-and-replace-maven-plugin.version}</version>
    				<executions>
    					<execution>
    						<id>exec</id>
    						<phase>process-sources</phase>
    						<goals>
    							<goal>find-and-replace</goal>
    						</goals>
    						<configuration>
    							<replacementType>file-contents</replacementType>
    							<baseDir>target/generated-sources/</baseDir>
    							<findRegex>javax</findRegex>
    							<replaceValue>jakarta</replaceValue>
    							<recursive>true</recursive>
    							<fileMask>.java</fileMask>
    						</configuration>
    					</execution>
    				</executions>
    			</plugin>
    
    OZGCloud's avatar
    OZGCloud committed
    			<!-- TODO move to common -->
    
    				<groupId>com.mycila</groupId>
    
    				<artifactId>license-maven-plugin</artifactId>
    				<configuration>
    
    					<mapping>
    						<proto>SLASHSTAR_STYLE</proto>
    
    						<config>SCRIPT_STYLE</config>
    
    					</mapping>
    					<licenseSets>
    						<licenseSet>
    							<header>license/eupl_v1_2_de/header.txt</header>
    							<excludes>
    								<exclude>**/*.yaml</exclude>
    								<exclude>**/*.yml</exclude>
    								<exclude>README.md</exclude>
    							</excludes>
    						</licenseSet>
    					</licenseSets>
    
    				</configuration>
    				<dependencies>
    
    					<dependency>
    
    						<groupId>de.ozgcloud.common</groupId>
    						<artifactId>ozgcloud-common-license</artifactId>
    						<version>${ozgcloud.license.version}</version>
    
    					</dependency>
    				</dependencies>
    
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-source-plugin</artifactId>
    				<version>3.2.1</version>
    				<executions>
    					<execution>
    						<id>attach-sources</id>
    						<goals>
    							<goal>jar</goal>
    						</goals>
    					</execution>
    				</executions>
    			</plugin>
    
    OZGCloud's avatar
    OZGCloud committed
    	<distributionManagement>
    		<repository>
    			<id>ozg-nexus</id>
    			<name>ozg-releases</name>
    			<url>https://nexus.ozg-sh.de/repository/ozg-releases/</url>
    		</repository>
    		<snapshotRepository>
    
    			<id>ozg-snapshots-nexus</id>
    
    OZGCloud's avatar
    OZGCloud committed
    			<name>ozg-snapshots</name>
    			<url>https://nexus.ozg-sh.de/repository/ozg-snapshots/</url>
    		</snapshotRepository>
    	</distributionManagement>
    
    </project>