Skip to content
Merged
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
19 changes: 19 additions & 0 deletions .github/workflows/createReleasePom.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

if ! command -v xmlstarlet &> /dev/null
then
echo "xmlstarlet tool is not available, please install it to continue."
exit 1
fi

readonly RELEASE_POM=release-pom.xml
echo "Copying original POM file to $RELEASE_POM"
cp pom.xml "$RELEASE_POM"

CURRENT_VERSION=$(mvn --file "$RELEASE_POM" -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive exec:exec)

echo "Updating artifactId value for release POM $RELEASE_POM"
xmlstarlet edit -L --ps -N pom="http://maven.apache.org/POM/4.0.0" \
--update "/pom:project/pom:artifactId" \
--value "import-export-udf-common-scala_\${scala.compat.version}" "$RELEASE_POM"

10 changes: 8 additions & 2 deletions .github/workflows/release_droid_release_on_maven_central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,19 @@ jobs:
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Install xmlstarlet
run: sudo apt install -y --no-install-recommends xmlstarlet
- name: Update release pom file
run: ./.github/workflows/createReleasePom.sh
- name: Publish to Central Repository for ${{ matrix.scala-version }}
run: |
mvn clean deploy \
mvn --file release-pom.xml clean deploy \
-P${{ matrix.scala-version }} \
-Dgpg.skip=false \
-Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} \
-DskipTests
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
- name: Remove release pom file
run: rm -rf release-pom.xml
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ tmp
Desktop.ini
Thumbs.db

*.flattened-pom.xml
*.flattened-pom.xml
release-pom.xml
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Import Export UDF Common Scala

[![Build Status](https://github.com/exasol/import-export-udf-common-scala/actions/workflows/ci-build.yml/badge.svg)](https://github.com/exasol/import-export-udf-common-scala/actions/workflows/ci-build.yml)
[![Maven Central](https://img.shields.io/maven-central/v/com.exasol/import-export-udf-common-scala)](https://search.maven.org/artifact/com.exasol/import-export-udf-common-scala_2.13)

Scala 2.13: [![Maven Central](https://img.shields.io/maven-central/v/com.exasol/import-export-udf-common-scala_2.13)](https://search.maven.org/artifact/com.exasol/import-export-udf-common-scala_2.13)
Scala 2.12: [![Maven Central](https://img.shields.io/maven-central/v/com.exasol/import-export-udf-common-scala_2.12)](https://search.maven.org/artifact/com.exasol/import-export-udf-common-scala_2.12)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nicer 👍

(I think we already suppress this in PK checks)

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=com.exasol%3Aimport-export-udf-common-scala&metric=alert_status)](https://sonarcloud.io/dashboard?id=com.exasol%3Aimport-export-udf-common-scala)

Expand Down
1 change: 1 addition & 0 deletions doc/changes/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changes

* [0.4.2](changes_0.4.2.md)
* [0.4.1](changes_0.4.1.md)
* [0.4.0](changes_0.4.0.md)
* [0.3.1](changes_0.3.1.md)
Expand Down
19 changes: 19 additions & 0 deletions doc/changes/changes_0.4.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Import Export UDF Common Scala 0.4.2, released 2022-08-03

Code name: Fixed Maven Central deployment

## Summary

The automatic Maven Central deployment tried to upload both variants for Scala 2.12 and 2.13 to the same artifact https://repo1.maven.org/maven2/com/exasol/import-export-udf-common-scala/ which causes the build to fail.

Now they are uploaded with the correct artifact ids:

* https://repo1.maven.org/maven2/com/exasol/import-export-udf-common-scala_2.12/
* https://repo1.maven.org/maven2/com/exasol/import-export-udf-common-scala_2.13/


## Bugfix

* #36: Fixed Maven Central deployment

## Dependency Updates
2 changes: 1 addition & 1 deletion pk_generated_parent.pom
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.exasol</groupId>
<artifactId>import-export-udf-common-scala-generated-parent</artifactId>
<version>0.4.1</version>
<version>0.4.2</version>
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.exasol</groupId>
<artifactId>import-export-udf-common-scala</artifactId>
<version>0.4.1</version>
<version>0.4.2</version>
<name>Import Export UDF Common Scala</name>
<description>Common import export libraries used in Exasol user defined functions</description>
<url>https://github.com/exasol/import-export-udf-common-scala/</url>
Expand Down Expand Up @@ -398,7 +398,7 @@
<parent>
<artifactId>import-export-udf-common-scala-generated-parent</artifactId>
<groupId>com.exasol</groupId>
<version>0.4.1</version>
<version>0.4.2</version>
<relativePath>pk_generated_parent.pom</relativePath>
</parent>
</project>
</project>