-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable publishing of digital-asset-links-android to OSSRH
- Loading branch information
Showing
3 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
plugins { | ||
id 'com.android.library' | ||
id 'com.google.protobuf' version "0.8.19" | ||
id 'maven-publish' | ||
id 'signing' | ||
} | ||
|
||
android { | ||
|
@@ -43,6 +45,63 @@ android { | |
} | ||
} | ||
} | ||
|
||
publishing { | ||
singleVariant('release') { | ||
withSourcesJar() | ||
withJavadocJar() | ||
} | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
release(MavenPublication) { | ||
groupId = group | ||
artifactId = 'digital-asset-links-android' | ||
pom { | ||
name = 'Digital Asset Links for Android' | ||
description = 'An implementation of Digital Asset Links for verifying Android packages against a domain hosting asset links' | ||
url = 'https://github.com/solana-mobile/digital-asset-links-android' | ||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
name = 'Solana Mobile Engineering' | ||
email = '[email protected]' | ||
organization = 'Solana Mobile Inc.' | ||
organizationUrl = 'https://solanamobile.com' | ||
} | ||
} | ||
organization { | ||
name = 'Solana Mobile Inc.' | ||
url = 'https://solanamobile.com' | ||
} | ||
scm { | ||
connection = 'scm:git:git://github.com/solana-mobile/digital-asset-links-android.git' | ||
developerConnection = 'scm:git:ssh://github.com/solana-mobile/digital-asset-links-android.git' | ||
url = 'https://github.com/solana-mobile/digital-asset-links-android/tree/main' | ||
} | ||
} | ||
|
||
afterEvaluate { | ||
from components.release | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
// Signing private key and password provided by ORG_GRADLE_PROJECT_signingKey and | ||
// ORG_GRADLE_PROJECT_signingPassword, respectively | ||
def signingKey = findProperty('signingKey') | ||
def signingPassword = findProperty('signingPassword') | ||
useInMemoryPgpKeys(signingKey, signingPassword) | ||
sign publishing.publications.release | ||
} | ||
|
||
protobuf { | ||
|