Skip to content

Commit

Permalink
Merge pull request #19 from OP-TED/release/0.6.1
Browse files Browse the repository at this point in the history
Release/0.6.1
  • Loading branch information
rousso authored May 19, 2022
2 parents df5a4b5 + 829960f commit 4e5e584
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 29 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish package to the Maven Central Repository

on:
release:
types: [created]

# Allows to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Import GPG Key
uses: crazy-max/ghaction-import-gpg@v1
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Set up Java for publishing to Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish to the Maven Central Repository
run: mvn --batch-mode deploy -Dgpg.passphrase='${{ secrets.GPG_PASSPHRASE }}'
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

22 changes: 0 additions & 22 deletions .github/workflows/publish_artifact.yml

This file was deleted.

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SDK 0.6.1 Release Notes

eForms SDK 0.6.1 only updates the pom.xml to allow us to publish it in the Maven Central Repository.
This allows developers to use the package directly in their dependency management configuration. The package can also be directly downloaded from Maven Central.

The content of the SDK does not change with this patch.

# SDK 0.6.0 Release Notes

Below is a list of the major updates made to the SDK in this release.
Expand Down
102 changes: 95 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,48 @@
<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">
<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>

<groupId>eu.europa.ted.eforms</groupId>
<artifactId>eforms-sdk</artifactId>
<version>0.6.0</version>
<version>0.6.1</version>
<packaging>jar</packaging>

<name>eForms SDK</name>
<description>
eForms is the notification standard for public procurement procedures in the EU.
The eForms SDK is a collection of resources providing the foundation for building eForms applications.
</description>
<url>https://docs.ted.europa.eu/eforms/latest/</url>

<licenses>
<license>
<name>European Union Public Licence, Version 1.2</name>
<url>https://joinup.ec.europa.eu/sites/default/files/custom-page/attachment/2020-03/EUPL-1.2%20EN.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<name>TED and EU Public Procurement Unit</name>
<email>[email protected]</email>
<organization>Publications Office of the European Union</organization>
<organizationUrl>https://op.europa.eu/</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/OP-TED/eForms-SDK.git</connection>
<url>https://github.com/OP-TED/eForms-SDK.git</url>
</scm>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/OP-TED/eForms-SDK</url>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

Expand All @@ -34,5 +65,62 @@
</excludes>
</resource>
</resources>

<plugins>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<configuration>
<createChecksum>true</createChecksum>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- Prevent gpg from using pinentry programs -->
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 4e5e584

Please sign in to comment.