Skip to content

Commit 58e9ec0

Browse files
committed
添加 maven 插件及配置
1 parent d003119 commit 58e9ec0

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 {
@@ -30,4 +31,14 @@ android {
3031
dependencies {
3132
// noinspection GradleCompatible
3233
implementation 'com.android.support:support-fragment:24.2.0'
34+
}
35+
36+
publishing {
37+
publications {
38+
release(MavenPublication) {
39+
groupId = 'com.github.getActivity'
40+
artifactId = rootProject.name
41+
version = android.defaultConfig.versionName
42+
}
43+
}
3344
}

0 commit comments

Comments
 (0)