Skip to content

Commit

Permalink
Publishing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shrikanth7698 committed Mar 31, 2022
1 parent 65791cf commit b59b8a9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
1 change: 0 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ buildscript {
classpath(Kotlin.DokkaGradlePlugin)
classpath(DetektLib.Plugin)
classpath(GradleVersions.Plugin)
classpath(MavenPublish.GradlePlugin)
}
}

Expand Down
5 changes: 0 additions & 5 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
@file:Suppress("ObjectPropertyNaming", "ClassNaming", "UnderscoresInNumericLiterals")
object MavenPublish {
const val PluginId = "com.github.dcendents.android-maven"
const val GradlePlugin = "com.github.dcendents:android-maven-gradle-plugin:1.5"
}

object AndroidSdk {
const val Min = 21
const val Compile = 31
Expand Down
21 changes: 21 additions & 0 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ plugins {
group = "com.github.ZuperInc"

android {

defaultConfig.versionCode = 100
defaultConfig.versionName = "1.0.0"

tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-Xexplicit-api=strict"
Expand Down Expand Up @@ -43,9 +47,26 @@ publishing {
create<MavenPublication>("maven") {
groupId = "com.github.ZuperInc"
artifactId = "ComposeCalendar"
version = "1.0.0"
from(components.findByName("release"))
}
}
}

//afterEvaluate {
//
// publishing {
// publications {
// create<MavenPublication>("maven") {
// groupId = "com.github.ZuperInc"
// artifactId = "ComposeCalendar"
// version = "1.0.0"
// artifact(sourcesJar)
// }
// }
// }
//}

//plugins.withId("com.vanniktech.maven.publish") {
// mavenPublish {
// sonatypeHost = SonatypeHost.S01
Expand Down

0 comments on commit b59b8a9

Please sign in to comment.