Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #17 from twinklehawk/maven-central
Browse files Browse the repository at this point in the history
Publish to maven central
  • Loading branch information
twinklehawk authored Feb 14, 2020
2 parents 95729ae + fb26a6a commit bf510d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
java-version: 1.8
- name: Build and publish
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
run: ./gradlew build publish -x test -PrunSigning=true
11 changes: 4 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,11 @@ jacocoTestReport {
publishing {
repositories {
maven {
name = 'bintray'
def bintrayUsername = 'twinklehawk'
def bintrayRepoName = 'maven'
def bintrayPackageName = 'com.tryadhawk.airtable-java'
url = "https://api.bintray.com/maven/$bintrayUsername/$bintrayRepoName/$bintrayPackageName/;publish=1"
name = 'ossrh'
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username = System.getenv('BINTRAY_USER')
password = System.getenv('BINTRAY_API_KEY')
username = System.getenv('SONATYPE_USER')
password = System.getenv('SONATYPE_PASSWORD')
}
}
}
Expand Down

0 comments on commit bf510d0

Please sign in to comment.