// feather-runtime
plugins {
kotlin("jvm")
id("maven-publish")
}
repositories {
mavenCentral()
// My other projects hosted on gitlab.com
maven {
name = "scarea"
url = uri("https://gitlab.com/api/v4/projects/15723319/packages/maven")
}
}
kotlin {
jvmToolchain(11)
}
dependencies {
val scareaVersion: String by project
implementation(project(":feather-core"))
implementation("uk.co.nickthecoder:scarea-syntax:$scareaVersion")
}
val featherVersion: String by project
group = "uk.co.nickthecoder"
version = featherVersion
// For uploading compiled packages to gitlab.com
publishing {
repositories {
publications {
create<MavenPublication>("feather-scarea") {
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)
}
}
}