We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdfb741 commit d18c23fCopy full SHA for d18c23f
1 file changed
library/build.gradle
@@ -1,4 +1,5 @@
1
apply plugin: 'com.android.library'
2
+apply plugin: 'kotlin-android'
3
apply plugin: 'maven-publish'
4
5
android {
@@ -18,14 +19,16 @@ dependencies {
18
19
lintPublish project(':checks')
20
}
21
-publishing {
22
- publications {
23
- mavenJava(MavenPublication) {
24
- groupId = 'com.github.thirdegg'
25
- artifactId = 'lint-rules'
26
- version = '0.1.0'
27
-
28
- from components.java
+afterEvaluate {
+ publishing {
+ publications {
+ // Creates a Maven publication called "release".
+ release(MavenPublication) {
+ from components.release
+ groupId = 'com.github.thirdegg'
29
+ artifactId = 'lint-rules'
30
+ version = '0.1.0'
31
+ }
32
33
34
0 commit comments