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

Commit

Permalink
Merge branch 'master' into maven-central
Browse files Browse the repository at this point in the history
  • Loading branch information
twinklehawk committed Feb 14, 2020
2 parents 626b1cc + 95729ae commit fb26a6a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ jobs:
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: ./gradlew build publish -x test
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
run: ./gradlew build publish -x test -PrunSigning=true
48 changes: 41 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
/*
* The MIT License (MIT)
* Copyright (c) 2017 Sybit GmbH
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
*/

plugins {
id 'java-library'
id 'jacoco'
id 'signing'
id 'maven-publish'
id 'io.freefair.lombok' version '4.1.6'
}
Expand Down Expand Up @@ -72,6 +66,46 @@ publishing {
maven(MavenPublication) {
artifactId rootProject.name
from components.java

pom {
name = 'com.tryadhawk:airtable-java'
description = 'Java client for the Airtable API'
url = 'https://github.com/adHawk/airtable-java'
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/licenses/mit-license.php'
}
}
developers {
developer {
id = 'cwilbur12'
name = 'Cory Wilbur'
email = 'cory.wilbur@tryadhawk.com'
}
developer {
id = 'twinklehawk'
name = 'Alex Daidone'
email = 'alex.daidone@tryadhawk.com'
}
}
scm {
connection = 'scm:git:git@github.com:adHawk/airtable-java.git'
developerConnection = 'scm:git:git@github.com:adHawk/airtable-java.git'
url = 'https://github.com/adHawk/airtable-java'
}
}
}
}
}

ext.runSigning = project.hasProperty('runSigning') && runSigning.toBoolean()
tasks.withType(Sign) {
onlyIf { runSigning }
}
signing {
def signingKey = System.getenv('SIGNING_KEY')
def signingPassword = System.getenv('SIGNING_PASSWORD')
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.maven
}

0 comments on commit fb26a6a

Please sign in to comment.