// Autogenerated by MetaBuild
plugins {
kotlin("jvm") version "2.1.0"
id("org.jetbrains.dokka") version "2.0.0"
`maven-publish`
}
group="uk.co.nickthecoder"
version="0.1"
repositories {
mavenCentral()
}
defaultTasks( "jar" )
kotlin {
jvmToolchain(11)
}
dependencies {
}
tasks.dokkaHtml {
moduleName.set("Meta Build")
}
tasks.withType<org.jetbrains.dokka.gradle.DokkaTask>().configureEach {
dokkaSourceSets {
named("main") {
includes.from( "src/main/kotlin/uk/co/nickthecoder/metabuild/metabuild.md" )
}
}
}
publishing {
publications {
create<MavenPublication>("metabuild") {
}
}
repositories {
maven {
url = uri("https://gitlab.com/api/v4/projects/65739587/packages/maven")
credentials(HttpHeaderCredentials::class) {
name = "Private-Token"
value = providers.gradleProperty("gitLabPrivateToken").get()
}
authentication {
create<HttpHeaderAuthentication>("header")
}
}
}
}
task<Exec>("ntc") {
dependsOn( "jar", "dokkaHtml" )
commandLine( "publishToNTC.feather","--","0.1")
}