File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,3 @@ dependencies {
30
30
implementation ' androidx.appcompat:appcompat:1.3.1'
31
31
implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
32
32
}
33
- repositories {
34
- mavenCentral()
35
- }
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
apply plugin : ' kotlin-android'
3
+ apply plugin : ' maven-publish'
3
4
4
5
android {
5
6
compileSdkVersion 31
@@ -29,8 +30,27 @@ dependencies {
29
30
compileOnly ' androidx.fragment:fragment:1.3.6'
30
31
api " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
31
32
implementation " androidx.exifinterface:exifinterface:1.3.2"
32
- implementation ' androidx.core:core-ktx:1.3.2 '
33
+ implementation ' androidx.core:core-ktx:1.6.0 '
33
34
implementation ' androidx.appcompat:appcompat:1.3.1'
35
+ }
36
+
37
+ afterEvaluate {
38
+ publishing {
39
+ publications {
40
+ // Creates a Maven publication called "release".
41
+ release(MavenPublication ) {
42
+ // Applies the component for the release build variant.
43
+ from components. release
34
44
45
+ // You can then customize attributes of the publication as shown below.
46
+ groupId = ' com.sw926.imagefileselector'
47
+ artifactId = ' library'
48
+ version = ' 2.0.0'
35
49
50
+ repositories {
51
+ mavenCentral()
52
+ }
53
+ }
54
+ }
55
+ }
36
56
}
You can’t perform that action at this time.
0 commit comments