diff --git a/build.gradle b/build.gradle index 1ede2df..116f775 100644 --- a/build.gradle +++ b/build.gradle @@ -21,21 +21,6 @@ buildscript { classpath "com.vanniktech:gradle-maven-publish-plugin:$mavenPublishVersion" classpath "org.jetbrains.dokka:dokka-gradle-plugin:$kotlinVersion" } - afterEvaluate { - publishing { - publications { - release(MavenPublication) { - groupId = 'com.github.omkar-tenkale' - artifactId = 'ExplodingComposable' - version = '1.0.0' - } - } - } - } -} - -plugins { - id 'maven-publish' } task clean(type: Delete) { diff --git a/explodable/build.gradle b/explodable/build.gradle index 7f92d87..b39117d 100644 --- a/explodable/build.gradle +++ b/explodable/build.gradle @@ -2,6 +2,7 @@ plugins { id 'com.android.library' id 'org.jetbrains.kotlin.android' id 'org.jetbrains.dokka' + id 'maven-publish' } android { @@ -61,4 +62,16 @@ dokkaHtml.configure { } } -apply plugin: 'com.vanniktech.maven.publish' \ No newline at end of file +publishing { + publications { + release(MavenPublication) { + groupId = 'com.github.omkar-tenkale' + artifactId = 'ExplodingComposable' + version = '1.0.0' + + afterEvaluate { + from components.release + } + } + } +} \ No newline at end of file