Skip to content

Commit

Permalink
Add maven pom info
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Aug 23, 2024
1 parent b70e757 commit 77f517e
Showing 1 changed file with 32 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import org.gradle.api.Project
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.create
import org.gradle.kotlin.dsl.get
import org.gradle.kotlin.dsl.withType

class PublishPlugin : Plugin<Project> {

Expand All @@ -42,13 +42,37 @@ class PublishPlugin : Plugin<Project> {

target.extensions.configure<org.gradle.api.publish.PublishingExtension> {
publications {
create<MavenPublication>("android") {
from(components.findByName("release"))
artifact(tasks.getByName("bundleReleaseAar"))
artifact(artifact(tasks["sourcesJar"]))
groupId = "com.github.infomaniak.multiplatform_swisstransfer"
artifactId = mavenName
version = Versions.mavenVersionName
withType<MavenPublication> {
pom {
name.set(mavenName)
description.set("Multiplatform SwissTransfer - $mavenName")
licenses {
license {
name.set("GPL-3.0")
url.set("https://www.gnu.org/licenses/gpl-3.0.fr.html")
}
}
url.set("https://github.com/Infomaniak/multiplatform-SwissTransfer")
issueManagement {
system.set("Github")
url.set("https://github.com/Infomaniak/multiplatform-SwissTransfer/issues")
}
scm {
connection.set("https://github.com/Infomaniak/multiplatform-SwissTransfer.git")
url.set("https://github.com/Infomaniak/multiplatform-SwissTransfer")
}
organization {
name.set("Infomaniak Network SA")
url.set("https://www.infomaniak.com/")
}
developers {
developer {
id.set("infomaniak")
name.set("Infomaniak Development Team")
url.set("https://www.infomaniak.com/")
}
}
}
}
}
}
Expand Down

0 comments on commit 77f517e

Please sign in to comment.