Skip to content

Commit

Permalink
Fix sonatype requirement infringements
Browse files Browse the repository at this point in the history
  • Loading branch information
marad committed Sep 29, 2023
1 parent 937ba61 commit 4d6e302
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ plugins {
id("maven-publish")
id("signing")
id("pl.allegro.tech.build.axion-release") version "1.15.4"
id("org.jetbrains.dokka") version "1.9.0"
}

group = "io.github.marad"
project.version = scmVersion.version

tasks.register<Jar>("dokkaJavadocJar") {
dependsOn(tasks.dokkaJavadoc)
from(tasks.dokkaJavadoc.flatMap { it.outputDirectory })
archiveClassifier.set("javadoc")
}

publishing {
publications {
create<MavenPublication>("library") {
Expand All @@ -17,10 +24,14 @@ publishing {
version = scmVersion.version
artifact(tasks.jar)
artifact(tasks.kotlinSourcesJar)
artifact(tasks["dokkaJavadocJar"])
}
withType<MavenPublication> {
pom {
packaging = "jar"
name.set(artifactId)
description.set("Library for easy HTML generation.")
url.set("https://github.com/marad/kotlin-html-dsl")
licenses {
license {
name.set("MIT License")
Expand Down

0 comments on commit 4d6e302

Please sign in to comment.