Skip to content

Commit bffce29

Browse files
committed
添加 maven 插件及配置
1 parent 6a6f304 commit bffce29

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id 'com.android.application' version '8.4.2' apply false
33
id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
4+
id 'maven-publish'
45
}
56

67
tasks.register('clean', Delete) {

library/build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'maven-publish'
23
apply from : '../common.gradle'
34

45
android {
@@ -32,6 +33,16 @@ dependencies {
3233
compileOnly 'com.android.support:support-fragment:24.2.0'
3334
}
3435

36+
publishing {
37+
publications {
38+
release(MavenPublication) {
39+
groupId = 'com.github.getActivity'
40+
artifactId = 'XXPermissions'
41+
version = '21.2'
42+
}
43+
}
44+
}
45+
3546
tasks.withType(Javadoc).configureEach {
3647
// prevent Javadoc from failing gradle build:https://stackoverflow.com/questions/35435173/prevent-javadoc-from-failing-gradle-build
3748
failOnError false

0 commit comments

Comments
 (0)