Skip to content

Commit 69981de

Browse files
committed
添加 maven 插件及 jitpack 构建配置
1 parent 811c340 commit 69981de

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

library/build.gradle

Lines changed: 16 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

34
android {
45
compileSdkVersion 28
@@ -65,4 +66,19 @@ tasks.register('javadocJar', Jar) {
6566
artifacts {
6667
archives javadocJar
6768
archives sourcesJar
69+
}
70+
71+
// Jitpack 构建配置
72+
publishing {
73+
publications {
74+
release(MavenPublication) {
75+
groupId = 'com.github.getActivity'
76+
artifactId = 'ShapeView'
77+
version = '9.5'
78+
79+
afterEvaluate {
80+
from components.release
81+
}
82+
}
83+
}
6884
}

0 commit comments

Comments
 (0)