Skip to content

Commit 9928d60

Browse files
committed
fix maven publish settings
1 parent d655dbb commit 9928d60

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

library/build.gradle

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,18 @@ android {
3030
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
3131
}
3232
}
33+
}
3334

35+
afterEvaluate {
36+
publishing {
37+
publications {
38+
release(MavenPublication) {
39+
from components.release
40+
artifactId = "validatable-textinput-layout"
41+
artifact(sourcesJar)
42+
}
43+
}
44+
}
3445
}
3546

3647
dependencies {
@@ -47,7 +58,6 @@ dependencies {
4758
testImplementation Depends.Test.robolectric
4859
}
4960

50-
// build a jar with source files
5161
task sourcesJar(type: Jar) {
5262
from android.sourceSets.main.java.srcDirs
5363
classifier = 'sources'

0 commit comments

Comments
 (0)