Skip to content

Commit

Permalink
init maven publishing for core module
Browse files Browse the repository at this point in the history
  • Loading branch information
StageGuard committed Dec 20, 2024
1 parent 9e493c1 commit e19d04a
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions mediamp-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ plugins {
`mpp-lib-targets`
kotlin("plugin.serialization")
// id("org.jetbrains.kotlinx.atomicfu")
`maven-publish`
}

kotlin {
Expand Down Expand Up @@ -53,3 +54,43 @@ kotlin {
android {
namespace = "org.openani.mediamp.core"
}

publishing {
publications {
create<MavenPublication>("mediampCore") {
from(components["kotlin"])

pom {
name = "Mediamp Core"
description = "Core library for Mediamp"
url = "https://github.com/open-ani/mediamp"

licenses {
name = ""
url = ""
}

developers {
developer {
id = "open-ani"
name = "The OpenAni Team and contributors"
email = ""
}
}

scm {
connection = "scm:git:https://github.com/open-ani/mediamp.git"
developerConnection = "scm:git:git@github.com:open-ani/mediamp.git"
url = "https://github.com/open-ani/mediamp"
}
}
}
}

repositories {
maven {
name = "myRepo"
url = uri(layout.buildDirectory.dir("repo"))
}
}
}

0 comments on commit e19d04a

Please sign in to comment.