-
Notifications
You must be signed in to change notification settings - Fork 0
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 #7 from PAYONE-GmbH/feature/publishing_to_maven
fix publishing to maven
- Loading branch information
Showing
4 changed files
with
36 additions
and
37 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 |
---|---|---|
|
@@ -20,4 +20,25 @@ 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 | ||
android.nonTransitiveRClass=true | ||
|
||
GROUP=io.github.payone-gmbh | ||
POM_ARTIFACT_ID=pcp-client-android-sdk | ||
VERSION_NAME=0.0.1 | ||
|
||
POM_NAME=PCP-CLIENT-SDK-ANDROID | ||
POM_DESCRIPTION=The PAYONE Client Android SDK | ||
POM_INCEPTION_YEAR=2024 | ||
POM_URL=https://github.com/PAYONE-GmbH/PCP-client-android-SDK | ||
|
||
POM_LICENSE_NAME=MIT License | ||
POM_LICENSE_URL=https://opensource.org/license/mit/ | ||
POM_LICENSE_DIST=repo | ||
|
||
POM_SCM_URL=https://github.com/PAYONE-GmbH/PCP-client-android-SDK/ | ||
POM_SCM_CONNECTION=scm:git:git://github.com/PAYONE-GmbH/PCP-client-android-SDK.git | ||
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/PAYONE-GmbH/PCP-client-android-SDK.git | ||
|
||
POM_DEVELOPER_ID=PAYONE-GmbH | ||
POM_DEVELOPER_NAME=PAYONE Intergrations | ||
POM_DEVELOPER_URL=https://github.com/PAYONE-GmbH/ |
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,7 +5,8 @@ plugins { | |
alias(libs.plugins.jetbrains.kotlin.android) | ||
alias(libs.plugins.sonar) | ||
kotlin("plugin.serialization") version "1.9.0" | ||
id("com.vanniktech.maven.publish") version "0.29.0" | ||
id("com.vanniktech.maven.publish") version "0.28.0" | ||
id("com.gradleup.nmcp") version "0.0.7" | ||
} | ||
|
||
android { | ||
|
@@ -53,36 +54,13 @@ dependencies { | |
debugImplementation("androidx.fragment:fragment-testing:1.5.7") | ||
} | ||
|
||
mavenPublishing { | ||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) | ||
nmcp { | ||
publishAllPublications { | ||
val keyUsername = "SONATYPE_USERNAME" | ||
val keyPassword = "SONATYPE_PASSWORD" | ||
username = findProperty(keyUsername)?.toString() ?: System.getenv(keyUsername) | ||
password = findProperty(keyPassword)?.toString() ?: System.getenv(keyPassword) | ||
|
||
signAllPublications() | ||
|
||
coordinates("io.github.payone-gmbh", "pcp-client-android-sdk", "0.0.1") | ||
|
||
pom { | ||
name.set("PCP-CLIENT-SDK-ANDROID") | ||
description.set("The PAYONE Client Android SDK") | ||
inceptionYear.set("2024") | ||
url.set("https://github.com/PAYONE-GmbH/PCP-client-android-SDK") | ||
licenses { | ||
license { | ||
name.set("MIT License") | ||
url.set("https://opensource.org/license/mit/") | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
name.set("Djordje Nikolic") | ||
email.set("[email protected]") | ||
} | ||
} | ||
|
||
scm { | ||
url.set("https://github.com/PAYONE-GmbH/PCP-client-android-SDK") | ||
connection.set("scm:git:git://github.com/PAYONE-GmbH/PCP-client-android-SDK.git") | ||
developerConnection.set("scm:git:ssh://[email protected]/PAYONE-GmbH/PCP-client-android-SDK.git") | ||
} | ||
publicationType = "USER_MANAGED" | ||
} | ||
} |