Files
kswingutil/build.gradle.kts

65 lines
1.8 KiB
Plaintext

import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
kotlin("jvm") version "2.1.10"
`maven-publish` // for publishToMavenLocal
id("org.jetbrains.dokka-javadoc") version "2.0.0"
}
group = "net.eksb"
dependencies {}
java {
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_17
withSourcesJar()
}
kotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
}
}
val dokkaJavadocJar by tasks.registering(Jar::class) {
description = "${rootProject.name} JavaDoc"
from(tasks.dokkaGeneratePublicationJavadoc.flatMap { it.outputDirectory })
archiveClassifier.set("javadoc")
}
tasks.build {
dependsOn(tasks["dokkaJavadocJar"])
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
tasks["generateMetadataFileForMavenPublication"].dependsOn(dokkaJavadocJar)
artifact(dokkaJavadocJar)
pom {
name = "${project.group}:${project.name}"
description = "Kotlin utilities for Swing application"
url = "https://git.eksb.net/stephen/kswingutil"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
name = "Stephen Byrne"
email = "code@eksb.net"
url = "https://git.eksb.net/stephen"
}
}
scm {
url = "not used"
connection = "not used"
developerConnection = "not used"
}
}
}
}
}