DATAGEODE-238 - Create spring-data-geode-distribution module.

Add organization details to pom.xml.

Move Asciidoc and Assembly Maven build plugins from pom.xml to spring-data-geode-distribution/pom.xml.

Move Asciidoc from spring-data-geode/src/main/asciidoc to src/main/asciidoc.
This commit is contained in:
John Blum
2019-11-13 08:33:16 -08:00
parent aeb8e77264
commit b4cef0726a
36 changed files with 95 additions and 71 deletions

78
pom.xml
View File

@@ -20,27 +20,30 @@
<description>Spring Data for Apache Geode and Pivotal GemFire Parent</description>
<url>https://projects.spring.io/spring-data-geode/</url>
<organization>
<name>Pivotal Software, Inc.</name>
<url>https://www.spring.io</url>
</organization>
<developers>
<developer>
<id>jblum</id>
<name>John Blum</name>
<email>jblum at pivotal.io</email>
<organization>Pivotal</organization>
<organizationUrl>https://www.pivotal.io</organizationUrl>
<roles>
<role>Lead Developer</role>
</roles>
<timezone>-8</timezone>
</developer>
</developers>
<modules>
<module>spring-data-geode</module>
<module>spring-data-gemfire</module>
<module>spring-data-geode-distribution</module>
</modules>
<properties>
<dist.key>SGF</dist.key>
<java-module-name>spring.data.geode</java-module-name>
<source.level>1.8</source.level>
<antlr.version>2.7.7</antlr.version>
@@ -257,7 +260,6 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
@@ -268,81 +270,15 @@
</includes>
<reuseForks>false</reuseForks>
<systemProperties>
<gemfire.disableShutdownHook>true</gemfire.disableShutdownHook>
<java.util.logging.config.file>${basedir}/src/test/resources/java-util-logging.properties</java.util.logging.config.file>
<javax.net.ssl.keyStore>${basedir}/src/test/resources/trusted.keystore</javax.net.ssl.keyStore>
<gemfire.disableShutdownHook>true</gemfire.disableShutdownHook>
<logback.log.level>error</logback.log.level>
<spring.profiles.active>apache-geode</spring.profiles.active>
</systemProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<configuration>
<attributes>
<basedocdir>${project.basedir}/src/main/asciidoc</basedocdir>
<doctype>book</doctype>
<version>${project.version}</version>
</attributes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>html-asciidoc</id>
<build>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<configuration>
<attributes>
<basedocdir>${project.basedir}/src/main/asciidoc</basedocdir>
<doctype>book</doctype>
<numbered>true</numbered>
<sectnums>true</sectnums>
<toclevels>2</toclevels>
<version>${project.version}</version>
<!-- TODO include other attributes from build.gradle! -->
</attributes>
</configuration>
<executions>
<execution>
<id>html</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<backend>html5</backend>
<outputDirectory>${project.root}/target/site/reference/html</outputDirectory>
<sectids>false</sectids>
<sourceHighlighter>prettify</sourceHighlighter>
<attributes>
<linkcss>true</linkcss>
<icons>font</icons>
<sectanchors>true</sectanchors>
<stylesheet>spring.css</stylesheet>
</attributes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

View File

@@ -0,0 +1,88 @@
<?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>
<parent>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-geode-parent</artifactId>
<version>2.3.0.BUILD-SNAPSHOT</version>
</parent>
<artifactId>spring-data-geode-distribution</artifactId>
<packaging>pom</packaging>
<properties>
<project.root>${project.basedir}/..</project.root>
<dist.key>SGF</dist.key>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<configuration>
<attributes>
<basedocdir>${project.root}/src/main/asciidoc</basedocdir>
<doctype>book</doctype>
<version>${project.version}</version>
</attributes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>html-asciidoc</id>
<build>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<configuration>
<attributes>
<basedocdir>${project.root}/src/main/asciidoc</basedocdir>
<doctype>book</doctype>
<numbered>true</numbered>
<sectnums>true</sectnums>
<toclevels>2</toclevels>
<version>${project.version}</version>
<!-- TODO include other attributes from build.gradle! -->
</attributes>
</configuration>
<executions>
<execution>
<id>html</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<backend>html5</backend>
<outputDirectory>${project.root}/target/site/reference/html</outputDirectory>
<sectids>false</sectids>
<sourceHighlighter>prettify</sourceHighlighter>
<attributes>
<linkcss>true</linkcss>
<icons>font</icons>
<sectanchors>true</sectanchors>
<stylesheet>spring.css</stylesheet>
</attributes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

View File

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

View File

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB