Skip to content

Commit be5fd95

Browse files
committed
publish
1 parent 4c8c210 commit be5fd95

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
id 'com.android.application' version '7.1.2' apply false
44
id 'com.android.library' version '7.1.2' apply false
55
id 'org.jetbrains.kotlin.android' version '1.6.10' apply false
6+
id 'com.vanniktech.maven.publish' version '0.18.0' apply false
67
}
78

89
task clean(type: Delete) {

library/build.gradle

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
plugins {
22
id 'com.android.library'
33
id 'org.jetbrains.kotlin.android'
4+
id 'maven-publish'
5+
id "com.vanniktech.maven.publish"
6+
47
}
58

69
android {
@@ -30,11 +33,6 @@ android {
3033
}
3134

3235
dependencies {
33-
3436
implementation 'androidx.core:core-ktx:1.7.0'
3537
implementation 'androidx.appcompat:appcompat:1.4.1'
36-
implementation 'com.google.android.material:material:1.5.0'
37-
testImplementation 'junit:junit:4.13.2'
38-
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
39-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
4038
}

settings.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ dependencyResolutionManagement {
1111
google()
1212
mavenCentral()
1313
}
14+
plugins.withId("com.vanniktech.maven.publish") {
15+
mavenPublish {
16+
sonatypeHost = "S01"
17+
}
18+
}
1419
}
1520
rootProject.name = "SpannableStringDslExtension"
1621
include ':app'

0 commit comments

Comments
 (0)