Skip to content

Commit 260df27

Browse files
author
Vishal Ratna
committed
update maven publish
1 parent cf2af67 commit 260df27

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

snippet/build.gradle

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'maven-publish'
23

34
android {
45
compileSdkVersion 31
@@ -23,8 +24,20 @@ apply plugin: 'com.android.library'
2324

2425
dependencies {
2526
implementation fileTree (dir: "libs", include: ["*.jar"])
26-
implementation 'androidx.appcompat:appcompat:1.3.1'
27+
implementation 'androidx.appcompat:appcompat:1.4.0'
2728
testImplementation 'junit:junit:4.13.2'
2829
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
2930
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
30-
}
31+
}
32+
33+
afterEvaluate {
34+
publishing {
35+
publications {
36+
release(MavenPublication) {
37+
groupId = 'com.microsoft'
38+
artifactId = 'snippet'
39+
version = "1.0"
40+
}
41+
}
42+
}
43+
}

0 commit comments

Comments
 (0)