Skip to content

Commit d18c23f

Browse files
committed
Build.gradle changed
1 parent cdfb741 commit d18c23f

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

library/build.gradle

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

45
android {
@@ -18,14 +19,16 @@ dependencies {
1819
lintPublish project(':checks')
1920
}
2021

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
22+
afterEvaluate {
23+
publishing {
24+
publications {
25+
// Creates a Maven publication called "release".
26+
release(MavenPublication) {
27+
from components.release
28+
groupId = 'com.github.thirdegg'
29+
artifactId = 'lint-rules'
30+
version = '0.1.0'
31+
}
2932
}
3033
}
3134
}

0 commit comments

Comments
 (0)