a2578d7ff1
Documentation: build and deploy / deploy (push) Waiting to run
langchain4j-github-bot.yml lint / langchain4j-github-bot.yml validation (push) Waiting to run
Java CI / compile_and_unit_test (17) (push) Waiting to run
Java CI / compile_and_unit_test (21) (push) Waiting to run
Java CI / integration_test (21) (push) Blocked by required conditions
Java CI / compliance (push) Waiting to run
Java CI / spotless (push) Waiting to run
snapshot_release / snapshot_release (push) Waiting to run
Split Package Detection / check-split-packages (push) Waiting to run
Java CI / compile_and_unit_test (25) (push) Waiting to run
986 lines
40 KiB
XML
986 lines
40 KiB
XML
<?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>
|
|
|
|
<groupId>dev.langchain4j</groupId>
|
|
<artifactId>langchain4j-parent</artifactId>
|
|
<version>1.18.0-beta28-SNAPSHOT</version>
|
|
<packaging>pom</packaging>
|
|
|
|
<name>LangChain4j :: Parent POM</name>
|
|
<description>${project.name}</description>
|
|
<url>https://github.com/langchain4j/langchain4j/tree/main</url>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>The Apache Software License, Version 2.0</name>
|
|
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
|
<distribution>repo</distribution>
|
|
</license>
|
|
</licenses>
|
|
|
|
<developers>
|
|
<developer>
|
|
<id>dliubarskyi</id>
|
|
<name>Dmytro Liubarskyi</name>
|
|
<email>info@langchain4j.dev</email>
|
|
<url>https://github.com/dliubarskyi</url>
|
|
</developer>
|
|
</developers>
|
|
|
|
<scm>
|
|
<connection>scm:git:git://github.com/langchain4j/langchain4j.git</connection>
|
|
<developerConnection>scm:git:git@github.com:langchain4j/langchain4j.git</developerConnection>
|
|
<url>https://github.com/langchain4j/langchain4j/tree/main</url>
|
|
</scm>
|
|
|
|
<properties>
|
|
<langchain4j.beta.version>1.18.0-beta28-SNAPSHOT</langchain4j.beta.version>
|
|
<java.version>17</java.version>
|
|
<maven.compiler.release>${java.version}</maven.compiler.release>
|
|
<kotlin.code.style>official</kotlin.code.style>
|
|
<kotlin.compiler.jvmTarget>${java.version}</kotlin.compiler.jvmTarget>
|
|
<kotlin.compiler.languageVersion>1.9</kotlin.compiler.languageVersion>
|
|
<kotlin.compiler.apiVersion>1.9</kotlin.compiler.apiVersion>
|
|
<kotlin-compiler.version>2.1.21</kotlin-compiler.version>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.build.outputTimestamp>1782485337</project.build.outputTimestamp>
|
|
<argLine></argLine>
|
|
<!-- Dependency Versions -->
|
|
<dokka.version>2.1.0-Beta</dokka.version>
|
|
<ai-mocks.version>0.4.6</ai-mocks.version>
|
|
<assertj.version>4.0.0-M1</assertj.version>
|
|
<assertk.version>0.28.1</assertk.version>
|
|
<awaitility.version>4.3.0</awaitility.version>
|
|
<aws.java.sdk.version>2.41.34</aws.java.sdk.version>
|
|
<azure-sdk.version>1.3.7</azure-sdk.version>
|
|
<jackson.version>2.21.4</jackson.version>
|
|
<jspecify.version>1.0.0</jspecify.version>
|
|
<jtokkit.version>1.1.0</jtokkit.version>
|
|
<junit.version>6.0.3</junit.version>
|
|
<kotest.version>5.9.1</kotest.version>
|
|
<kotlin.version>1.9.25</kotlin.version>
|
|
<kotlinx-coroutines.version>1.8.1</kotlinx-coroutines.version>
|
|
<log4j.version>2.24.3</log4j.version>
|
|
<logback.version>1.5.32</logback.version>
|
|
<mockito-kotlin.version>5.4.0</mockito-kotlin.version>
|
|
<mockito.version>5.23.0</mockito.version>
|
|
<okhttp.version>4.12.0</okhttp.version>
|
|
<retrofit.version>2.9.0</retrofit.version>
|
|
<slf4j.version>2.0.18</slf4j.version>
|
|
<testcontainers.version>1.21.4</testcontainers.version>
|
|
<tinylog.version>2.7.0</tinylog.version>
|
|
<wiremock.version>3.13.2</wiremock.version>
|
|
<hibernate.version>7.4.2.Final</hibernate.version>
|
|
</properties>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson</groupId>
|
|
<artifactId>jackson-bom</artifactId>
|
|
<version>${jackson.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-bom</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.squareup.retrofit2</groupId>
|
|
<artifactId>retrofit</artifactId>
|
|
<version>${retrofit.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.squareup.retrofit2</groupId>
|
|
<artifactId>converter-jackson</artifactId>
|
|
<version>${retrofit.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.squareup.okhttp3</groupId>
|
|
<artifactId>okhttp-bom</artifactId>
|
|
<version>${okhttp.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>dev.langchain4j</groupId>
|
|
<artifactId>langchain4j-embeddings-all-minilm-l6-v2-q</artifactId>
|
|
<version>${langchain4j.beta.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-bom</artifactId>
|
|
<version>${kotlin.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlinx</groupId>
|
|
<artifactId>kotlinx-coroutines-core-jvm</artifactId>
|
|
<version>${kotlinx-coroutines.version}</version>
|
|
<optional>true</optional>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.jetbrains</groupId>
|
|
<artifactId>annotations</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlinx</groupId>
|
|
<artifactId>kotlinx-coroutines-test-jvm</artifactId>
|
|
<version>${kotlinx-coroutines.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.kotest</groupId>
|
|
<artifactId>kotest-assertions-core-jvm</artifactId>
|
|
<version>${kotest.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.willowtreeapps.assertk</groupId>
|
|
<artifactId>assertk-coroutines-jvm</artifactId>
|
|
<version>${assertk.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.willowtreeapps.assertk</groupId>
|
|
<artifactId>assertk</artifactId>
|
|
<version>${assertk.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.kotest</groupId>
|
|
<artifactId>kotest-assertions-json-jvm</artifactId>
|
|
<version>${kotest.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.junit</groupId>
|
|
<artifactId>junit-bom</artifactId>
|
|
<version>${junit.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.testcontainers</groupId>
|
|
<artifactId>testcontainers-bom</artifactId>
|
|
<version>${testcontainers.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-bom</artifactId>
|
|
<version>${mockito.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.mockito.kotlin</groupId>
|
|
<artifactId>mockito-kotlin</artifactId>
|
|
<version>${mockito-kotlin.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.assertj</groupId>
|
|
<artifactId>assertj-bom</artifactId>
|
|
<version>${assertj.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.tinylog</groupId>
|
|
<artifactId>tinylog-impl</artifactId>
|
|
<version>${tinylog.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.tinylog</groupId>
|
|
<artifactId>slf4j-tinylog</artifactId>
|
|
<version>${tinylog.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>software.amazon.awssdk</groupId>
|
|
<artifactId>bom</artifactId>
|
|
<version>${aws.java.sdk.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.azure</groupId>
|
|
<artifactId>azure-sdk-bom</artifactId>
|
|
<version>${azure-sdk.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.awaitility</groupId>
|
|
<artifactId>awaitility</artifactId>
|
|
<version>${awaitility.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
<version>${logback.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.wiremock</groupId>
|
|
<artifactId>wiremock-standalone</artifactId>
|
|
<version>${wiremock.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-bom</artifactId>
|
|
<version>${log4j.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
<version>3.18.0</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.azure</groupId>
|
|
<artifactId>azure-cosmos</artifactId>
|
|
<version>4.71.0-beta.1</version>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>dev.langchain4j</groupId>
|
|
<artifactId>langchain4j-internal-test-retry</artifactId>
|
|
<version>${langchain4j.beta.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-engine</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-params</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.assertj</groupId>
|
|
<artifactId>assertj-core</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.awaitility</groupId>
|
|
<artifactId>awaitility</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-core</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-junit-jupiter</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.wiremock</groupId>
|
|
<artifactId>wiremock-standalone</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.tinylog</groupId>
|
|
<artifactId>tinylog-impl</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.tinylog</groupId>
|
|
<artifactId>slf4j-tinylog</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<!-- Kotlin test dependencies -->
|
|
<dependency>
|
|
<groupId>com.willowtreeapps.assertk</groupId>
|
|
<artifactId>assertk</artifactId>
|
|
<scope>test</scope>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.willowtreeapps.assertk</groupId>
|
|
<artifactId>assertk-coroutines-jvm</artifactId>
|
|
<scope>test</scope>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.awaitility</groupId>
|
|
<artifactId>awaitility-kotlin</artifactId>
|
|
<version>${awaitility.version}</version>
|
|
<scope>test</scope>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlinx</groupId>
|
|
<artifactId>kotlinx-coroutines-test-jvm</artifactId>
|
|
<scope>test</scope>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.kotest</groupId>
|
|
<artifactId>kotest-assertions-core-jvm</artifactId>
|
|
<version>${kotest.version}</version>
|
|
<scope>test</scope>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<releases>
|
|
<enabled>false</enabled>
|
|
</releases>
|
|
<snapshots>
|
|
<enabled>true</enabled>
|
|
</snapshots>
|
|
<id>central-portal-snapshots</id>
|
|
<name>Central Portal Snapshots</name>
|
|
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.honton.chas</groupId>
|
|
<artifactId>license-maven-plugin</artifactId>
|
|
<version>0.0.6</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>3.5.0</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
<version>3.4.0</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>3.5.0</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-install-plugin</artifactId>
|
|
<version>3.1.4</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<version>3.1.4</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<version>3.5.0</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>3.5.5</version>
|
|
<configuration>
|
|
<systemPropertyVariables>
|
|
<maven.home>${maven.home}</maven.home>
|
|
</systemPropertyVariables>
|
|
<argLine>-Djdk.tracePinnedThreads</argLine>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<version>3.5.5</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>3.10.0</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<version>3.6.2</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.diffplug.spotless</groupId>
|
|
<artifactId>spotless-maven-plugin</artifactId>
|
|
<version>2.44.4</version>
|
|
<configuration>
|
|
<!-- optional: limit format enforcement to just the files changed by this feature branch -->
|
|
<ratchetFrom>origin/main</ratchetFrom>
|
|
<java>
|
|
<palantirJavaFormat>
|
|
<version>2.89.0</version>
|
|
</palantirJavaFormat>
|
|
</java>
|
|
<pom>
|
|
<sortPom>
|
|
<nrOfIndentSpace>4</nrOfIndentSpace>
|
|
</sortPom>
|
|
</pom>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.jacoco</groupId>
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
|
<version>0.8.14</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
<version>${kotlin-compiler.version}</version>
|
|
<extensions>true</extensions>
|
|
<configuration combine.self="append">
|
|
<jvmTarget>${java.version}</jvmTarget>
|
|
<javaParameters>true</javaParameters>
|
|
<args>
|
|
<arg>-Werror</arg>
|
|
<arg>-Xexplicit-api=strict</arg>
|
|
<arg>-Xjspecify-annotations=strict</arg>
|
|
<arg>-Xjsr305=strict</arg>
|
|
<arg>-Xtype-enhancement-improvements-strict-mode</arg>
|
|
</args>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.jetbrains.dokka</groupId>
|
|
<artifactId>dokka-maven-plugin</artifactId>
|
|
<version>${dokka.version}</version>
|
|
<configuration>
|
|
<jdkVersion>${java.version}</jdkVersion>
|
|
<apiVersion>${kotlin.compiler.apiVersion}</apiVersion>
|
|
<languageVersion>${kotlin.compiler.languageVersion}</languageVersion>
|
|
<dokkaPlugins>
|
|
<plugin>
|
|
<groupId>org.jetbrains.dokka</groupId>
|
|
<artifactId>kotlin-as-java-plugin</artifactId>
|
|
<version>${dokka.version}</version>
|
|
</plugin>
|
|
</dokkaPlugins>
|
|
<sourceDirectories>
|
|
<dir>${project.basedir}/src/main/kotlin</dir>
|
|
<dir>${project.basedir}/src/main/java</dir>
|
|
</sourceDirectories>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.github.ozsie</groupId>
|
|
<artifactId>detekt-maven-plugin</artifactId>
|
|
<version>1.23.8</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.simpligility.maven.plugins</groupId>
|
|
<artifactId>android-maven-plugin</artifactId>
|
|
<version>4.6.0</version>
|
|
<extensions>true</extensions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>flatten-maven-plugin</artifactId>
|
|
<version>1.7.3</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.revapi</groupId>
|
|
<artifactId>revapi-maven-plugin</artifactId>
|
|
<version>0.15.1</version>
|
|
<configuration>
|
|
<oldVersion>RELEASE</oldVersion>
|
|
<analysisConfigurationFiles>
|
|
<configurationFile>
|
|
<path>${project.basedir}/revapi.json</path>
|
|
</configurationFile>
|
|
</analysisConfigurationFiles>
|
|
<failOnMissingConfigurationFiles>false</failOnMissingConfigurationFiles>
|
|
<checkDependencies>false</checkDependencies>
|
|
<analysisConfiguration>
|
|
<revapi.differences>
|
|
<ignore>true</ignore>
|
|
<differences>
|
|
<item>
|
|
<code>java.method.varargOverloadsOnlyDifferInVarargParameter</code>
|
|
<justification>Varargs overloads differing only in element type are intentional for API convenience</justification>
|
|
</item>
|
|
<item>
|
|
<code>java.missing.oldClass</code>
|
|
<justification>Dependencies are not checked, so their classes are expectedly missing</justification>
|
|
</item>
|
|
<item>
|
|
<code>java.missing.newClass</code>
|
|
<justification>Dependencies are not checked, so their classes are expectedly missing</justification>
|
|
</item>
|
|
<item>
|
|
<code>java.field.enumConstantOrderChanged</code>
|
|
<justification>Enum constant order is not part of our API contract; callers must not rely on ordinal()</justification>
|
|
</item>
|
|
</differences>
|
|
</revapi.differences>
|
|
</analysisConfiguration>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.revapi</groupId>
|
|
<artifactId>revapi-java</artifactId>
|
|
<version>0.28.4</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
<extensions>true</extensions>
|
|
<executions>
|
|
<execution>
|
|
<id>compile</id>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceDirs>
|
|
<sourceDir>${project.basedir}/src/main/kotlin</sourceDir>
|
|
<sourceDir>${project.basedir}/src/main/java</sourceDir>
|
|
</sourceDirs>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>test-compile</id>
|
|
<goals>
|
|
<goal>test-compile</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceDirs>
|
|
<sourceDir>${project.basedir}/src/test/kotlin</sourceDir>
|
|
<sourceDir>${project.basedir}/src/test/java</sourceDir>
|
|
</sourceDirs>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.15.0</version>
|
|
<configuration>
|
|
<annotationProcessorPaths></annotationProcessorPaths>
|
|
</configuration>
|
|
<executions>
|
|
<!-- Disabling default-compile/testCompile via skipMain/skip so that
|
|
Kotlin compiles first. Using skip instead of phase=none so that
|
|
m2e/Eclipse JDT can still read compiler settings from this execution. -->
|
|
<execution>
|
|
<id>default-compile</id>
|
|
<configuration>
|
|
<skipMain>true</skipMain>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>default-testCompile</id>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>java-compile</id>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
<phase>compile</phase>
|
|
</execution>
|
|
<execution>
|
|
<id>java-test-compile</id>
|
|
<goals>
|
|
<goal>testCompile</goal>
|
|
</goals>
|
|
<phase>test-compile</phase>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>properties</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>detect-unused-dependencies</id>
|
|
<goals>
|
|
<goal>analyze-only</goal>
|
|
</goals>
|
|
<configuration>
|
|
<!-- todo: fix dependencies and set to true -->
|
|
<failOnWarning>false</failOnWarning>
|
|
<outputXML>true</outputXML>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>analyze-all</id>
|
|
<goals>
|
|
<goal>analyze-only</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration combine.children="append">
|
|
<argLine>@{argLine} -javaagent:${org.mockito:mockito-core:jar}</argLine>
|
|
<systemPropertyVariables>
|
|
<tinylog.level>debug</tinylog.level>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<!-- failsafe will be in charge of running the integration tests (everything that ends in IT) -->
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
<configuration combine.children="append">
|
|
<systemPropertyVariables>
|
|
<tinylog.level>debug</tinylog.level>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>integration-test</goal>
|
|
<goal>verify</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.sonatype.central</groupId>
|
|
<artifactId>central-publishing-maven-plugin</artifactId>
|
|
<version>0.10.0</version>
|
|
<extensions>true</extensions>
|
|
<configuration>
|
|
<publishingServerId>central</publishingServerId>
|
|
<autoPublish>true</autoPublish>
|
|
<waitUntil>published</waitUntil>
|
|
<!-- waitMaxTime is specified in seconds-->
|
|
<waitMaxTime>3600</waitMaxTime>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>com.simpligility.maven.plugins</groupId>
|
|
<artifactId>android-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>lint</id>
|
|
<goals>
|
|
<goal>lint</goal>
|
|
</goals>
|
|
<phase>compile</phase>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-sources</id>
|
|
<goals>
|
|
<goal>jar-no-fork</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>3.12.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-javadocs</id>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>enforce</id>
|
|
<goals>
|
|
<goal>enforce</goal>
|
|
</goals>
|
|
<configuration>
|
|
<rules>
|
|
<banDuplicatePomDependencyVersions></banDuplicatePomDependencyVersions>
|
|
<dependencyConvergence></dependencyConvergence>
|
|
<requireMavenVersion>
|
|
<version>3.8</version>
|
|
</requireMavenVersion>
|
|
<requireUpperBoundDeps></requireUpperBoundDeps>
|
|
</rules>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>flatten-maven-plugin</artifactId>
|
|
<configuration>
|
|
<flattenMode>ossrh</flattenMode>
|
|
<pomElements>
|
|
<build>remove</build>
|
|
<repositories>remove</repositories>
|
|
</pomElements>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>flatten</id>
|
|
<goals>
|
|
<goal>flatten</goal>
|
|
</goals>
|
|
<phase>process-resources</phase>
|
|
</execution>
|
|
<execution>
|
|
<id>flatten.clean</id>
|
|
<goals>
|
|
<goal>clean</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.jacoco</groupId>
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>prepare-agent</id>
|
|
<goals>
|
|
<goal>prepare-agent</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>report</id>
|
|
<goals>
|
|
<goal>report</goal>
|
|
</goals>
|
|
<phase>verify</phase>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>**/*Exception.*</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.revapi</groupId>
|
|
<artifactId>revapi-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
<phase>verify</phase>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
<id>sign</id>
|
|
<activation>
|
|
<property>
|
|
<name>sign</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-gpg-plugin</artifactId>
|
|
<version>3.2.8</version>
|
|
<executions>
|
|
<execution>
|
|
<id>sign-artifacts</id>
|
|
<goals>
|
|
<goal>sign</goal>
|
|
</goals>
|
|
<phase>verify</phase>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>compliance</id>
|
|
<activation>
|
|
<property>
|
|
<name>compliance</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.honton.chas</groupId>
|
|
<artifactId>license-maven-plugin</artifactId>
|
|
<version>0.0.6</version>
|
|
<configuration>
|
|
<scopes>compile,runtime,provided,test</scopes>
|
|
<acceptableLicenses>
|
|
<license>
|
|
<name>(The )?(Apache License, Version 2\.0)|(Apache-2\.0)</name>
|
|
<url>https?://www\.apache\.org/licenses/LICENSE-2\.0</url>
|
|
</license>
|
|
<license>
|
|
<name>(The Apache Software License, Version 2\.0)</name>
|
|
<url>https?://www\.apache\.org/licenses/LICENSE-2\.0</url>
|
|
</license>
|
|
<license>
|
|
<name>Apache 2.0</name>
|
|
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
|
</license>
|
|
<license>
|
|
<name>(The MIT License|MIT License|MIT)</name>
|
|
<url>(https?://opensource.org/licenses/MIT)</url>
|
|
</license>
|
|
<license>
|
|
<name>Eclipse Public License v2.0</name>
|
|
<url>https?://www.eclipse.org/legal/epl-v20\.html</url>
|
|
</license>
|
|
<license>
|
|
<name>Eclipse Public License 2.0</name>
|
|
<url>https://projects.eclipse.org/license/epl-2.0</url>
|
|
</license>
|
|
<!-- for tencent-cos document loader -->
|
|
<license>
|
|
<name>cos-java-sdk</name>
|
|
<url>https://github.com/tencentyun/cos-java-sdk-v5</url>
|
|
</license>
|
|
</acceptableLicenses>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>compliance</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>kotlin</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.github.ozsie</groupId>
|
|
<artifactId>detekt-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
<phase>verify</phase>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>spotless</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.diffplug.spotless</groupId>
|
|
<artifactId>spotless-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
<phase>validate</phase>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|