Use parent project to get properties

This commit is contained in:
Andrea Cavalli 2021-10-22 13:20:57 +02:00
parent e0f70138c1
commit 9d8dd57d7f
3 changed files with 28 additions and 44 deletions

16
pom.xml Normal file
View File

@ -0,0 +1,16 @@
<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>
<groupId>it.tdlight</groupId>
<artifactId>tdlight-java-parent</artifactId>
<version>${revision}</version>
<name>TDLib Java Wrapper</name>
<packaging>pom</packaging>
<properties>
<revision>1.0.0.0-SNAPSHOT</revision>
<apiRevisionNumber>168</apiRevisionNumber>
<nativesRevisionSuffix/>
<apiRevisionNumber>166</apiRevisionNumber>
<apiRevisionSuffix/>
</properties>
</project>

View File

@ -1,18 +1,19 @@
<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>
<groupId>it.tdlight</groupId>
<artifactId>tdlib-java</artifactId>
<version>${revision}</version>
<name>TDLib Java Wrapper</name>
<packaging>jar</packaging>
<parent>
<groupId>it.tdlight</groupId>
<version>${revision}</version>
<artifactId>tdlight-java-parent</artifactId>
<relativePath>../pom.xml</relativePath>
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<revision>1.0.0.0-SNAPSHOT</revision>
<nativesRevisionNumber>0</nativesRevisionNumber>
<nativesRevisionSuffix>-SNAPSHOT</nativesRevisionSuffix>
<apiRevisionNumber>0</apiRevisionNumber>
<apiRevisionSuffix>-SNAPSHOT</apiRevisionSuffix>
</properties>
<repositories>
<repository>
@ -283,40 +284,6 @@
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>templating-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<id>filtering-java-templates</id>
<goals>
<goal>filter-sources</goal>
</goals>
<configuration>
<sourceDirectory>../src/main/java-templates-tdlib</sourceDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>${basedir}/../nativesBuildNumber.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,18 +1,19 @@
<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>
<groupId>it.tdlight</groupId>
<artifactId>tdlight-java</artifactId>
<version>${revision}</version>
<name>TDLight Java Wrapper</name>
<packaging>jar</packaging>
<parent>
<groupId>it.tdlight</groupId>
<version>${revision}</version>
<artifactId>tdlight-java-parent</artifactId>
<relativePath>../pom.xml</relativePath>
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<revision>1.0.0.0-SNAPSHOT</revision>
<nativesRevisionNumber>0</nativesRevisionNumber>
<nativesRevisionSuffix>-SNAPSHOT</nativesRevisionSuffix>
<apiRevisionNumber>0</apiRevisionNumber>
<apiRevisionSuffix>-SNAPSHOT</apiRevisionSuffix>
</properties>
<repositories>
<repository>