Skip to content

Commit 219fc67

Browse files
committed
Add deployment code to the gradle
1 parent b5fcbfa commit 219fc67

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

build.gradle

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
buildscript {
2+
3+
ext {
4+
mavenPublishVersion = '0.18.0'
5+
}
6+
27
repositories {
38
google()
49
mavenCentral()
510
}
611
dependencies {
712
classpath 'com.android.tools.build:gradle:7.0.4'
13+
classpath "com.vanniktech:gradle-maven-publish-plugin:$mavenPublishVersion"
814
}
915
}
1016

@@ -15,6 +21,12 @@ allprojects {
1521
}
1622
}
1723

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+
}
2032
}

treeview/build.gradle

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ android {
2626
}
2727

2828
dependencies {
29-
3029
implementation 'androidx.appcompat:appcompat:1.4.1'
3130
implementation 'androidx.recyclerview:recyclerview:1.2.1'
3231
testImplementation 'junit:junit:4.13.2'
3332
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
3433
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
35-
}
34+
}
35+
36+
apply plugin: "com.vanniktech.maven.publish"

0 commit comments

Comments
 (0)