-
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.
- Loading branch information
Showing
11 changed files
with
56 additions
and
152 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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
import com.vanniktech.maven.publish.SonatypeHost | ||
|
||
plugins { | ||
id("root.publication") | ||
// trick: for the same plugin versions in all sub-modules | ||
alias(libs.plugins.androidLibrary) apply false | ||
alias(libs.plugins.kotlinMultiplatform) apply false | ||
alias(libs.plugins.kotlinAndroid) apply false | ||
alias(libs.plugins.androidApplication) apply false | ||
alias(libs.plugins.compose.compiler) apply false | ||
alias(libs.plugins.kotlin.plugin.serialization) | ||
alias(libs.plugins.maven.publish) apply false | ||
alias(libs.plugins.kotlin.parcelize) apply false | ||
alias(libs.plugins.jetbrains.kotlin.jvm) apply false | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
convention-plugins/src/main/kotlin/module.publication.gradle.kts
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
convention-plugins/src/main/kotlin/root.publication.gradle.kts
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,28 +9,4 @@ kotlin.js.compiler=ir | |
kotlin.mpp.enableCInteropCommonization=true | ||
#Android | ||
android.useAndroidX=true | ||
android.nonTransitiveRClass=true | ||
|
||
# Region: Android Publish Info Start | ||
GROUP=com.komoju | ||
POM_ARTIFACT_ID=android-sdk | ||
VERSION_NAME=0.0.1 | ||
|
||
POM_NAME=KOMOJU® Android SDK | ||
POM_DESCRIPTION=Native Komoju Mobile SDK | ||
POM_INCEPTION_YEAR=2024 | ||
POM_URL=https://github.com/degica/komoju-mobile-sdk/ | ||
|
||
POM_LICENSE_NAME=MIT License | ||
POM_LICENSE_URL=https://github.com/degica/komoju-mobile-sdk/blob/main/LICENSE | ||
POM_LICENSE_DIST=repo | ||
|
||
POM_SCM_URL=https://github.com/degica/komoju-mobile-sdk/ | ||
POM_SCM_CONNECTION=scm:git:git://github.com/degica/komoju-mobile-sdk.git | ||
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/degica/komoju-mobile-sdk.git | ||
|
||
POM_DEVELOPER_ID=AmniX | ||
POM_DEVELOPER_NAME=Aman Tonk | ||
POM_DEVELOPER_URL=https://github.com/AmniX/ | ||
|
||
# Region: Android Publish Info Ends | ||
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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
pluginManagement { | ||
includeBuild("convention-plugins") | ||
repositories { | ||
google() | ||
mavenCentral() | ||
|
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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import com.vanniktech.maven.publish.SonatypeHost | ||
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi | ||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
|
||
plugins { | ||
alias(libs.plugins.kotlinMultiplatform) | ||
alias(libs.plugins.androidLibrary) | ||
alias(libs.plugins.kotlin.plugin.serialization) | ||
id("module.publication") | ||
alias(libs.plugins.maven.publish) | ||
} | ||
|
||
kotlin { | ||
|
@@ -43,7 +44,7 @@ kotlin { | |
} | ||
|
||
android { | ||
namespace = "com.degica.komoju.mobile.sdk" | ||
namespace = "com.komoju.mobile.sdk" | ||
compileSdk = | ||
libs.versions.android.compileSdk | ||
.get() | ||
|
@@ -59,3 +60,34 @@ android { | |
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
} | ||
|
||
mavenPublishing { | ||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) | ||
signAllPublications() | ||
coordinates(groupId = "com.komoju.mobile.sdk", artifactId = "shared", version = "0.0.1") | ||
pom { | ||
name.set("Komoju Mobile SDK") | ||
description.set("Komoju Payment SDK for Mobile") | ||
inceptionYear.set("2024") | ||
url.set("https://github.com/degica/komoju-mobile-sdk/") | ||
licenses { | ||
license { | ||
name.set("MIT") | ||
url.set("https://github.com/degica/komoju-mobile-sdk/blob/main/LICENSE") | ||
distribution.set("repo") | ||
} | ||
} | ||
developers { | ||
developer { | ||
id.set("AmniX") | ||
name.set("Aman Tonk") | ||
url.set("https://github.com/AmniX/") | ||
} | ||
} | ||
scm { | ||
url.set("https://github.com/degica/komoju-mobile-sdk/") | ||
connection.set("scm:git:git://github.com/degica/komoju-mobile-sdk.git") | ||
developerConnection.set("scm:git:ssh://[email protected]/degica/komoju-mobile-sdk.git") | ||
} | ||
} | ||
} |