File tree 2 files changed +17
-4
lines changed
2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1
1
buildscript {
2
+
3
+ ext {
4
+ mavenPublishVersion = ' 0.18.0'
5
+ }
6
+
2
7
repositories {
3
8
google()
4
9
mavenCentral()
5
10
}
6
11
dependencies {
7
12
classpath ' com.android.tools.build:gradle:7.0.4'
13
+ classpath " com.vanniktech:gradle-maven-publish-plugin:$mavenPublishVersion "
8
14
}
9
15
}
10
16
@@ -15,6 +21,12 @@ allprojects {
15
21
}
16
22
}
17
23
18
- task clean (type : Delete ) {
19
- delete rootProject. buildDir
24
+ apply plugin : " com.vanniktech.maven.publish"
25
+
26
+ allprojects {
27
+ plugins. withId(" com.vanniktech.maven.publish" ) {
28
+ mavenPublish {
29
+ sonatypeHost = " S01"
30
+ }
31
+ }
20
32
}
Original file line number Diff line number Diff line change @@ -26,10 +26,11 @@ android {
26
26
}
27
27
28
28
dependencies {
29
-
30
29
implementation ' androidx.appcompat:appcompat:1.4.1'
31
30
implementation ' androidx.recyclerview:recyclerview:1.2.1'
32
31
testImplementation ' junit:junit:4.13.2'
33
32
androidTestImplementation ' androidx.test.ext:junit:1.1.3'
34
33
androidTestImplementation ' androidx.test.espresso:espresso-core:3.4.0'
35
- }
34
+ }
35
+
36
+ apply plugin : " com.vanniktech.maven.publish"
You can’t perform that action at this time.
0 commit comments