Skip to content

Commit

Permalink
Publish artifacts to Nexus
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-allan committed May 20, 2020
1 parent 2bdef00 commit 371e368
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
11 changes: 9 additions & 2 deletions appveyor.yml
@@ -1,11 +1,17 @@
version: 0.2.3.{build}

environment:
ARTIFACTORY_USERNAME:
secure: ZVwlgtk8NtZWeEqpYjR9d8NXeX+xMnuCzgITBKRhtD8=
ARTIFACTORY_PASSWORD:
secure: O6ThMzLvtSOPLV0U5yFOkl8G1tFrFOGZEpKI4NSD12c=

image: Ubuntu
stack: jdk 11

install:
- sh: sudo apt-get update
- sh: sudo apt-get install -y libblosc1
- sh: sudo apt-get update
- sh: sudo apt-get install -y libblosc1

build: off

Expand All @@ -14,6 +20,7 @@ build_script:

after_test:
- ./gradlew distZip
- if [ -z "$APPVEYOR_PULL_REQUEST_NUMBER" ]; then ./gradlew -PArtifactoryUserName=${ARTIFACTORY_USERNAME} -PArtifactoryPassword=${ARTIFACTORY_PASSWORD} publish; fi

artifacts:
- path: 'build\distributions\*.zip'
19 changes: 19 additions & 0 deletions build.gradle
@@ -1,6 +1,7 @@
plugins {
id 'application'
id 'eclipse'
id 'maven-publish'
id 'checkstyle'
}

Expand Down Expand Up @@ -58,6 +59,24 @@ distributions {
}
}

publishing {
publications {
bioformats2raw(MavenPublication) {
from components.java
}
}

repositories {
maven {
url 'https://repo.glencoesoftware.com/repository/bioformats2raw2ometiff/'
credentials {
username = project.properties.ArtifactoryUserName
password = project.properties.ArtifactoryPassword
}
}
}
}

checkstyle {
toolVersion = "8.26"
}

0 comments on commit 371e368

Please sign in to comment.