2020-04-19 16:32:49 +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>
|
|
|
|
<groupId>it.tdlight</groupId>
|
|
|
|
<artifactId>tdlib-java</artifactId>
|
2021-01-24 13:19:13 +01:00
|
|
|
<version>4.171.${revision}</version>
|
2020-10-11 18:50:18 +02:00
|
|
|
<name>TDLib Java Wrapper</name>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
<properties>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
<revision>0-SNAPSHOT</revision>
|
2021-07-23 20:17:36 +02:00
|
|
|
<natives-version>3.3.57</natives-version>
|
|
|
|
<api-version>3.3.55</api-version>
|
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>
|
|
|
|
<artifactId>tdlight-api</artifactId>
|
2021-06-23 00:50:41 +02:00
|
|
|
<version>${api-version}</version>
|
2020-12-29 23:38:50 +01:00
|
|
|
</dependency>
|
2020-10-11 18:50:18 +02:00
|
|
|
<dependency>
|
|
|
|
<groupId>it.tdlight</groupId>
|
|
|
|
<artifactId>tdlib-natives-linux-amd64</artifactId>
|
2020-10-26 15:51:48 +01:00
|
|
|
<version>${natives-version}</version>
|
2020-12-29 23:38:50 +01:00
|
|
|
<optional>true</optional>
|
2020-10-11 18:50:18 +02:00
|
|
|
</dependency>
|
2021-06-30 18:22:01 +02:00
|
|
|
<dependency>
|
|
|
|
<groupId>it.tdlight</groupId>
|
|
|
|
<artifactId>tdlib-natives-linux-x86</artifactId>
|
|
|
|
<version>${natives-version}</version>
|
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
2020-10-11 18:50:18 +02:00
|
|
|
<dependency>
|
|
|
|
<groupId>it.tdlight</groupId>
|
|
|
|
<artifactId>tdlib-natives-linux-aarch64</artifactId>
|
2020-10-26 15:51:48 +01:00
|
|
|
<version>${natives-version}</version>
|
2020-12-29 23:38:50 +01:00
|
|
|
<optional>true</optional>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>it.tdlight</groupId>
|
|
|
|
<artifactId>tdlib-natives-linux-armv7</artifactId>
|
|
|
|
<version>${natives-version}</version>
|
|
|
|
<optional>true</optional>
|
2020-10-11 18:50:18 +02:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>it.tdlight</groupId>
|
|
|
|
<artifactId>tdlib-natives-windows-amd64</artifactId>
|
2020-10-26 15:51:48 +01:00
|
|
|
<version>${natives-version}</version>
|
2020-12-29 23:38:50 +01:00
|
|
|
<optional>true</optional>
|
2020-10-11 18:50:18 +02:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>it.tdlight</groupId>
|
|
|
|
<artifactId>tdlib-natives-osx-amd64</artifactId>
|
2020-10-26 15:51:48 +01:00
|
|
|
<version>${natives-version}</version>
|
2020-12-29 23:38:50 +01:00
|
|
|
<optional>true</optional>
|
2020-10-11 18:50:18 +02:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>it.cavallium</groupId>
|
|
|
|
<artifactId>concurrent-locks</artifactId>
|
2020-10-16 19:51:49 +02:00
|
|
|
<version>1.0.8</version>
|
2020-10-11 18:50:18 +02:00
|
|
|
</dependency>
|
2020-10-13 01:31:32 +02:00
|
|
|
<dependency>
|
|
|
|
<groupId>it.unimi.dsi</groupId>
|
2021-07-24 21:45:52 +02:00
|
|
|
<artifactId>fastutil-core</artifactId>
|
2021-05-09 22:59:03 +02:00
|
|
|
<version>8.5.4</version>
|
2020-10-13 01:31:32 +02:00
|
|
|
</dependency>
|
2021-01-24 18:13:20 +01:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
<version>1.7.30</version>
|
|
|
|
</dependency>
|
2021-06-30 18:22:01 +02:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.reactivestreams</groupId>
|
|
|
|
<artifactId>reactive-streams</artifactId>
|
|
|
|
<version>1.0.3</version>
|
|
|
|
</dependency>
|
2020-10-11 18:50:18 +02:00
|
|
|
</dependencies>
|
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>
|
|
|
|
</profiles>
|
2020-10-11 18:50:18 +02:00
|
|
|
<build>
|
|
|
|
<sourceDirectory>../src/main/java</sourceDirectory>
|
|
|
|
<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>
|
|
|
|
<version>3.2.0</version>
|
|
|
|
<configuration>
|
|
|
|
<source>8</source>
|
|
|
|
<additionalOptions>-html5</additionalOptions>
|
|
|
|
</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>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<version>3.8.1</version>
|
|
|
|
<configuration>
|
|
|
|
<encoding>UTF-8</encoding>
|
2021-05-05 13:10:28 +02:00
|
|
|
<release>8</release>
|
2021-01-25 03:36:43 +01:00
|
|
|
<useIncrementalCompilation>false</useIncrementalCompilation>
|
2020-10-11 18:50:18 +02:00
|
|
|
<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>
|
|
|
|
</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 -->
|
|
|
|
<release>8</release>
|
|
|
|
<!-- exclude module-info.java from the compilation, as it is unsupported by Java 8 -->
|
|
|
|
<excludes>
|
|
|
|
<exclude>module-info.java</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2020-10-11 18:50:18 +02:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
2021-01-02 16:45:05 +01:00
|
|
|
<version>3.2.0</version>
|
2020-10-11 18:50:18 +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>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>flatten-maven-plugin</artifactId>
|
|
|
|
<version>1.1.0</version>
|
|
|
|
<configuration>
|
|
|
|
<updatePomFile>true</updatePomFile>
|
|
|
|
<flattenMode>resolveCiFriendliesOnly</flattenMode>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>flatten</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>flatten</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>flatten.clean</id>
|
|
|
|
<phase>clean</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>clean</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</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>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
2020-04-25 13:08:10 +02:00
|
|
|
</project>
|