From d52fd909d83b262fcdc20640ec09dc842bd67a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tear=E4=B8=B6=E6=AE=8B=E9=98=B3?= <605658769@qq.com> Date: Sat, 7 Aug 2021 17:37:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=88=B0MavenCentral?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle.kts | 2 +- gradle.properties | 16 ++++++++++++++++ plugin/build.gradle.kts | 12 +++++++++--- plugin/gradle.properties | 3 +++ settings.gradle.kts | 3 +-- 5 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 gradle.properties create mode 100644 plugin/gradle.properties diff --git a/build.gradle.kts b/build.gradle.kts index 9cbe034..82fda5c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ buildscript { } dependencies { classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0") - classpath("com.github.dcendents:android-maven-gradle-plugin:2.1") + classpath("com.vanniktech:gradle-maven-publish-plugin:0.17.0") } } diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..6c1e2bf --- /dev/null +++ b/gradle.properties @@ -0,0 +1,16 @@ +POM_NAME=reinforecer +POM_DESCRIPTION=A gradle plugin for Android projects, based on 360????, automatically perform hardening operations after packaging. +POM_INCEPTION_YEAR=2021 +POM_URL=https://github.com/xiazunyang/reinforcer + +POM_LICENSE_NAME=The Apache Software License, Version 2.0 +POM_LICENSE_URL=https://www.apache.org/licenses/LICENSE-2.0.txt +POM_LICENSE_DIST=repo + +POM_SCM_URL=https://github.com/xiazunyang/reinforcer +POM_SCM_CONNECTION=scm:git:git://github.com/xiazunyang/reinforcer.git +POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com:xiazunyang/reinforcer.git + +POM_DEVELOPER_ID=TearSun +POM_DEVELOPER_NAME=XiazunYang +POM_DEVELOPER_URL=https://github.com/xiazunyang \ No newline at end of file diff --git a/plugin/build.gradle.kts b/plugin/build.gradle.kts index ff3bb13..d36b737 100644 --- a/plugin/build.gradle.kts +++ b/plugin/build.gradle.kts @@ -1,11 +1,17 @@ +import com.vanniktech.maven.publish.SonatypeHost + plugins { `kotlin-dsl` - id("com.github.dcendents.android-maven") + id("com.vanniktech.maven.publish") } -group = "com.github.xiazunyang" -version = "1.0.0" +group = "cn.numeron" +version = "1.0.1" dependencies { implementation(gradleApi()) +} + +mavenPublish { + sonatypeHost = SonatypeHost.S01 } \ No newline at end of file diff --git a/plugin/gradle.properties b/plugin/gradle.properties new file mode 100644 index 0000000..24f3398 --- /dev/null +++ b/plugin/gradle.properties @@ -0,0 +1,3 @@ +GROUP=cn.numeron +POM_ARTIFACT_ID=reinforecer +VERSION_NAME=1.0.1 \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index 46a5b49..69fcade 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,3 +1,2 @@ rootProject.name = "reinforcer" -include(":plugin") -project(":plugin").name = "reinforcer-plugin" \ No newline at end of file +include(":plugin") \ No newline at end of file