From d5e8e6aa58fc055eaa6be9b1514359349581fd67 Mon Sep 17 00:00:00 2001 From: "a.nikolaev" Date: Mon, 12 Apr 2021 19:14:26 +0500 Subject: [PATCH] migrate publication from jcenter to mavencentral --- build.gradle | 1 - publishMavenCentral.gradle | 96 ++++++++++++++++++++++ xsolla-inventory-sdk/build.gradle | 10 ++- xsolla-inventory-sdk/publish.gradle | 60 -------------- xsolla-login-sdk-facebook/build.gradle | 10 ++- xsolla-login-sdk-facebook/publish.gradle | 60 -------------- xsolla-login-sdk-google/build.gradle | 10 ++- xsolla-login-sdk-google/publish.gradle | 60 -------------- xsolla-login-sdk-qq/build.gradle | 10 ++- xsolla-login-sdk-qq/publish.gradle | 60 -------------- xsolla-login-sdk-wechat/build.gradle | 10 ++- xsolla-login-sdk-wechat/publish.gradle | 60 -------------- xsolla-login-sdk/build.gradle | 10 ++- xsolla-login-sdk/publish.gradle | 60 -------------- xsolla-payments-sdk-playfab/build.gradle | 10 ++- xsolla-payments-sdk-playfab/publish.gradle | 60 -------------- xsolla-payments-sdk/build.gradle | 11 ++- xsolla-payments-sdk/publish.gradle | 60 -------------- xsolla-store-sdk/build.gradle | 9 +- xsolla-store-sdk/publish.gradle | 60 -------------- 20 files changed, 176 insertions(+), 551 deletions(-) create mode 100644 publishMavenCentral.gradle delete mode 100644 xsolla-inventory-sdk/publish.gradle delete mode 100644 xsolla-login-sdk-facebook/publish.gradle delete mode 100644 xsolla-login-sdk-google/publish.gradle delete mode 100644 xsolla-login-sdk-qq/publish.gradle delete mode 100644 xsolla-login-sdk-wechat/publish.gradle delete mode 100644 xsolla-login-sdk/publish.gradle delete mode 100644 xsolla-payments-sdk-playfab/publish.gradle delete mode 100644 xsolla-payments-sdk/publish.gradle delete mode 100644 xsolla-store-sdk/publish.gradle diff --git a/build.gradle b/build.gradle index d98efacd..207cbcc0 100644 --- a/build.gradle +++ b/build.gradle @@ -30,7 +30,6 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:4.1.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.1" classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.4.20' } diff --git a/publishMavenCentral.gradle b/publishMavenCentral.gradle new file mode 100644 index 00000000..8914b5ad --- /dev/null +++ b/publishMavenCentral.gradle @@ -0,0 +1,96 @@ +apply plugin: 'maven-publish' +apply plugin: 'signing' + +task androidSourcesJar(type: Jar) { + archiveClassifier.set('sources') + from android.sourceSets.main.java.srcDirs + from android.sourceSets.main.kotlin.srcDirs +} + +artifacts { + archives androidSourcesJar +} + +group = PUBLISH_GROUP_ID +version = PUBLISH_VERSION + +ext["signing.keyId"] = '' +ext["signing.password"] = '' +ext["signing.secretKeyRingFile"] = '' +ext["ossrhUsername"] = '' +ext["ossrhPassword"] = '' + +File localPropertiesFile = project.rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + Properties properties = new Properties() + properties.load(new FileInputStream(localPropertiesFile)) + properties.each { name, value -> + ext[name] = value + } +} else { + 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') + ext["ossrhUsername"] = System.getenv('OSSRH_USERNAME') + ext["ossrhPassword"] = System.getenv('OSSRH_PASSWORD') +} + +publishing { + publications { + release(MavenPublication) { + groupId PUBLISH_GROUP_ID + artifactId PUBLISH_ARTIFACT_ID + version PUBLISH_VERSION + + artifact("$buildDir/outputs/aar/${project.getName()}-release.aar") + + artifact androidSourcesJar + + pom { + name = PUBLISH_NAME + description = PUBLISH_DESCRIPTION + url = 'https://github.com/xsolla/store-android-sdk' + organization { + name = 'Xsolla' + url = 'https://xsolla.com' + } + licenses { + license { + name = 'The Apache Software License, Version 2.0' + url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' + } + } + scm { + connection = 'https://github.com/xsolla/store-android-sdk.git' + developerConnection = 'https://github.com/xsolla/store-android-sdk.git' + url = 'https://github.com/xsolla/store-android-sdk.git' + } + withXml { + def dependenciesNode = asNode().appendNode('dependencies') + + project.configurations.implementation.allDependencies.each { + def dependencyNode = dependenciesNode.appendNode('dependency') + dependencyNode.appendNode('groupId', it.group) + dependencyNode.appendNode('artifactId', it.name) + dependencyNode.appendNode('version', it.version) + } + } + } + } + } + repositories { + maven { + name = "sonatype" + url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" + + credentials { + username ossrhUsername + password ossrhPassword + } + } + } +} + +signing { + sign publishing.publications +} \ No newline at end of file diff --git a/xsolla-inventory-sdk/build.gradle b/xsolla-inventory-sdk/build.gradle index 0149316f..330070a2 100644 --- a/xsolla-inventory-sdk/build.gradle +++ b/xsolla-inventory-sdk/build.gradle @@ -44,4 +44,12 @@ dokkaHtml.configure { } } -apply from: 'publish.gradle' \ No newline at end of file +ext { + PUBLISH_GROUP_ID = 'com.xsolla.android' + PUBLISH_ARTIFACT_ID = 'inventory' + PUBLISH_VERSION = inventory_sdk_version_name + PUBLISH_NAME = 'Xsolla Inventory SDK for Android' + PUBLISH_DESCRIPTION = 'Xsolla Inventory SDK for Android is used to integrate applications based on Android with Player Inventory for managing: user inventory, virtual currency balance, cross-platform inventory' +} + +apply from: "${rootDir}/publishMavenCentral.gradle" \ No newline at end of file diff --git a/xsolla-inventory-sdk/publish.gradle b/xsolla-inventory-sdk/publish.gradle deleted file mode 100644 index 891e68ce..00000000 --- a/xsolla-inventory-sdk/publish.gradle +++ /dev/null @@ -1,60 +0,0 @@ -apply plugin: 'maven-publish' -apply plugin: 'com.jfrog.bintray' - -task androidSourcesJar(type: Jar) { - archiveClassifier.set('sources') - from android.sourceSets.main.java.srcDirs -} - -afterEvaluate { - publishing { - publications { - release(MavenPublication) { - from components.release - artifact androidSourcesJar - - groupId = 'com.xsolla.android' - artifactId = 'inventory' - version = android.defaultConfig.versionName - - pom { - name = 'Xsolla Inventory Android SDK' - description = 'Xsolla Inventory Android SDK is used to integrate Xsolla Inventory' - url = 'https://github.com/xsolla/store-android-sdk' - organization { - name = 'Xsolla' - url = 'https://xsolla.com' - } - licenses { - license { - name = 'The Apache Software License, Version 2.0' - url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - scm { - connection = 'https://github.com/xsolla/store-android-sdk.git' - developerConnection = 'https://github.com/xsolla/store-android-sdk.git' - url = 'https://github.com/xsolla/store-android-sdk.git' - } - } - } - } - } - bintray { - user = System.getenv('BINTRAY_USER') - key = System.getenv('BINTRAY_KEY') - publications = ['release'] - pkg { - repo = 'maven' - name = 'xsolla-inventory' - vcsUrl = 'https://github.com/xsolla/store-android-sdk' - licenses = ['Apache-2.0'] - - publish = true - - version { - name = android.defaultConfig.versionName - } - } - } -} \ No newline at end of file diff --git a/xsolla-login-sdk-facebook/build.gradle b/xsolla-login-sdk-facebook/build.gradle index 565d80bd..9002ec43 100644 --- a/xsolla-login-sdk-facebook/build.gradle +++ b/xsolla-login-sdk-facebook/build.gradle @@ -30,4 +30,12 @@ dependencies { api 'com.facebook.android:facebook-login:8.1.0' } -apply from: 'publish.gradle' \ No newline at end of file +ext { + PUBLISH_GROUP_ID = 'com.xsolla.android' + PUBLISH_ARTIFACT_ID = 'login-facebook' + PUBLISH_VERSION = login_sdk_version_name + PUBLISH_NAME = 'Xsolla Login SDK for Android' + PUBLISH_DESCRIPTION = 'Xsolla Login SDK for Android is used to integrate Xsolla Login, a single sign-on tool that uses API methods to authenticate and secure user passwords. This creates a seamless one-click registration experience players can use for fast and safe transactions across all of your games.' +} + +apply from: "${rootDir}/publishMavenCentral.gradle" \ No newline at end of file diff --git a/xsolla-login-sdk-facebook/publish.gradle b/xsolla-login-sdk-facebook/publish.gradle deleted file mode 100644 index 29b5bc9e..00000000 --- a/xsolla-login-sdk-facebook/publish.gradle +++ /dev/null @@ -1,60 +0,0 @@ -apply plugin: 'maven-publish' -apply plugin: 'com.jfrog.bintray' - -task androidSourcesJar(type: Jar) { - archiveClassifier.set('sources') - from android.sourceSets.main.java.srcDirs -} - -afterEvaluate { - publishing { - publications { - release(MavenPublication) { - from components.release - artifact androidSourcesJar - - groupId = 'com.xsolla.android' - artifactId = 'login-facebook' - version = android.defaultConfig.versionName - - pom { - name = 'Xsolla Login Android SDK' - description = 'Xsolla Login Android SDK is used to integrate Xsolla Login, a single sign-on tool that uses API methods to authenticate and secure user passwords. This creates a seamless one-click registration experience players can use for fast and safe transactions across all of your games.' - url = 'https://github.com/xsolla/store-android-sdk' - organization { - name = 'Xsolla' - url = 'https://xsolla.com' - } - licenses { - license { - name = 'The Apache Software License, Version 2.0' - url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - scm { - connection = 'https://github.com/xsolla/store-android-sdk.git' - developerConnection = 'https://github.com/xsolla/store-android-sdk.git' - url = 'https://github.com/xsolla/store-android-sdk.git' - } - } - } - } - } - bintray { - user = System.getenv('BINTRAY_USER') - key = System.getenv('BINTRAY_KEY') - publications = ['release'] - pkg { - repo = 'maven' - name = 'xsolla-login-facebook' - vcsUrl = 'https://github.com/xsolla/store-android-sdk' - licenses = ['Apache-2.0'] - - publish = true - - version { - name = android.defaultConfig.versionName - } - } - } -} \ No newline at end of file diff --git a/xsolla-login-sdk-google/build.gradle b/xsolla-login-sdk-google/build.gradle index 6234b1db..fc69b77a 100644 --- a/xsolla-login-sdk-google/build.gradle +++ b/xsolla-login-sdk-google/build.gradle @@ -31,4 +31,12 @@ dependencies { api 'com.google.android.gms:play-services-auth:18.0.0' } -apply from: 'publish.gradle' \ No newline at end of file +ext { + PUBLISH_GROUP_ID = 'com.xsolla.android' + PUBLISH_ARTIFACT_ID = 'login-google' + PUBLISH_VERSION = login_sdk_version_name + PUBLISH_NAME = 'Xsolla Login SDK for Android' + PUBLISH_DESCRIPTION = 'Xsolla Login SDK for Android is used to integrate Xsolla Login, a single sign-on tool that uses API methods to authenticate and secure user passwords. This creates a seamless one-click registration experience players can use for fast and safe transactions across all of your games.' +} + +apply from: "${rootDir}/publishMavenCentral.gradle" \ No newline at end of file diff --git a/xsolla-login-sdk-google/publish.gradle b/xsolla-login-sdk-google/publish.gradle deleted file mode 100644 index 31800039..00000000 --- a/xsolla-login-sdk-google/publish.gradle +++ /dev/null @@ -1,60 +0,0 @@ -apply plugin: 'maven-publish' -apply plugin: 'com.jfrog.bintray' - -task androidSourcesJar(type: Jar) { - archiveClassifier.set('sources') - from android.sourceSets.main.java.srcDirs -} - -afterEvaluate { - publishing { - publications { - release(MavenPublication) { - from components.release - artifact androidSourcesJar - - groupId = 'com.xsolla.android' - artifactId = 'login-google' - version = android.defaultConfig.versionName - - pom { - name = 'Xsolla Login Android SDK' - description = 'Xsolla Login Android SDK is used to integrate Xsolla Login, a single sign-on tool that uses API methods to authenticate and secure user passwords. This creates a seamless one-click registration experience players can use for fast and safe transactions across all of your games.' - url = 'https://github.com/xsolla/store-android-sdk' - organization { - name = 'Xsolla' - url = 'https://xsolla.com' - } - licenses { - license { - name = 'The Apache Software License, Version 2.0' - url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - scm { - connection = 'https://github.com/xsolla/store-android-sdk.git' - developerConnection = 'https://github.com/xsolla/store-android-sdk.git' - url = 'https://github.com/xsolla/store-android-sdk.git' - } - } - } - } - } - bintray { - user = System.getenv('BINTRAY_USER') - key = System.getenv('BINTRAY_KEY') - publications = ['release'] - pkg { - repo = 'maven' - name = 'xsolla-login-google' - vcsUrl = 'https://github.com/xsolla/store-android-sdk' - licenses = ['Apache-2.0'] - - publish = true - - version { - name = android.defaultConfig.versionName - } - } - } -} \ No newline at end of file diff --git a/xsolla-login-sdk-qq/build.gradle b/xsolla-login-sdk-qq/build.gradle index cbec98c7..0e4749fb 100644 --- a/xsolla-login-sdk-qq/build.gradle +++ b/xsolla-login-sdk-qq/build.gradle @@ -29,4 +29,12 @@ dependencies { api fileTree(dir: 'libs', include: ['*.jar']) } -apply from: 'publish.gradle' \ No newline at end of file +ext { + PUBLISH_GROUP_ID = 'com.xsolla.android' + PUBLISH_ARTIFACT_ID = 'login-qq' + PUBLISH_VERSION = login_sdk_version_name + PUBLISH_NAME = 'Xsolla Login SDK for Android' + PUBLISH_DESCRIPTION = 'Xsolla Login SDK for Android is used to integrate Xsolla Login, a single sign-on tool that uses API methods to authenticate and secure user passwords. This creates a seamless one-click registration experience players can use for fast and safe transactions across all of your games.' +} + +apply from: "${rootDir}/publishMavenCentral.gradle" \ No newline at end of file diff --git a/xsolla-login-sdk-qq/publish.gradle b/xsolla-login-sdk-qq/publish.gradle deleted file mode 100644 index 3953f9f7..00000000 --- a/xsolla-login-sdk-qq/publish.gradle +++ /dev/null @@ -1,60 +0,0 @@ -apply plugin: 'maven-publish' -apply plugin: 'com.jfrog.bintray' - -task androidSourcesJar(type: Jar) { - archiveClassifier.set('sources') - from android.sourceSets.main.java.srcDirs -} - -afterEvaluate { - publishing { - publications { - release(MavenPublication) { - from components.release - artifact androidSourcesJar - - groupId = 'com.xsolla.android' - artifactId = 'login-qq' - version = android.defaultConfig.versionName - - pom { - name = 'Xsolla Login Android SDK' - description = 'Xsolla Login Android SDK is used to integrate Xsolla Login, a single sign-on tool that uses API methods to authenticate and secure user passwords. This creates a seamless one-click registration experience players can use for fast and safe transactions across all of your games.' - url = 'https://github.com/xsolla/store-android-sdk' - organization { - name = 'Xsolla' - url = 'https://xsolla.com' - } - licenses { - license { - name = 'The Apache Software License, Version 2.0' - url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - scm { - connection = 'https://github.com/xsolla/store-android-sdk.git' - developerConnection = 'https://github.com/xsolla/store-android-sdk.git' - url = 'https://github.com/xsolla/store-android-sdk.git' - } - } - } - } - } - bintray { - user = System.getenv('BINTRAY_USER') - key = System.getenv('BINTRAY_KEY') - publications = ['release'] - pkg { - repo = 'maven' - name = 'xsolla-login-qq' - vcsUrl = 'https://github.com/xsolla/store-android-sdk' - licenses = ['Apache-2.0'] - - publish = true - - version { - name = android.defaultConfig.versionName - } - } - } -} \ No newline at end of file diff --git a/xsolla-login-sdk-wechat/build.gradle b/xsolla-login-sdk-wechat/build.gradle index 2cc49129..ffd3c2c0 100644 --- a/xsolla-login-sdk-wechat/build.gradle +++ b/xsolla-login-sdk-wechat/build.gradle @@ -30,4 +30,12 @@ dependencies { api 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.6.19' } -apply from: 'publish.gradle' \ No newline at end of file +ext { + PUBLISH_GROUP_ID = 'com.xsolla.android' + PUBLISH_ARTIFACT_ID = 'login-wechat' + PUBLISH_VERSION = login_sdk_version_name + PUBLISH_NAME = 'Xsolla Login SDK for Android' + PUBLISH_DESCRIPTION = 'Xsolla Login SDK for Android is used to integrate Xsolla Login, a single sign-on tool that uses API methods to authenticate and secure user passwords. This creates a seamless one-click registration experience players can use for fast and safe transactions across all of your games.' +} + +apply from: "${rootDir}/publishMavenCentral.gradle" \ No newline at end of file diff --git a/xsolla-login-sdk-wechat/publish.gradle b/xsolla-login-sdk-wechat/publish.gradle deleted file mode 100644 index ea65a40e..00000000 --- a/xsolla-login-sdk-wechat/publish.gradle +++ /dev/null @@ -1,60 +0,0 @@ -apply plugin: 'maven-publish' -apply plugin: 'com.jfrog.bintray' - -task androidSourcesJar(type: Jar) { - archiveClassifier.set('sources') - from android.sourceSets.main.java.srcDirs -} - -afterEvaluate { - publishing { - publications { - release(MavenPublication) { - from components.release - artifact androidSourcesJar - - groupId = 'com.xsolla.android' - artifactId = 'login-wechat' - version = android.defaultConfig.versionName - - pom { - name = 'Xsolla Login Android SDK' - description = 'Xsolla Login Android SDK is used to integrate Xsolla Login, a single sign-on tool that uses API methods to authenticate and secure user passwords. This creates a seamless one-click registration experience players can use for fast and safe transactions across all of your games.' - url = 'https://github.com/xsolla/store-android-sdk' - organization { - name = 'Xsolla' - url = 'https://xsolla.com' - } - licenses { - license { - name = 'The Apache Software License, Version 2.0' - url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - scm { - connection = 'https://github.com/xsolla/store-android-sdk.git' - developerConnection = 'https://github.com/xsolla/store-android-sdk.git' - url = 'https://github.com/xsolla/store-android-sdk.git' - } - } - } - } - } - bintray { - user = System.getenv('BINTRAY_USER') - key = System.getenv('BINTRAY_KEY') - publications = ['release'] - pkg { - repo = 'maven' - name = 'xsolla-login-wechat' - vcsUrl = 'https://github.com/xsolla/store-android-sdk' - licenses = ['Apache-2.0'] - - publish = true - - version { - name = android.defaultConfig.versionName - } - } - } -} \ No newline at end of file diff --git a/xsolla-login-sdk/build.gradle b/xsolla-login-sdk/build.gradle index a851f948..a1de6620 100644 --- a/xsolla-login-sdk/build.gradle +++ b/xsolla-login-sdk/build.gradle @@ -53,4 +53,12 @@ dokkaHtml.configure { } } -apply from: 'publish.gradle' \ No newline at end of file +ext { + PUBLISH_GROUP_ID = 'com.xsolla.android' + PUBLISH_ARTIFACT_ID = 'login' + PUBLISH_VERSION = login_sdk_version_name + PUBLISH_NAME = 'Xsolla Login SDK for Android' + PUBLISH_DESCRIPTION = 'Xsolla Login SDK for Android is used to integrate Xsolla Login, a single sign-on tool that uses API methods to authenticate and secure user passwords. This creates a seamless one-click registration experience players can use for fast and safe transactions across all of your games.' +} + +apply from: "${rootDir}/publishMavenCentral.gradle" \ No newline at end of file diff --git a/xsolla-login-sdk/publish.gradle b/xsolla-login-sdk/publish.gradle deleted file mode 100644 index c3ed8267..00000000 --- a/xsolla-login-sdk/publish.gradle +++ /dev/null @@ -1,60 +0,0 @@ -apply plugin: 'maven-publish' -apply plugin: 'com.jfrog.bintray' - -task androidSourcesJar(type: Jar) { - archiveClassifier.set('sources') - from android.sourceSets.main.java.srcDirs -} - -afterEvaluate { - publishing { - publications { - release(MavenPublication) { - from components.release - artifact androidSourcesJar - - groupId = 'com.xsolla.android' - artifactId = 'login' - version = android.defaultConfig.versionName - - pom { - name = 'Xsolla Login Android SDK' - description = 'Xsolla Login Android SDK is used to integrate Xsolla Login, a single sign-on tool that uses API methods to authenticate and secure user passwords. This creates a seamless one-click registration experience players can use for fast and safe transactions across all of your games.' - url = 'https://github.com/xsolla/store-android-sdk' - organization { - name = 'Xsolla' - url = 'https://xsolla.com' - } - licenses { - license { - name = 'The Apache Software License, Version 2.0' - url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - scm { - connection = 'https://github.com/xsolla/store-android-sdk.git' - developerConnection = 'https://github.com/xsolla/store-android-sdk.git' - url = 'https://github.com/xsolla/store-android-sdk.git' - } - } - } - } - } - bintray { - user = System.getenv('BINTRAY_USER') - key = System.getenv('BINTRAY_KEY') - publications = ['release'] - pkg { - repo = 'maven' - name = 'xsolla-login' - vcsUrl = 'https://github.com/xsolla/store-android-sdk' - licenses = ['Apache-2.0'] - - publish = true - - version { - name = android.defaultConfig.versionName - } - } - } -} \ No newline at end of file diff --git a/xsolla-payments-sdk-playfab/build.gradle b/xsolla-payments-sdk-playfab/build.gradle index c583bd82..70e2b820 100644 --- a/xsolla-payments-sdk-playfab/build.gradle +++ b/xsolla-payments-sdk-playfab/build.gradle @@ -33,4 +33,12 @@ dependencies { implementation 'com.playfab:client-sdk:0.107.200330' } -apply from: 'publish.gradle' \ No newline at end of file +ext { + PUBLISH_GROUP_ID = 'com.xsolla.android' + PUBLISH_ARTIFACT_ID = 'payments-playfab' + PUBLISH_VERSION = payments_sdk_version_name + PUBLISH_NAME = 'Xsolla Payments SDK for Android' + PUBLISH_DESCRIPTION = 'Xsolla Payments SDK for Android allows partners to monetize their product by providing users with a convenient UI to pay for in-game purchases in the game store' +} + +apply from: "${rootDir}/publishMavenCentral.gradle" \ No newline at end of file diff --git a/xsolla-payments-sdk-playfab/publish.gradle b/xsolla-payments-sdk-playfab/publish.gradle deleted file mode 100644 index a57fe907..00000000 --- a/xsolla-payments-sdk-playfab/publish.gradle +++ /dev/null @@ -1,60 +0,0 @@ -apply plugin: 'maven-publish' -apply plugin: 'com.jfrog.bintray' - -task androidSourcesJar(type: Jar) { - archiveClassifier.set('sources') - from android.sourceSets.main.java.srcDirs -} - -afterEvaluate { - publishing { - publications { - release(MavenPublication) { - from components.release - artifact androidSourcesJar - - groupId = 'com.xsolla.android' - artifactId = 'payments-playfab' - version = android.defaultConfig.versionName - - pom { - name = 'Xsolla Login Android SDK' - description = 'Xsolla Login Android SDK is used to integrate Xsolla Login, a single sign-on tool that uses API methods to authenticate and secure user passwords. This creates a seamless one-click registration experience players can use for fast and safe transactions across all of your games.' - url = 'https://github.com/xsolla/store-android-sdk' - organization { - name = 'Xsolla' - url = 'https://xsolla.com' - } - licenses { - license { - name = 'The Apache Software License, Version 2.0' - url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - scm { - connection = 'https://github.com/xsolla/store-android-sdk.git' - developerConnection = 'https://github.com/xsolla/store-android-sdk.git' - url = 'https://github.com/xsolla/store-android-sdk.git' - } - } - } - } - } - bintray { - user = System.getenv('BINTRAY_USER') - key = System.getenv('BINTRAY_KEY') - publications = ['release'] - pkg { - repo = 'maven' - name = 'xsolla-payments-playfab' - vcsUrl = 'https://github.com/xsolla/store-android-sdk' - licenses = ['Apache-2.0'] - - publish = true - - version { - name = android.defaultConfig.versionName - } - } - } -} \ No newline at end of file diff --git a/xsolla-payments-sdk/build.gradle b/xsolla-payments-sdk/build.gradle index 67d7b971..81f28e99 100644 --- a/xsolla-payments-sdk/build.gradle +++ b/xsolla-payments-sdk/build.gradle @@ -1,6 +1,5 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' - apply plugin: 'kotlin-parcelize' apply plugin: 'org.jetbrains.dokka' @@ -54,4 +53,12 @@ dokkaHtml.configure { } } -apply from: 'publish.gradle' \ No newline at end of file +ext { + PUBLISH_GROUP_ID = 'com.xsolla.android' + PUBLISH_ARTIFACT_ID = 'payments' + PUBLISH_VERSION = payments_sdk_version_name + PUBLISH_NAME = 'Xsolla Payments SDK for Android' + PUBLISH_DESCRIPTION = 'Xsolla Payments SDK for Android allows partners to monetize their product by providing users with a convenient UI to pay for in-game purchases in the game store' +} + +apply from: "${rootDir}/publishMavenCentral.gradle" \ No newline at end of file diff --git a/xsolla-payments-sdk/publish.gradle b/xsolla-payments-sdk/publish.gradle deleted file mode 100644 index e233c940..00000000 --- a/xsolla-payments-sdk/publish.gradle +++ /dev/null @@ -1,60 +0,0 @@ -apply plugin: 'maven-publish' -apply plugin: 'com.jfrog.bintray' - -task androidSourcesJar(type: Jar) { - archiveClassifier.set('sources') - from android.sourceSets.main.java.srcDirs -} - -afterEvaluate { - publishing { - publications { - release(MavenPublication) { - from components.release - artifact androidSourcesJar - - groupId = 'com.xsolla.android' - artifactId = 'payments' - version = android.defaultConfig.versionName - - pom { - name = 'Xsolla Login Android SDK' - description = 'Xsolla Login Android SDK is used to integrate Xsolla Login, a single sign-on tool that uses API methods to authenticate and secure user passwords. This creates a seamless one-click registration experience players can use for fast and safe transactions across all of your games.' - url = 'https://github.com/xsolla/store-android-sdk' - organization { - name = 'Xsolla' - url = 'https://xsolla.com' - } - licenses { - license { - name = 'The Apache Software License, Version 2.0' - url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - scm { - connection = 'https://github.com/xsolla/store-android-sdk.git' - developerConnection = 'https://github.com/xsolla/store-android-sdk.git' - url = 'https://github.com/xsolla/store-android-sdk.git' - } - } - } - } - } - bintray { - user = System.getenv('BINTRAY_USER') - key = System.getenv('BINTRAY_KEY') - publications = ['release'] - pkg { - repo = 'maven' - name = 'xsolla-payments' - vcsUrl = 'https://github.com/xsolla/store-android-sdk' - licenses = ['Apache-2.0'] - - publish = true - - version { - name = android.defaultConfig.versionName - } - } - } -} \ No newline at end of file diff --git a/xsolla-store-sdk/build.gradle b/xsolla-store-sdk/build.gradle index 6a4319f7..3ee81316 100644 --- a/xsolla-store-sdk/build.gradle +++ b/xsolla-store-sdk/build.gradle @@ -44,5 +44,12 @@ dokkaHtml.configure { } } +ext { + PUBLISH_GROUP_ID = 'com.xsolla.android' + PUBLISH_ARTIFACT_ID = 'store' + PUBLISH_VERSION = store_sdk_version_name + PUBLISH_NAME = 'Xsolla Store SDK for Android' + PUBLISH_DESCRIPTION = 'Xsolla Store SDK for Android is used to integrate Xsolla Store, a comprehensive e-store solution for partners that supports various monetization options' +} -apply from: 'publish.gradle' \ No newline at end of file +apply from: "${rootDir}/publishMavenCentral.gradle" \ No newline at end of file diff --git a/xsolla-store-sdk/publish.gradle b/xsolla-store-sdk/publish.gradle deleted file mode 100644 index fcb2e268..00000000 --- a/xsolla-store-sdk/publish.gradle +++ /dev/null @@ -1,60 +0,0 @@ -apply plugin: 'maven-publish' -apply plugin: 'com.jfrog.bintray' - -task androidSourcesJar(type: Jar) { - archiveClassifier.set('sources') - from android.sourceSets.main.java.srcDirs -} - -afterEvaluate { - publishing { - publications { - release(MavenPublication) { - from components.release - artifact androidSourcesJar - - groupId = 'com.xsolla.android' - artifactId = 'store' - version = android.defaultConfig.versionName - - pom { - name = 'Xsolla Store Android SDK' - description = 'Xsolla Store Android SDK is used to integrate Xsolla Store, a comprehensive e-store solution for partners that supports various monetization options' - url = 'https://github.com/xsolla/store-android-sdk' - organization { - name = 'Xsolla' - url = 'https://xsolla.com' - } - licenses { - license { - name = 'The Apache Software License, Version 2.0' - url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' - } - } - scm { - connection = 'https://github.com/xsolla/store-android-sdk.git' - developerConnection = 'https://github.com/xsolla/store-android-sdk.git' - url = 'https://github.com/xsolla/store-android-sdk.git' - } - } - } - } - } - bintray { - user = System.getenv('BINTRAY_USER') - key = System.getenv('BINTRAY_KEY') - publications = ['release'] - pkg { - repo = 'maven' - name = 'xsolla-store' - vcsUrl = 'https://github.com/xsolla/store-android-sdk' - licenses = ['Apache-2.0'] - - publish = true - - version { - name = android.defaultConfig.versionName - } - } - } -} \ No newline at end of file