Skip to content
Snippets Groups Projects
Commit af77412c authored by Jari-Matti Mäkelä's avatar Jari-Matti Mäkelä
Browse files

JPMS + GitLab deployment

parent 21405126
No related branches found
No related tags found
No related merge requests found
Pipeline #75370 passed
image: maven:3.9.6-eclipse-temurin-22
variables:
# This will supress any download for dependencies and plugins or upload messages which would clutter the console log.
# `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version"
# -DinstallAtEnd=true -DdeployAtEnd=true"
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add ''
cache:
key: "$CI_JOB_NAME"
paths:
- .m2/repository
stages:
- build
- deploy
build:
stage: build
script:
- mvn -P utu -pl parent install
- mvn -P utu -pl io install
- mvn -P utu -pl fontbox install
- mvn -P utu -pl pdfbox install
deploy:
stage: deploy
rules:
- if: $CI_COMMIT_TAG
script:
- mvn -P utu -pl parent deploy -s ci_settings.xml
- mvn -P utu -pl io deploy -s ci_settings.xml
- mvn -P utu -pl fontbox deploy -s ci_settings.xml
- mvn -P utu -pl pdfbox deploy -s ci_settings.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
<servers>
<server>
<id>gitlab-maven</id>
<configuration>
<httpHeaders>
<property>
<name>Job-Token</name>
<value>${env.CI_JOB_TOKEN}</value>
</property>
</httpHeaders>
</configuration>
</server>
</servers>
</settings>
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<parent> <parent>
<groupId>org.apache.pdfbox</groupId> <groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-parent</artifactId> <artifactId>pdfbox-parent</artifactId>
<version>3.0.3</version> <version>3.0.3-JPMS</version>
<relativePath>../parent/pom.xml</relativePath> <relativePath>../parent/pom.xml</relativePath>
</parent> </parent>
......
module org.apache.fontbox {
requires org.apache.pdfbox.io;
requires org.apache.commons.logging;
requires java.desktop;
exports org.apache.fontbox;
exports org.apache.fontbox.afm;
exports org.apache.fontbox.cff;
exports org.apache.fontbox.cmap;
exports org.apache.fontbox.encoding;
exports org.apache.fontbox.pfb;
exports org.apache.fontbox.ttf;
exports org.apache.fontbox.type1;
exports org.apache.fontbox.util;
exports org.apache.fontbox.ttf.gsub;
exports org.apache.fontbox.ttf.model;
exports org.apache.fontbox.util.autodetect;
}
\ No newline at end of file
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<parent> <parent>
<groupId>org.apache.pdfbox</groupId> <groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-parent</artifactId> <artifactId>pdfbox-parent</artifactId>
<version>3.0.3</version> <version>3.0.3-JPMS</version>
<relativePath>../parent/pom.xml</relativePath> <relativePath>../parent/pom.xml</relativePath>
</parent> </parent>
......
module org.apache.pdfbox.io {
requires org.apache.commons.logging;
requires java.base;
exports org.apache.pdfbox.io;
opens org.apache.pdfbox.io;
}
\ No newline at end of file
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<groupId>org.apache.pdfbox</groupId> <groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-parent</artifactId> <artifactId>pdfbox-parent</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>3.0.3</version> <version>3.0.3-JPMS</version>
<name>Apache PDFBox parent</name> <name>Apache PDFBox parent</name>
<inceptionYear>2002</inceptionYear> <inceptionYear>2002</inceptionYear>
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
https://maven.apache.org/surefire/maven-surefire-plugin/faq.html#late-property-evaluation https://maven.apache.org/surefire/maven-surefire-plugin/faq.html#late-property-evaluation
--> -->
<surefireArgLine /> <surefireArgLine />
<skipTests>true</skipTests>
</properties> </properties>
...@@ -83,8 +84,8 @@ ...@@ -83,8 +84,8 @@
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<configuration> <configuration>
<showDeprecation>true</showDeprecation> <showDeprecation>true</showDeprecation>
<target>1.8</target> <target>9</target>
<source>1.8</source> <source>9</source>
<encoding>UTF-8</encoding> <encoding>UTF-8</encoding>
</configuration> </configuration>
</plugin> </plugin>
...@@ -226,7 +227,7 @@ ...@@ -226,7 +227,7 @@
<plugin> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<configuration> <configuration>
<release>8</release> <release>9</release>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
...@@ -283,6 +284,19 @@ ...@@ -283,6 +284,19 @@
</plugins> </plugins>
</build> </build>
</profile> </profile>
<profile>
<id>utu</id>
<distributionManagement>
<repository>
<id>gitlab-maven</id>
<url>${env.CI_API_V4_URL}/projects/${env.CI_PROJECT_ID}/packages/maven</url>
</repository>
<snapshotRepository>
<id>gitlab-maven</id>
<url>${env.CI_API_V4_URL}/projects/${env.CI_PROJECT_ID}/packages/maven</url>
</snapshotRepository>
</distributionManagement>
</profile>
</profiles> </profiles>
<!-- Developers listed by PMC Chair, PMC all alphabetical--> <!-- Developers listed by PMC Chair, PMC all alphabetical-->
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<parent> <parent>
<groupId>org.apache.pdfbox</groupId> <groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-parent</artifactId> <artifactId>pdfbox-parent</artifactId>
<version>3.0.3</version> <version>3.0.3-JPMS</version>
<relativePath>../parent/pom.xml</relativePath> <relativePath>../parent/pom.xml</relativePath>
</parent> </parent>
......
module org.apache.pdfbox {
requires transitive org.apache.fontbox;
requires org.apache.pdfbox.io;
requires org.apache.commons.logging;
requires java.desktop;
requires org.bouncycastle.pkix;
requires org.bouncycastle.provider;
exports org.apache.pdfbox;
exports org.apache.pdfbox.contentstream;
exports org.apache.pdfbox.contentstream.operator;
exports org.apache.pdfbox.contentstream.operator.color;
exports org.apache.pdfbox.contentstream.operator.graphics;
exports org.apache.pdfbox.contentstream.operator.text;
exports org.apache.pdfbox.contentstream.operator.markedcontent;
exports org.apache.pdfbox.contentstream.operator.state;
exports org.apache.pdfbox.cos;
exports org.apache.pdfbox.filter;
exports org.apache.pdfbox.multipdf;
exports org.apache.pdfbox.pdfparser;
exports org.apache.pdfbox.pdfparser.xref;
exports org.apache.pdfbox.pdfwriter;
exports org.apache.pdfbox.pdfwriter.compress;
exports org.apache.pdfbox.pdmodel;
exports org.apache.pdfbox.pdmodel.common;
exports org.apache.pdfbox.pdmodel.font;
exports org.apache.pdfbox.pdmodel.encryption;
exports org.apache.pdfbox.pdmodel.graphics;
exports org.apache.pdfbox.pdmodel.fdf;
exports org.apache.pdfbox.pdmodel.fixup;
exports org.apache.pdfbox.printing;
exports org.apache.pdfbox.rendering;
exports org.apache.pdfbox.text;
exports org.apache.pdfbox.util;
opens org.apache.pdfbox;
}
\ No newline at end of file
...@@ -23,14 +23,14 @@ ...@@ -23,14 +23,14 @@
<parent> <parent>
<groupId>org.apache.pdfbox</groupId> <groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-parent</artifactId> <artifactId>pdfbox-parent</artifactId>
<version>3.0.3</version> <version>3.0.3-JPMS</version>
<relativePath>parent/pom.xml</relativePath> <relativePath>parent/pom.xml</relativePath>
</parent> </parent>
<groupId>org.apache.pdfbox</groupId> <groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-reactor</artifactId> <artifactId>pdfbox-reactor</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>3.0.3</version> <version>3.0.3-JPMS</version>
<name>Apache PDFBox Reactor</name> <name>Apache PDFBox Reactor</name>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment