Skip to content

Commit

Permalink
fix publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
StageGuard committed Dec 22, 2024
1 parent 09d7394 commit 4e1991b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ version.name=0.1.0-dev-1
package.version=1.0.0
kotlin.mpp.androidSourceSetLayoutVersion=2
org.gradle.caching=true
org.gradle.configuration-cache=true
org.gradle.configuration-cache=false
# major(1)-minor(pad to 2)-patch(1)-meta(1)
android.version.code=30200
android.compile.sdk=34
Expand Down
11 changes: 7 additions & 4 deletions mediamp-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ kotlin {
}

mavenPublishing {
configure(KotlinMultiplatform(JavadocJar.Empty(), true, listOf("release")))
configure(KotlinMultiplatform(JavadocJar.Empty(), true, listOf("debug", "release")))

publishToMavenCentral(SonatypeHost.DEFAULT)
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)

signAllPublications()

Expand All @@ -75,8 +75,11 @@ mavenPublishing {
url = "https://github.com/open-ani/mediamp"

licenses {
name = "GNU General Public License, version 3"
url = "https://github.com/open-ani/mediamp/blob/main/LICENSE"
license {
name = "GNU General Public License, Version 3"
url = "https://github.com/open-ani/mediamp/blob/main/LICENSE"
distribution = "https://www.gnu.org/licenses/gpl-3.0.txt"
}
}

developers {
Expand Down
13 changes: 8 additions & 5 deletions mediamp-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ kotlin {
}

mavenPublishing {
configure(KotlinMultiplatform(JavadocJar.Empty(), true, listOf("release")))
configure(KotlinMultiplatform(JavadocJar.Empty(), true, listOf("debug", "release")))

publishToMavenCentral(SonatypeHost.DEFAULT)
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)

signAllPublications()

Expand All @@ -82,9 +82,12 @@ mavenPublishing {
description = "Core library for MediaMP"
url = "https://github.com/open-ani/mediamp"

licenses {
name = "GNU General Public License, version 3"
url = "https://github.com/open-ani/mediamp/blob/main/LICENSE"
licenses {
license {
name = "GNU General Public License, Version 3"
url = "https://github.com/open-ani/mediamp/blob/main/LICENSE"
distribution = "https://www.gnu.org/licenses/gpl-3.0.txt"
}
}

developers {
Expand Down
12 changes: 8 additions & 4 deletions mediamp-source-kotlinx-io/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ kotlin {
}

mavenPublishing {
configure(KotlinMultiplatform(JavadocJar.Empty(), true, listOf("release")))
configure(KotlinMultiplatform(JavadocJar.Empty(), true, listOf("debug", "release")))


publishToMavenCentral(SonatypeHost.DEFAULT)
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)

signAllPublications()

Expand All @@ -68,8 +69,11 @@ mavenPublishing {
url = "https://github.com/open-ani/mediamp"

licenses {
name = "GNU General Public License, version 3"
url = "https://github.com/open-ani/mediamp/blob/main/LICENSE"
license {
name = "GNU General Public License, Version 3"
url = "https://github.com/open-ani/mediamp/blob/main/LICENSE"
distribution = "https://www.gnu.org/licenses/gpl-3.0.txt"
}
}

developers {
Expand Down

0 comments on commit 4e1991b

Please sign in to comment.