You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
391 lines
12 KiB
XML
391 lines
12 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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-tools</artifactId>
|
|
<version>${revision}</version>
|
|
</parent>
|
|
<artifactId>spring-boot-gradle-plugin</artifactId>
|
|
<packaging>pom</packaging>
|
|
<name>Spring Boot Gradle Plugin</name>
|
|
<description>Spring Boot Gradle Plugin</description>
|
|
<properties>
|
|
<main.basedir>${basedir}/../../..</main.basedir>
|
|
<gradle.executable>./gradlew</gradle.executable>
|
|
<gradle.task>build</gradle.task>
|
|
<skip.gradle.build>false</skip.gradle.build>
|
|
<refdocs.build.directory>${project.build.directory}/refdocs/</refdocs.build.directory>
|
|
</properties>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-loader-tools</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.spring.gradle</groupId>
|
|
<artifactId>dependency-management-plugin</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-compress</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-gradle-plugin</artifactId>
|
|
<version>${kotlin.version}</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.googlecode.maven-download-plugin</groupId>
|
|
<artifactId>download-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>unpack-doc-resources</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>wget</goal>
|
|
</goals>
|
|
<configuration>
|
|
<url>https://repo.spring.io/release/io/spring/docresources/spring-doc-resources/${spring-doc-resources.version}/spring-doc-resources-${spring-doc-resources.version}.zip</url>
|
|
<unpack>true</unpack>
|
|
<outputDirectory>${refdocs.build.directory}</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-compile-dependencies</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<inherited>false</inherited>
|
|
<configuration>
|
|
<includeScope>compile</includeScope>
|
|
<outputDirectory>${project.build.directory}/dependencies/compile</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>copy-test-dependencies</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>copy-dependencies</goal>
|
|
</goals>
|
|
<inherited>false</inherited>
|
|
<configuration>
|
|
<includeScope>test</includeScope>
|
|
<outputDirectory>${project.build.directory}/dependencies/test</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-asciidoc-resources</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${refdocs.build.directory}</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/asciidoc</directory>
|
|
<filtering>false</filtering>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>gradle</id>
|
|
<phase>prepare-package</phase>
|
|
<configuration>
|
|
<executable>${gradle.executable}</executable>
|
|
<arguments>
|
|
<argument>clean</argument>
|
|
<argument>${gradle.task}</argument>
|
|
<argument>-Pversion=${project.version}</argument>
|
|
<argument>-Pdescription=${project.description}</argument>
|
|
<argument>-S</argument>
|
|
</arguments>
|
|
<skip>${skip.gradle.build}</skip>
|
|
</configuration>
|
|
<goals>
|
|
<goal>exec</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-artifacts</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>attach-artifact</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifacts>
|
|
<artifact>
|
|
<file>build/libs/${project.artifactId}-${project.version}.jar</file>
|
|
<type>jar</type>
|
|
</artifact>
|
|
<artifact>
|
|
<file>build/libs/${project.artifactId}-${project.version}-javadoc.jar</file>
|
|
<type>jar</type>
|
|
<classifier>javadoc</classifier>
|
|
</artifact>
|
|
<artifact>
|
|
<file>build/libs/${project.artifactId}-${project.version}-sources.jar</file>
|
|
<type>jar</type>
|
|
<classifier>sources</classifier>
|
|
</artifact>
|
|
</artifacts>
|
|
<skipAttach>${skip.gradle.build}</skipAttach>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>springio</id>
|
|
<name>Spring IO releases repository</name>
|
|
<url>https://repo.spring.io/release</url>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
<profiles>
|
|
<profile>
|
|
<id>windows</id>
|
|
<activation>
|
|
<os>
|
|
<family>windows</family>
|
|
</os>
|
|
</activation>
|
|
<properties>
|
|
<gradle.executable>gradlew.bat</gradle.executable>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>skipTests</id>
|
|
<activation>
|
|
<property>
|
|
<name>skipTests</name>
|
|
<value>true</value>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<gradle.task>assemble</gradle.task>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>full</id>
|
|
<activation>
|
|
<property>
|
|
<name>full</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>ant-contrib</groupId>
|
|
<artifactId>ant-contrib</artifactId>
|
|
<version>1.0b3</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>ant</groupId>
|
|
<artifactId>ant</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.ant</groupId>
|
|
<artifactId>ant-nodeps</artifactId>
|
|
<version>1.8.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.tigris.antelope</groupId>
|
|
<artifactId>antelopetasks</artifactId>
|
|
<version>3.2.10</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<configuration>
|
|
<skip>${skip.gradle.build}</skip>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>set-up-maven-properties</id>
|
|
<phase>prepare-package</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<exportAntProperties>true</exportAntProperties>
|
|
<target>
|
|
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
|
|
<taskdef name="stringutil" classname="ise.antelope.tasks.StringUtilTask" />
|
|
<var name="version-type" value="${project.version}" />
|
|
<propertyregex property="version-type" override="true"
|
|
input="${version-type}" regexp=".*\.(.*)" replace="\1" />
|
|
<propertyregex property="version-type" override="true"
|
|
input="${version-type}" regexp="(M)\d+" replace="MILESTONE" />
|
|
<propertyregex property="version-type" override="true"
|
|
input="${version-type}" regexp="(RC)\d+" replace="MILESTONE" />
|
|
<propertyregex property="version-type" override="true"
|
|
input="${version-type}" regexp="BUILD-(.*)" replace="SNAPSHOT" />
|
|
<var name="github-tag" value="v${project.version}" />
|
|
<propertyregex property="github-tag" override="true"
|
|
input="${github-tag}" regexp=".*SNAPSHOT" replace="master" />
|
|
</target>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>package-docs-zip</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<target>
|
|
<zip
|
|
destfile="${project.build.directory}/${project.artifactId}-${project.version}-docs.zip">
|
|
<zipfileset
|
|
src="build/libs/${project.artifactId}-${project.version}-javadoc.jar"
|
|
prefix="api" />
|
|
<zipfileset dir="${project.build.directory}/generated-docs/reference/html"
|
|
prefix="reference/html" />
|
|
<mappedresources>
|
|
<fileset dir="${project.build.directory}/generated-docs/reference/pdf"
|
|
includes="index.pdf" />
|
|
<globmapper from="index.pdf"
|
|
to="reference/pdf/spring-boot-gradle-plugin-reference.pdf" />
|
|
</mappedresources>
|
|
</zip>
|
|
</target>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctor-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>generate-html-documentation</id>
|
|
<phase>prepare-package</phase>
|
|
<goals>
|
|
<goal>process-asciidoc</goal>
|
|
</goals>
|
|
<configuration>
|
|
<backend>html5</backend>
|
|
<outputDirectory>${project.build.directory}/generated-docs/reference/html</outputDirectory>
|
|
<sourceHighlighter>highlight.js</sourceHighlighter>
|
|
<doctype>book</doctype>
|
|
<attributes>
|
|
<highlightjsdir>js/highlight</highlightjsdir>
|
|
<highlightjs-theme>atom-one-dark-reasonable</highlightjs-theme>
|
|
<linkcss>true</linkcss>
|
|
<imagesdir>./images</imagesdir>
|
|
<icons>font</icons>
|
|
<stylesdir>css/</stylesdir>
|
|
<stylesheet>style.css</stylesheet>
|
|
</attributes>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>generate-pdf-documentation</id>
|
|
<phase>prepare-package</phase>
|
|
<goals>
|
|
<goal>process-asciidoc</goal>
|
|
</goals>
|
|
<configuration>
|
|
<backend>pdf</backend>
|
|
<outputDirectory>${project.build.directory}/generated-docs/reference/pdf</outputDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<sourceDirectory>${refdocs.build.directory}</sourceDirectory>
|
|
<sourceDocumentName>index.adoc</sourceDocumentName>
|
|
<attributes>
|
|
<github-tag>${github-tag}</github-tag>
|
|
<version-type>${version-type}</version-type>
|
|
<version>${project.version}</version>
|
|
<dependency-management-plugin-version>${dependency-management-plugin.version}</dependency-management-plugin-version>
|
|
</attributes>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.asciidoctor</groupId>
|
|
<artifactId>asciidoctorj-pdf</artifactId>
|
|
<version>1.5.0-alpha.11</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.spring.asciidoctor</groupId>
|
|
<artifactId>spring-asciidoctor-extensions</artifactId>
|
|
<version>0.1.3.RELEASE</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-zip</id>
|
|
<goals>
|
|
<goal>attach-artifact</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifacts>
|
|
<artifact>
|
|
<file>${project.build.directory}/${project.artifactId}-${project.version}-docs.zip</file>
|
|
<type>zip</type>
|
|
<classifier>docs</classifier>
|
|
</artifact>
|
|
</artifacts>
|
|
<skipAttach>${skip.gradle.build}</skipAttach>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>java9</id>
|
|
<activation>
|
|
<jdk>[9,)</jdk>
|
|
</activation>
|
|
<properties>
|
|
<skip.gradle.build>true</skip.gradle.build>
|
|
</properties>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|