-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from pseudoankit/publish-maven-central-v2
Publish maven central v2
- Loading branch information
Showing
4 changed files
with
33 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,20 +20,4 @@ kotlin.code.style=official | |
# Enables namespacing of each library's R class so that its R class includes only the | ||
# resources declared in the library itself and none from the library's dependencies, | ||
# thereby reducing the size of the R class for that library | ||
android.nonTransitiveRClass=true | ||
# Maven details | ||
VERSION_NAME=1.0.0 | ||
VERSION_CODE=1 | ||
GROUP=io.github.pseudoankit | ||
POM_DESCRIPTION=Compose library to add coachmark | ||
POM_URL=https://github.com/pseudoankit/coachmark | ||
POM_SCM_CONNECTION=scm:[email protected]:pseudoankit/coachmark.git | ||
POM_DEVELOPER_ID=pseudoankit | ||
POM_DEVELOPER_NAME=Ankit Kumar | ||
POM_DEVELOPER_EMAIL=[email protected] | ||
#**** | ||
signing.keyId= | ||
signing.password= | ||
signing.secretKeyRingFile= | ||
ossrhUsername= | ||
ossrhPassword= | ||
android.nonTransitiveRClass=true |
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 |
---|---|---|
|
@@ -44,19 +44,16 @@ afterEvaluate { | |
|
||
from components.release | ||
|
||
// artifact androidJavadocJar | ||
// artifact javaSourcesJar | ||
|
||
groupId GROUP | ||
groupId GROUP_ID | ||
version VERSION_NAME | ||
pom { | ||
name = artifactId | ||
description = POM_DESCRIPTION | ||
url = POM_URL | ||
licenses { | ||
license { | ||
name = 'The Apache Software License, Version 2.0' | ||
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt' | ||
name = LICENCE_NAME | ||
url = LICENCE_URL | ||
} | ||
} | ||
scm { | ||
|
@@ -66,9 +63,9 @@ afterEvaluate { | |
} | ||
developers { | ||
developer { | ||
id = POM_DEVELOPER_ID | ||
name = POM_DEVELOPER_NAME | ||
email = POM_DEVELOPER_EMAIL | ||
id = 'pseudoankit' | ||
name = 'Ankit Kumar' | ||
email = '[email protected]' | ||
} | ||
} | ||
} | ||
|
@@ -84,8 +81,8 @@ afterEvaluate { | |
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/" | ||
|
||
credentials { | ||
username ossrhUsername | ||
password ossrhPassword | ||
username OSS_USERNAME | ||
password OSS_PASSWORD | ||
} | ||
} | ||
|
||
|
@@ -98,14 +95,31 @@ afterEvaluate { | |
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
|
||
credentials { | ||
username ossrhUsername | ||
password ossrhPassword | ||
username OSS_USERNAME | ||
password OSS_PASSWORD | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
ext { | ||
GROUP_ID = "io.github.pseudoankit" | ||
|
||
POM_DESCRIPTION = "Compose library to add coachmark" | ||
POM_URL = "https://github.com/pseudoankit/coachmark" | ||
POM_SCM_CONNECTION = "scm:[email protected]:pseudoankit/coachmark.git" | ||
|
||
OSS_USERNAME = System.getenv("OSS_USERNAME") | ||
OSS_PASSWORD = System.getenv("OSS_PASSWORD") | ||
ext."signing.keyId" = System.getenv("SIGNING_KEY_ID") | ||
ext."signing.password" = System.getenv("SIGNING_PASSWORD") | ||
ext."signing.secretKeyRingFile" = System.getenv("SIGNING_SECRET_KEY_RING_FILE") | ||
|
||
LICENCE_NAME = "The Apache Software License, Version 2.0" | ||
LICENCE_URL = "https://www.apache.org/licenses/LICENSE-2.0.txt" | ||
} | ||
|
||
signing { | ||
sign publishing.publications | ||
} |
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