Skip to content

Commit

Permalink
发布到MavenCentral
Browse files Browse the repository at this point in the history
  • Loading branch information
Tear丶残阳 committed Aug 7, 2021
1 parent f3966f0 commit d52fd90
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

Expand Down
16 changes: 16 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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
12 changes: 9 additions & 3 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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
}
3 changes: 3 additions & 0 deletions plugin/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GROUP=cn.numeron
POM_ARTIFACT_ID=reinforecer
VERSION_NAME=1.0.1
3 changes: 1 addition & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
rootProject.name = "reinforcer"
include(":plugin")
project(":plugin").name = "reinforcer-plugin"
include(":plugin")

0 comments on commit d52fd90

Please sign in to comment.