// feather-runtime
plugins {
kotlin("jvm")
id("maven-publish")
}
kotlin {
jvmToolchain(11)
}
val featherVersion: String by project
group = "uk.co.nickthecoder"
version = featherVersion
// For uploading compiled packages to gitlab.com
publishing {
repositories {
publications {
create<MavenPublication>("feather-runtime") {
from(components["kotlin"])
}
}
maven {
// 16531834 is the GitLab project ID of project nickthecoder/feather
url = uri("https://gitlab.com/api/v4/projects/16531834/packages/maven")
credentials(HttpHeaderCredentials::class) {
name = "Private-Token"
value = providers.gradleProperty("gitLabPrivateToken").get()
// The password is stored in ~/.gradle/gradle.properties
}
authentication {
create<HttpHeaderAuthentication>("header")
}
}
}
}
tasks.dokkaHtmlPartial {
dokkaSourceSets {
configureEach {
includeNonPublic.set(false)
skipDeprecated.set(true)
reportUndocumented.set(false)
skipEmptyPackages.set(true)
}
}
}