Exit Full View

Feather / feather-glok / build.gradle.kts

// feather-runtime

plugins {
    kotlin("jvm")
    id("maven-publish")
}

repositories {
    mavenCentral()

    // My other projects hosted on gitlab.com
    maven {
        name = "glok"
        url = uri("https://gitlab.com/api/v4/projects/46354938/packages/maven")
    }
}

kotlin {
    jvmToolchain(11)
}

dependencies {
    val glokVersion: String by project
    val antlrVersion: String by project

    implementation(project(":feather-core"))
    implementation("uk.co.nickthecoder:glok-core:$glokVersion")
    implementation("uk.co.nickthecoder:glok-model:$glokVersion")
    implementation("uk.co.nickthecoder:glok-model-jvm:$glokVersion")
    implementation("uk.co.nickthecoder:glok-core-jvm:$glokVersion")
    implementation("org.antlr:antlr4-runtime:$antlrVersion")
}

val featherVersion: String by project
group = "uk.co.nickthecoder"
version = featherVersion

// For uploading compiled packages to gitlab.com
publishing {
    publications {
        create<MavenPublication>("feather-glok") {
            from(components["kotlin"])
        }
    }
    repositories {
        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)
        }
    }
}