Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 21 additions & 12 deletions .github/workflows/release-to-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,43 @@ name: Release to maven central
on:
workflow_dispatch:
inputs:
releaseversion:
description: 'Release version'
releaseVersion:
description: "Default version to use when preparing a release."
required: true
default: '2.0.7'
default: "X.Y.Z"
developmentVersion:
description: "Default version to use for new local working copy."
required: true
default: "X.Y.Z-SNAPSHOT"

jobs:
publish:
runs-on: ubuntu-latest
steps:
- run: echo "Will start a Maven Central upload with version ${{ github.event.inputs.releaseversion }}"
- run: echo "Release the project and upload to Maven Central"

- uses: actions/checkout@v3

- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: 8
server-id: sonatype-nexus-staging
java-version: '8'
distribution: 'temurin'
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Set projects Maven version to GitHub Action GUI set version
run: mvn versions:set "-DnewVersion=${{ github.event.inputs.releaseversion }}"

- name: Publish package
run: mvn --batch-mode clean deploy -P central-deploy -DskipTests=true
- name: Release project and publish to Maven Central
env:
MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
shell: bash
run: |
mvn --batch-mode \
-DdryRun=true \
-DpushChanges=false \
release:prepare \
release:perform
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<version>2.0.7-SNAPSHOT</version>
</parent>
<artifactId>fr.opensagres.xdocreport.converter.docx.docx4j</artifactId>
<name>Converter docx</name>
<dependencies>

<dependency>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>fr.opensagres.xdocreport.converter</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<version>2.0.7-SNAPSHOT</version>
</parent>
<artifactId>fr.opensagres.xdocreport.converter.docx.xwpf</artifactId>
<name>Converter docx xwpf</name>
<dependencies>

<dependency>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>fr.opensagres.xdocreport.converter</artifactId>
Expand Down
10 changes: 6 additions & 4 deletions converter/fr.opensagres.xdocreport.converter.odt.odfdom/pom.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<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">
<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>

<artifactId>fr.opensagres.xdocreport.converter.odt.odfdom</artifactId>

<name>ODT odfdom converter module</name>
<parent>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>converter</artifactId>
Expand All @@ -24,6 +26,6 @@
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>fr.opensagres.odfdom.converter.xhtml</artifactId>
<version>2.0.7-SNAPSHOT</version>
</dependency>
</dependency>
</dependencies>
</project>
</project>
1 change: 1 addition & 0 deletions converter/fr.opensagres.xdocreport.converter/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<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>
<artifactId>fr.opensagres.xdocreport.converter</artifactId>
<name>Base converter module</name>
<parent>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>converter</artifactId>
Expand Down
1 change: 1 addition & 0 deletions core/fr.opensagres.xdocreport.core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<version>2.0.7-SNAPSHOT</version>
</parent>
<artifactId>fr.opensagres.xdocreport.core</artifactId>
<name>Core module</name>
<dependencies>
<dependency>
<groupId>log4j</groupId>
Expand Down
1 change: 1 addition & 0 deletions document/fr.opensagres.xdocreport.document.docx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<version>2.0.7-SNAPSHOT</version>
</parent>
<artifactId>fr.opensagres.xdocreport.document.docx</artifactId>
<name>Docx document module</name>
<dependencies>
<dependency>
<groupId>fr.opensagres.xdocreport</groupId>
Expand Down
1 change: 1 addition & 0 deletions document/fr.opensagres.xdocreport.document.odp/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<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>
<artifactId>fr.opensagres.xdocreport.document.odp</artifactId>
<name>Document odp</name>
<parent>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>document</artifactId>
Expand Down
1 change: 1 addition & 0 deletions document/fr.opensagres.xdocreport.document.ods/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<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>
<artifactId>fr.opensagres.xdocreport.document.ods</artifactId>
<name>Document ODS module</name>
<parent>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>document</artifactId>
Expand Down
1 change: 1 addition & 0 deletions document/fr.opensagres.xdocreport.document.odt/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<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>
<artifactId>fr.opensagres.xdocreport.document.odt</artifactId>
<name>Base ODT module</name>
<parent>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>document</artifactId>
Expand Down
1 change: 1 addition & 0 deletions document/fr.opensagres.xdocreport.document.pptx/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<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>
<artifactId>fr.opensagres.xdocreport.document.pptx</artifactId>
<name>PPTX document module</name>
<parent>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>document</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<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>
<artifactId>fr.opensagres.xdocreport.document.textstyling.wiki</artifactId>
<name>Document textstyling wiki module</name>
<parent>
<groupId>fr.opensagres.xdocreport</groupId>
<artifactId>document</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion document/fr.opensagres.xdocreport.document.tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</parent>

<artifactId>fr.opensagres.xdocreport.document.tools</artifactId>
<name>Document tools module</name>
<build>

<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion document/fr.opensagres.xdocreport.document/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</parent>

<artifactId>fr.opensagres.xdocreport.document</artifactId>

<name>document</name>

<dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<version>2.0.7-SNAPSHOT</version>
</parent>
<artifactId>fr.opensagres.xdocreport.core.test</artifactId>
<name>Tests module</name>
<build>
<plugins>
<plugin>
Expand Down
118 changes: 87 additions & 31 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
<version>9</version>
</parent>

<licenses>
<license>
<name>The MIT License (MIT)</name>
Expand Down Expand Up @@ -82,6 +83,7 @@
<configuration>
<preparationGoals>clean install -DskipTests</preparationGoals>
<autoVersionSubmodules>true</autoVersionSubmodules>
<releaseProfiles>release</releaseProfiles>
</configuration>
</plugin>
<plugin>
Expand All @@ -103,22 +105,6 @@
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
Expand All @@ -134,11 +120,6 @@
<dependencyLocationsEnabled>true</dependencyLocationsEnabled>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
Expand All @@ -147,13 +128,6 @@
</reportPlugins>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
Expand Down Expand Up @@ -187,6 +161,15 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
Expand All @@ -204,6 +187,11 @@
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down Expand Up @@ -248,8 +236,8 @@
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/opensagres/xdocreport.git</connection>
<developerConnection>scm:git:https://github.com/opensagres/xdocreport.git</developerConnection>
<connection>scm:git:git@github.com:opensagres/xdocreport.git</connection>
<developerConnection>scm:git:git@github.com:opensagres/xdocreport.git</developerConnection>
<url>https://github.com/opensagres/xdocreport/</url>
<tag>HEAD</tag>
</scm>
Expand Down Expand Up @@ -303,6 +291,74 @@
</ciManagement>
<profiles>
<profile>
<id>release</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.10.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
</configuration>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadoc</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile>
<id>m2e</id>
<activation>
<property>
<name>m2e.version</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<version>2.0.7-SNAPSHOT</version>
</parent>
<artifactId>fr.opensagres.xdocreport.remoting.converter.server</artifactId>
<name>Remoting converter server</name>
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<version>2.0.7-SNAPSHOT</version>
</parent>
<artifactId>fr.opensagres.xdocreport.remoting.converter</artifactId>
<name>Remoting converter base module</name>
<dependencies>
<dependency>
<groupId>javax.activation</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<version>2.0.7-SNAPSHOT</version>
</parent>
<artifactId>fr.opensagres.xdocreport.remoting.reporting.server</artifactId>
<name>Remoting reporting server</name>
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
Expand Down
Loading
Loading