2021-10-22 12:46:59 +02:00
|
|
|
<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">
|
2020-10-11 18:50:18 +02:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>tdlib-java</artifactId>
|
2021-07-28 11:40:47 +02:00
|
|
|
<version>${revision}</version>
|
2020-10-11 18:50:18 +02:00
|
|
|
<name>TDLib Java Wrapper</name>
|
|
|
|
<packaging>jar</packaging>
|
2021-10-22 13:20:57 +02:00
|
|
|
<parent>
|
|
|
|
<groupId>it.tdlight</groupId>
|
|
|
|
<version>${revision}</version>
|
|
|
|
<artifactId>tdlight-java-parent</artifactId>
|
2021-12-08 02:00:32 +01:00
|
|
|
<relativePath>../parent/pom.xml</relativePath>
|
2021-10-22 13:20:57 +02:00
|
|
|
</parent>
|
2020-10-11 18:50:18 +02:00
|
|
|
<properties>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
2021-09-27 20:22:57 +02:00
|
|
|
<revision>1.0.0.0-SNAPSHOT</revision>
|
2021-12-08 02:00:32 +01:00
|
|
|
<tdlib.api.artifact.id>tdlib-api-legacy</tdlib.api.artifact.id>
|
2020-10-11 18:50:18 +02:00
|
|
|
</properties>
|
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>mchv-release</id>
|
|
|
|
<name>MCHV Release Apache Maven Packages</name>
|
|
|
|
<url>https://mvn.mchv.eu/repository/mchv</url>
|
|
|
|
</repository>
|
|
|
|
<repository>
|
|
|
|
<id>mchv-snapshot</id>
|
|
|
|
<name>MCHV Snapshot Apache Maven Packages</name>
|
|
|
|
<url>https://mvn.mchv.eu/repository/mchv-snapshot</url>
|
|
|
|
</repository>
|
|
|
|
</repositories>
|
|
|
|
<distributionManagement>
|
|
|
|
<repository>
|
|
|
|
<id>mchv-release-distribution</id>
|
|
|
|
<name>MCHV Release Apache Maven Packages Distribution</name>
|
|
|
|
<url>https://mvn.mchv.eu/repository/mchv</url>
|
|
|
|
</repository>
|
|
|
|
<snapshotRepository>
|
|
|
|
<id>mchv-snapshot-distribution</id>
|
|
|
|
<name>MCHV Snapshot Apache Maven Packages Distribution</name>
|
|
|
|
<url>https://mvn.mchv.eu/repository/mchv-snapshot</url>
|
|
|
|
</snapshotRepository>
|
|
|
|
</distributionManagement>
|
|
|
|
<scm>
|
|
|
|
<connection>scm:git:https://git.ignuranza.net/tdlight-team/tdlight-java.git</connection>
|
|
|
|
<developerConnection>scm:git:https://git.ignuranza.net/tdlight-team/tdlight-java.git</developerConnection>
|
|
|
|
<tag>HEAD</tag>
|
|
|
|
</scm>
|
|
|
|
<dependencies>
|
2020-12-29 23:38:50 +01:00
|
|
|
<dependency>
|
|
|
|
<groupId>it.tdlight</groupId>
|
2021-12-08 02:00:32 +01:00
|
|
|
<artifactId>${tdlib.api.artifact.id}</artifactId>
|
2020-10-11 18:50:18 +02:00
|
|
|
</dependency>
|
2021-01-24 18:13:20 +01:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
2022-10-17 15:29:56 +02:00
|
|
|
<version>2.0.3</version>
|
2021-01-24 18:13:20 +01:00
|
|
|
</dependency>
|
2021-06-30 18:22:01 +02:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.reactivestreams</groupId>
|
|
|
|
<artifactId>reactive-streams</artifactId>
|
|
|
|
<version>1.0.3</version>
|
|
|
|
</dependency>
|
2021-10-22 12:46:59 +02:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.zxing</groupId>
|
|
|
|
<artifactId>core</artifactId>
|
2023-01-03 02:10:36 +01:00
|
|
|
<optional>true</optional>
|
2021-10-22 12:46:59 +02:00
|
|
|
</dependency>
|
2021-12-08 02:00:32 +01:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
<artifactId>junit-jupiter-engine</artifactId>
|
2021-12-11 12:51:13 +01:00
|
|
|
<version>5.8.2</version>
|
2021-12-08 02:00:32 +01:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2023-01-02 14:55:56 +01:00
|
|
|
<dependency>
|
|
|
|
<groupId>it.unimi.dsi</groupId>
|
|
|
|
<artifactId>fastutil-core</artifactId>
|
2023-01-02 17:15:33 +01:00
|
|
|
<version>8.5.11</version>
|
2023-01-02 14:55:56 +01:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2020-10-11 18:50:18 +02:00
|
|
|
</dependencies>
|
2021-09-15 14:53:23 +02:00
|
|
|
<dependencyManagement>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
2021-12-08 02:00:32 +01:00
|
|
|
<groupId>it.tdlight</groupId>
|
|
|
|
<artifactId>tdlight-java-bom</artifactId>
|
|
|
|
<version>${revision}</version>
|
|
|
|
<type>pom</type>
|
|
|
|
<scope>import</scope>
|
2021-10-22 12:46:59 +02:00
|
|
|
</dependency>
|
2021-09-15 14:53:23 +02:00
|
|
|
</dependencies>
|
2021-10-22 12:46:59 +02:00
|
|
|
</dependencyManagement>
|
2020-10-30 11:17:26 +01:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>releaseDir</id>
|
|
|
|
<build>
|
|
|
|
<directory>target-release</directory>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>snapshotDir</id>
|
|
|
|
<build>
|
|
|
|
<directory>target-snapshot</directory>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2021-12-08 02:00:32 +01:00
|
|
|
<profile>
|
|
|
|
<id>jdk-with-sealed-interfaces</id>
|
|
|
|
<activation>
|
|
|
|
<jdk>[17,)</jdk>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<tdlib.api.artifact.id>tdlib-api-sealed</tdlib.api.artifact.id>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>jdk-with-legacy-interfaces</id>
|
|
|
|
<activation>
|
|
|
|
<jdk>(,17)</jdk>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<tdlib.api.artifact.id>tdlib-api-legacy</tdlib.api.artifact.id>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
2020-10-30 11:17:26 +01:00
|
|
|
</profiles>
|
2020-10-11 18:50:18 +02:00
|
|
|
<build>
|
2022-05-18 12:58:23 +02:00
|
|
|
<sourceDirectory>../src/main/java</sourceDirectory>
|
|
|
|
<testSourceDirectory>../src/test/java</testSourceDirectory>
|
2020-10-11 18:50:18 +02:00
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
|
|
<version>3.1.0</version>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<version>3.0.2</version>
|
|
|
|
</plugin>
|
2020-10-30 10:59:36 +01:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
<version>3.2.1</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-sources</id>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
2023-01-22 01:49:28 +01:00
|
|
|
<version>3.4.1</version>
|
2020-10-30 10:59:36 +01:00
|
|
|
<configuration>
|
2021-09-27 19:36:07 +02:00
|
|
|
<source>17</source>
|
2020-10-30 10:59:36 +01:00
|
|
|
<additionalOptions>-html5</additionalOptions>
|
2021-10-22 12:46:59 +02:00
|
|
|
<level>public</level>
|
|
|
|
<verbose>false</verbose>
|
|
|
|
<quiet>true</quiet>
|
|
|
|
<additionalOptions>-Xdoclint:none</additionalOptions>
|
|
|
|
<additionalJOption>-Xdoclint:none</additionalJOption>
|
2020-10-30 10:59:36 +01:00
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-javadocs</id>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2021-06-30 18:22:01 +02:00
|
|
|
<!-- ensure the project is compiling with JDK 9+ -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
<version>3.0.0-M3</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>enforce-jdk9</id>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<requireJavaVersion>
|
|
|
|
<version>[1.9,)</version>
|
|
|
|
<message>JDK 9+ is required for compilation</message>
|
|
|
|
</requireJavaVersion>
|
|
|
|
</rules>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<!-- compile sources -->
|
2020-10-11 18:50:18 +02:00
|
|
|
<plugin>
|
2021-10-22 12:46:59 +02:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2020-10-11 18:50:18 +02:00
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<version>3.8.1</version>
|
|
|
|
<configuration>
|
|
|
|
<encoding>UTF-8</encoding>
|
|
|
|
<excludes>
|
2021-06-30 18:22:01 +02:00
|
|
|
<exclude>it/tdlight/tdlight/ClientManager.java</exclude>
|
2020-10-11 18:50:18 +02:00
|
|
|
</excludes>
|
|
|
|
</configuration>
|
2021-06-30 18:22:01 +02:00
|
|
|
<executions>
|
|
|
|
<!-- disable default phase due to fixed id and position in lifecycle -->
|
|
|
|
<execution>
|
|
|
|
<id>default-compile</id>
|
|
|
|
<phase>none</phase>
|
|
|
|
<!-- specify source/target for IDE integration -->
|
|
|
|
<configuration>
|
|
|
|
<release>9</release>
|
2021-10-22 12:46:59 +02:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<!-- compile sources with Java 11 -->
|
|
|
|
<execution>
|
|
|
|
<id>java-11-module-compile</id>
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<release>11</release>
|
|
|
|
<compileSourceRoots>
|
2022-05-18 12:58:23 +02:00
|
|
|
<compileSourceRoot>../src/main/java11</compileSourceRoot>
|
2021-10-22 12:46:59 +02:00
|
|
|
</compileSourceRoots>
|
|
|
|
<multiReleaseOutput>true</multiReleaseOutput>
|
2021-06-30 18:22:01 +02:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<!-- compile sources with Java 9 to generate and validate module-info.java -->
|
|
|
|
<execution>
|
|
|
|
<id>java-9-module-compile</id>
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<release>9</release>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<!-- recompile sources as Java 8 to overwrite Java 9 class files, except module-info.java -->
|
|
|
|
<execution>
|
|
|
|
<id>java-8-compile</id>
|
|
|
|
<goals>
|
|
|
|
<goal>compile</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<!-- specify JDK 9+ release flag to ensure no classes/methods later than Java 8 are used accidentally -->
|
2021-10-22 12:46:59 +02:00
|
|
|
<release>8</release>
|
2021-06-30 18:22:01 +02:00
|
|
|
<!-- exclude module-info.java from the compilation, as it is unsupported by Java 8 -->
|
|
|
|
<excludes>
|
2021-09-15 14:53:23 +02:00
|
|
|
<exclude>it/tdlight/tdlight/ClientManager.java</exclude>
|
2021-06-30 18:22:01 +02:00
|
|
|
<exclude>module-info.java</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2020-10-11 18:50:18 +02:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
2022-05-11 09:37:24 +02:00
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>flatten-maven-plugin</artifactId>
|
|
|
|
<version>1.1.0</version>
|
|
|
|
<configuration>
|
|
|
|
<updatePomFile>true</updatePomFile>
|
|
|
|
<flattenMode>oss</flattenMode>
|
|
|
|
</configuration>
|
2020-10-11 18:50:18 +02:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2022-05-11 09:37:24 +02:00
|
|
|
<id>flatten</id>
|
|
|
|
<phase>process-resources</phase>
|
2020-10-11 18:50:18 +02:00
|
|
|
<goals>
|
2021-12-08 17:46:29 +01:00
|
|
|
<goal>flatten</goal>
|
2020-10-11 18:50:18 +02:00
|
|
|
</goals>
|
|
|
|
</execution>
|
2022-05-11 09:37:24 +02:00
|
|
|
<execution>
|
|
|
|
<id>flatten.clean</id>
|
|
|
|
<phase>clean</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>clean</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
2020-10-11 18:50:18 +02:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
2021-09-27 19:36:07 +02:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<version>3.2.0</version>
|
2021-10-22 12:46:59 +02:00
|
|
|
<configuration>
|
|
|
|
<archive>
|
|
|
|
<manifestEntries>
|
|
|
|
<Multi-Release>true</Multi-Release>
|
|
|
|
</manifestEntries>
|
|
|
|
</archive>
|
|
|
|
</configuration>
|
2021-09-27 19:36:07 +02:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-install-plugin</artifactId>
|
|
|
|
<version>3.0.0-M1</version>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
|
|
<version>2.8.2</version>
|
|
|
|
</plugin>
|
2021-12-08 02:00:32 +01:00
|
|
|
<plugin>
|
2022-01-11 16:06:31 +01:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
2021-12-08 02:00:32 +01:00
|
|
|
<version>3.0.0-M5</version>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
<artifactId>junit-jupiter-engine</artifactId>
|
2021-12-11 12:51:13 +01:00
|
|
|
<version>5.8.2</version>
|
2021-12-08 02:00:32 +01:00
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</plugin>
|
2020-10-11 18:50:18 +02:00
|
|
|
</plugins>
|
|
|
|
</build>
|
2020-04-25 13:08:10 +02:00
|
|
|
</project>
|