Skip to content

Commit

Permalink
Merge pull request glencoesoftware#73 from melissalinkert/publish
Browse files Browse the repository at this point in the history
Copy Appveyor publishing settings from bioformats2raw
  • Loading branch information
chris-allan authored Mar 15, 2022
2 parents c108c2a + 334609f commit fd18510
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
version: 0.3.1.{build}

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

image: Ubuntu
stack: jdk 11

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
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'application'
id 'eclipse'
id 'maven-publish'
id 'checkstyle'
}

Expand Down Expand Up @@ -67,6 +68,24 @@ distributions {
}
}

publishing {
publications {
raw2ometiff(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 fd18510

Please sign in to comment.