Skip to content

Commit 2301378

Browse files
committed
Fix Jitpack Deployment Issues
1 parent 9d18923 commit 2301378

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

starview/build.gradle

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id 'com.android.library'
33
id 'kotlin-android'
4+
id 'maven-publish'
45
}
56

67
android {
@@ -27,6 +28,31 @@ android {
2728
kotlinOptions {
2829
jvmTarget = '11'
2930
}
31+
afterEvaluate {
32+
publishing {
33+
publications {
34+
// Creates a Maven publication called "release".
35+
release(MavenPublication) {
36+
// Applies the component for the release build variant.
37+
from components.release
38+
39+
// You can then customize attributes of the publication as shown below.
40+
groupId = 'com.github.DeveloperPaul123.StarView'
41+
artifactId = 'final'
42+
version = '1.0.2'
43+
}
44+
// Creates a Maven publication called “debug”.
45+
debug(MavenPublication) {
46+
// Applies the component for the debug build variant.
47+
from components.debug
48+
49+
groupId = 'com.github.DeveloperPaul123.StarView'
50+
artifactId = 'final-debug'
51+
version = '1.0.2'
52+
}
53+
}
54+
}
55+
}
3056
}
3157

3258
dependencies {

0 commit comments

Comments
 (0)