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

Simplified deployment

parent 3b76fd09
No related branches found
No related tags found
No related merge requests found
Pipeline #79596 passed
image: maven:3-eclipse-temurin-17
variables:
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"
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version"
cache:
key: "$CI_JOB_NAME"
paths:
- .m2/repository
stages:
- build
- deploy
build:
stage: build
script:
- mvn install -s ci_settings.xml
artifacts:
paths:
- target/
deploy:
stage: deploy
rules:
- if: $CI_COMMIT_TAG
script:
- mvn 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>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2009, Google Inc.
Copyright (C) 2009, Igor Fedorenko <igor@ifedorenko.com>
Copyright (C) 2008, Imran M Yousuf <imyousuf@smartitengineering.com>
Copyright (C) 2010, Matthias Sohn <matthias.sohn@sap.com> and others
This program and the accompanying materials are made available under the
terms of the Eclipse Distribution License v. 1.0 which is available at
http://www.eclipse.org/org/documents/edl-v10.php.
SPDX-License-Identifier: BSD-3-Clause
-->
<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/maven-v4_0_0.xsd">
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit-parent</artifactId>
<version>7.0.0.202409031743-r</version>
<version>7.0.0.202409031743-jpms</version>
</parent>
<artifactId>org.eclipse.jgit</artifactId>
......@@ -30,197 +14,72 @@
Repository access and algorithms
</description>
<properties>
<translate-qualifier/>
<source-bundle-manifest>${project.build.directory}/META-INF/SOURCE-MANIFEST.MF</source-bundle-manifest>
</properties>
<dependencies>
<dependency>
<groupId>com.googlecode.javaewah</groupId>
<artifactId>JavaEWAH</artifactId>
<version>1.2.3</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.36</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.17.1</version>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>17</java.version>
<bundle-manifest>${project.build.directory}/META-INF/MANIFEST.MF</bundle-manifest>
</properties>
<build>
<sourceDirectory>src/</sourceDirectory>
<resources>
<resource>
<directory>.</directory>
<includes>
<include>plugin.properties</include>
<include>about.html</include>
<include>META-INF/eclipse.inf</include>
</includes>
</resource>
<resource>
<directory>resources/</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>translate-source-qualifier</id>
<phase>generate-resources</phase>
<configuration>
<target>
<copy file="META-INF/SOURCE-MANIFEST.MF" tofile="${source-bundle-manifest}" overwrite="true"/>
<replace file="${source-bundle-manifest}">
<replacefilter token=".qualifier" value=".${commit.time.version}"/>
</replace>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<inherited>true</inherited>
<executions>
<execution>
<id>attach-sources</id>
<phase>process-classes</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<archive>
<manifestFile>${source-bundle-manifest}</manifestFile>
</archive>
</configuration>
</execution>
</executions>
<version>3.3.1</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<configuration>
<archive>
<manifestFile>${bundle-manifest}</manifestFile>
</archive>
<release>${java.version}</release>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
</plugins>
<plugin>
<groupId>com.github.siom79.japicmp</groupId>
<artifactId>japicmp-maven-plugin</artifactId>
<version>${japicmp-version}</version>
<configuration>
<oldVersion>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${jgit-last-release-version}</version>
</dependency>
</oldVersion>
<newVersion>
<file>
<path>${project.build.directory}/${project.artifactId}-${project.version}.jar</path>
</file>
</newVersion>
<parameter>
<onlyModified>true</onlyModified>
<resources>
<resource>
<directory>.</directory>
<includes>
<include>org.eclipse.jgit.*</include>
<include>plugin.properties</include>
<include>about.html</include>
<include>META-INF/eclipse.inf</include>
</includes>
<accessModifier>public</accessModifier>
<breakBuildOnModifications>false</breakBuildOnModifications>
<breakBuildOnBinaryIncompatibleModifications>false</breakBuildOnBinaryIncompatibleModifications>
<onlyBinaryIncompatible>false</onlyBinaryIncompatible>
<includeSynthetic>false</includeSynthetic>
<ignoreMissingClasses>true</ignoreMissingClasses>
<skipPomModules>true</skipPomModules>
</parameter>
<skip>false</skip>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>cmp</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${spotbugs-maven-plugin-version}</version>
<configuration>
<excludeFilterFile>findBugs/FindBugsExcludeFilter.xml</excludeFilterFile>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</resource>
<resource>
<directory>resources/</directory>
</resource>
</resources>
</build>
<reporting>
<plugins>
<plugin>
<groupId>com.github.siom79.japicmp</groupId>
<artifactId>japicmp-maven-plugin</artifactId>
<version>${japicmp-version}</version>
<reportSets>
<reportSet>
<reports>
<report>cmp-report</report>
</reports>
</reportSet>
</reportSets>
<configuration>
<oldVersion>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${jgit-last-release-version}</version>
</dependency>
</oldVersion>
<newVersion>
<file>
<path>${project.build.directory}/${project.artifactId}-${project.version}.jar</path>
</file>
</newVersion>
<parameter>
<onlyModified>true</onlyModified>
<includes>
<include>org.eclipse.jgit.*</include>
</includes>
<accessModifier>public</accessModifier>
<breakBuildOnModifications>false</breakBuildOnModifications>
<breakBuildOnBinaryIncompatibleModifications>false</breakBuildOnBinaryIncompatibleModifications>
<onlyBinaryIncompatible>false</onlyBinaryIncompatible>
<includeSynthetic>false</includeSynthetic>
<ignoreMissingClasses>true</ignoreMissingClasses>
<skipPomModules>true</skipPomModules>
</parameter>
<skip>false</skip>
</configuration>
</plugin>
</plugins>
</reporting>
</project>
module org.eclipse.jgit {
requires org.slf4j;
requires org.apache.commons.codec;
requires com.googlecode.javaewah;
requires java.xml;
requires java.management;
requires java.sql;
requires java.security.jgss;
exports org.eclipse.jgit.annotations;
exports org.eclipse.jgit.api;
exports org.eclipse.jgit.api.errors;
exports org.eclipse.jgit.attributes;
exports org.eclipse.jgit.blame;
exports org.eclipse.jgit.diff;
exports org.eclipse.jgit.dircache;
exports org.eclipse.jgit.errors;
exports org.eclipse.jgit.events;
exports org.eclipse.jgit.fnmatch;
exports org.eclipse.jgit.gitrepo;
exports org.eclipse.jgit.gitrepo.internal;
exports org.eclipse.jgit.hooks;
exports org.eclipse.jgit.ignore;
exports org.eclipse.jgit.ignore.internal;
exports org.eclipse.jgit.internal;
exports org.eclipse.jgit.internal.diff;
exports org.eclipse.jgit.internal.diffmergetool;
exports org.eclipse.jgit.internal.fsck;
exports org.eclipse.jgit.internal.revwalk;
exports org.eclipse.jgit.internal.storage.commitgraph;
exports org.eclipse.jgit.internal.storage.dfs;
exports org.eclipse.jgit.internal.storage.file;
exports org.eclipse.jgit.internal.storage.io;
exports org.eclipse.jgit.internal.storage.memory;
exports org.eclipse.jgit.internal.storage.pack;
exports org.eclipse.jgit.internal.storage.reftable;
exports org.eclipse.jgit.internal.submodule;
exports org.eclipse.jgit.internal.transport.connectivity;
exports org.eclipse.jgit.internal.transport.http;
exports org.eclipse.jgit.internal.transport.parser;
exports org.eclipse.jgit.internal.transport.ssh;
exports org.eclipse.jgit.internal.util;
exports org.eclipse.jgit.lib;
exports org.eclipse.jgit.lib.internal;
exports org.eclipse.jgit.logging;
exports org.eclipse.jgit.merge;
exports org.eclipse.jgit.nls;
exports org.eclipse.jgit.notes;
exports org.eclipse.jgit.patch;
exports org.eclipse.jgit.revplot;
exports org.eclipse.jgit.revwalk;
exports org.eclipse.jgit.revwalk.filter;
exports org.eclipse.jgit.storage.file;
exports org.eclipse.jgit.storage.pack;
exports org.eclipse.jgit.submodule;
exports org.eclipse.jgit.transport;
exports org.eclipse.jgit.transport.http;
exports org.eclipse.jgit.transport.resolver;
exports org.eclipse.jgit.treewalk;
exports org.eclipse.jgit.treewalk.filter;
exports org.eclipse.jgit.util;
exports org.eclipse.jgit.util.io;
exports org.eclipse.jgit.util.sha1;
exports org.eclipse.jgit.util.time;
}
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment