Skip to content

Commit

Permalink
Add full publishing information
Browse files Browse the repository at this point in the history
  • Loading branch information
ejboucher committed Jun 20, 2024
1 parent 0946245 commit 1fac927
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:

- name: Publish to Maven Central
env:
ORG_GRADLE_PROJECT_AuthSDKUsername: ${{ secrets.SONATYPE_ACCOUNT_USERNAME }}
ORG_GRADLE_PROJECT_AuthSDKPassword: ${{ secrets.SONATYPE_ACCOUNT_PASSWORD }}
ORG_GRADLE_PROJECT_TrackingSDKUsername: ${{ secrets.SONATYPE_ACCOUNT_USERNAME }}
ORG_GRADLE_PROJECT_TrackingSDKPassword: ${{ secrets.SONATYPE_ACCOUNT_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SONATYPE_ACCOUNT_GPG_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SONATYPE_ACCOUNT_GPG_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SONATYPE_ACCOUNT_GPG_KEY_PASSWORD }}
run: ./gradlew publishAllPublicationsToAuthSDKRepository
run: ./gradlew publishAllPublicationsToTrackingSDKRepository
30 changes: 20 additions & 10 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,27 @@ plugins {
id("com.vanniktech.maven.publish") version "0.27.0"
}

publishing {
repositories {
maven {
name = "TrackingSDK"
url = uri("https://aws.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials(PasswordCredentials::class)
}
}
}

mavenPublishing {
publishToMavenCentral(SonatypeHost.DEFAULT, automaticRelease = true)
signAllPublications()

coordinates("software.amazon.location", "tracking", "0.2.4")

pom {
name.set("My Library")
description.set("A description of what my library does.")
inceptionYear.set("2020")
url.set("https://github.com/username/mylibrary/")
name.set("Amazon Location Service Mobile Tracking SDK for Android")
description.set("These utilities help you when making Amazon Location Service API calls from your Android applications. This library uses the AWS SDK to call tracking APIs.")
inceptionYear.set("2024")
url.set("https://github.com/aws-geospatial/amazon-location-mobile-tracking-sdk-android")
licenses {
license {
name.set("The Apache License, Version 2.0")
Expand All @@ -27,15 +37,15 @@ mavenPublishing {
}
developers {
developer {
id.set("username")
name.set("User Name")
url.set("https://github.com/username/")
id.set("aws-geospatial")
name.set("AWS Geospatial")
url.set("https://github.com/aws-geospatial")
}
}
scm {
url.set("https://github.com/username/mylibrary/")
connection.set("scm:git:git://github.com/username/mylibrary.git")
developerConnection.set("scm:git:ssh://[email protected]/username/mylibrary.git")
url.set("https://github.com/aws-geospatial/amazon-location-mobile-tracking-sdk-android")
connection.set("scm:git:git://github.com/aws-geospatial/amazon-location-mobile-tracking-sdk-android")
developerConnection.set("scm:git:ssh://[email protected]/aws-geospatial/amazon-location-mobile-tracking-sdk-android")
}
}
}
Expand Down

0 comments on commit 1fac927

Please sign in to comment.