Skip to content

Commit bbc3f84

Browse files
committed
Jitpack.io Gradle 7
1 parent 268432b commit bbc3f84

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

MPChartLib/build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'com.android.library'
3+
id 'maven-publish'
34
}
45

56
android {
@@ -27,3 +28,13 @@ dependencies {
2728
implementation 'androidx.annotation:annotation:1.2.0'
2829
testImplementation 'junit:junit:4.13.2'
2930
}
31+
32+
project.afterEvaluate {
33+
publishing {
34+
publications {
35+
release(MavenPublication) {
36+
from components.release
37+
}
38+
}
39+
}
40+
}

jitpack.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
jdk:
2+
- openjdk11
3+
install:
4+
- ./gradlew :MPChartLib:build :MPChartLib:publishToMavenLocal -x :MPChartLib:test
5+
- find . -name "*.aar"

0 commit comments

Comments
 (0)