Exit Full View

Feather / build.gradle.kts

// feather (top-level)

plugins {
    kotlin("jvm") version "1.9.10"
    id("org.jetbrains.dokka") version "1.9.10"
    application
}

kotlin {
    jvmToolchain(11)
}

val featherVersion: String by project

allprojects {
    apply(plugin = "org.jetbrains.dokka")
    repositories {
        mavenCentral()
    }
    version = featherVersion
    group = "uk.co.nickthecoder"
}

application {
    mainClass.set( "uk.co.nickthecoder.feather.Feather")
}

dependencies {
    implementation(project(":feather-core"))
}

tasks.dokkaHtmlMultiModule {
    moduleName.set("Feather")
}

task<Exec>("publishDokka") {
    dependsOn(":dokkaHtmlMultiModule")
    commandLine("./publishDokka.feathers", "build/dokka/htmlMultiModule/", "../api/feather-$featherVersion")
}

task<Exec>("publishZip") {
    dependsOn(":distZip")
    commandLine("cp", "build/distributions/feather-${featherVersion}.zip", "../download/")
}

defaultTasks("installDist")