Skip to content

Commit

Permalink
JUCX: publish SNAPHOT and RELEASE jars to maven cental.
Browse files Browse the repository at this point in the history
  • Loading branch information
petro-rudenko committed Dec 17, 2019
1 parent 05d2c5e commit 437649b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bindings/java/pom.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.openucx</groupId>
<artifactId>jucx</artifactId>
<version>@VERSION@</version>
<version>@VERSION@-SNAPSHOT</version>
<packaging>jar</packaging>
<name>jucx</name>
<url>https://github.com/openucx/ucx</url>
Expand Down
9 changes: 4 additions & 5 deletions bindings/java/src/main/native/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ libjucx_la_SOURCES = context.cc \

libjucx_la_CXXFLAGS = -fPIC -DPIC -Werror

libjucx_la_LIBADD = $(topdir)/src/ucs/libucs.la \
$(topdir)/src/uct/libuct.la \
$(topdir)/src/ucm/libucm.la \
$(topdir)/src/ucp/libucp.la

libjucx_la_DEPENDENCIES = Makefile.am Makefile.in Makefile

# Compile Java source code and pack to jar
Expand All @@ -74,6 +69,10 @@ install-data-hook: package
clean-local:
-rm -rf $(java_build_dir)

# Publish JUCX jar to maven central
publish:
$(MVNCMD) deploy -DskipTests

test:
$(MVNCMD) test -DargLine="-XX:OnError='cat hs_err_pid%p.log'"
docs:
Expand Down
12 changes: 11 additions & 1 deletion buildlib/azure-pipelines-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,23 @@ stages:
- bash: ./autogen.sh
displayName: Setup autotools

- bash: sed -i -e 's/@VERSION@-SNAPSHOT/@VERSION@/g' bindings/java/pom.xml.in
displayName: Set JUCX release version

- bash: |
set -eE
gcc --version
./contrib/configure-release
./contrib/configure-release --with-java
./contrib/buildrpm.sh -s -t -b
displayName: Build tarball
- bash: |
set -eE
gcc --version
make -C bindings/java/src/main/native/Makefile
make -C bindings/java/src/main/native/Makefile publish
displayName: Make and publish JUCX release jar
- task: GithubRelease@0
displayName: Create/edit GitHub Draft Release
inputs:
Expand Down
16 changes: 16 additions & 0 deletions buildlib/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,22 @@ stages:
./contrib/buildrpm.sh -s -t -b
displayName: Build tarball
# Test RPM build
- job: publish_jucx
displayName: Publish JUCX SNAPSHOT artifact to maven central
container: fedora
steps:
- bash: ./autogen.sh
displayName: Setup autotools

- bash: |
set -eE
gcc --version
./contrib/configure-release --with-java
make -C bindings/java/src/main/native/
make -C bindings/java/src/main/native/ publish
displayName: Make and publish JUCX jar
- stage: Tests
dependsOn: [Codestyle]
jobs:
Expand Down

0 comments on commit 437649b

Please sign in to comment.