|
@@ -3,15 +3,25 @@ apply plugin: 'signing'
|
|
|
|
|
|
ext {
|
|
|
PUBLISH_GROUP_ID = 'io.github.yyxxgame.sdk'
|
|
|
- PUBLISH_ARTIFACT_ID = 'eyuancomm-sdk-ktx-comm'
|
|
|
- PUBLISH_VERSION = '1.0.0-rc6'
|
|
|
+ PUBLISH_ARTIFACT_ID = 'yyxx-comm-base'
|
|
|
+ PUBLISH_VERSION = '3.0.300'
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ext["signing.keyId"] = ''
|
|
|
+ext["signing.password"] = ''
|
|
|
+ext["signing.secretKeyRingFile"] = ''
|
|
|
+ext["ossrhUsername"] = ''
|
|
|
+ext["ossrhPassword"] = ''
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
Properties properties = new Properties()
|
|
|
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
|
|
+properties.each { name, value ->
|
|
|
+ ext[name] = value
|
|
|
+}
|
|
|
|
|
|
-def ossrhUsername = properties.getProperty("SonaType.user")
|
|
|
-def ossrhPassword = properties.getProperty("SonaType.pwd")
|
|
|
|
|
|
task androidSourcesJar(type: Jar) {
|
|
|
archiveClassifier.set('source')
|
|
@@ -34,13 +44,16 @@ publishing {
|
|
|
version PUBLISH_VERSION
|
|
|
|
|
|
// Two artifacts, the `aar` and the sources
|
|
|
- artifact("$buildDir/outputs/aar/${project.getName()}-release.aar")
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ artifact("$buildDir/outputs/aar/$PUBLISH_ARTIFACT_ID" + "-" + "$PUBLISH_VERSION"+ ".aar")
|
|
|
artifact androidSourcesJar
|
|
|
|
|
|
// Self-explanatory metadata for the most part
|
|
|
pom {
|
|
|
- name = "${PUBLISH_GROUP_ID}:${PUBLISH_ARTIFACT_ID}"
|
|
|
- description = 'game comm sdk of eyuan'
|
|
|
+ name = "${PUBLISH_GROUP_ID}${PUBLISH_ARTIFACT_ID}"
|
|
|
+ description = 'game comm sdk of yyxx_comm'
|
|
|
// If your project has a dedicated site, use its URL here
|
|
|
url = 'https://github.com/yyxxgame'
|
|
|
licenses {
|
|
@@ -60,10 +73,10 @@ publishing {
|
|
|
// Version control info, if you're using GitHub, follow the format as seen here
|
|
|
scm {
|
|
|
//修改成你的Git地址:
|
|
|
- connection = 'scm:git:gogs.yyxxgame.com:3000/Client/EYuanGameSdk-KTX.git'
|
|
|
- developerConnection = 'scm:git:ssh://gogs.yyxxgame.com:3000/Client/EYuanGameSdk-KTX.git'
|
|
|
+ connection = 'scm:git:gogs.yyxxgame.com:3000/Client/YYXXCommSdk.git'
|
|
|
+ developerConnection = 'scm:git:ssh://gogs.yyxxgame.com:3000/Client/YYXXCommSdk.git'
|
|
|
//分支地址:
|
|
|
- url = 'http://gogs.yyxxgame.com/Client/EYuanGameSdk-KTX'
|
|
|
+ url = 'http://gogs.yyxxgame.com:3000/Client/YYXXCommSdk.git'
|
|
|
}
|
|
|
// A slightly hacky fix so that your POM will include any transitive dependencies
|
|
|
// that your library builds upon
|