Exit Full View

Blok Art / build.gradle.kts

// blokart (root)

plugins {
    kotlin("jvm") version "1.9.10"
    application
}

repositories {
    mavenCentral()
    // Glok is a GUI toolkit similar to JavaFX. I prefer Glok, but I did write it ;-)
    maven {
        name = "glok"
        url = uri("https://gitlab.com/api/v4/projects/46354938/packages/maven")
    }
}

application {
    mainClass.set("uk.co.nickthecoder.blokart.BlokartApp")
}

val blokartVersion: String by project
val glokVersion: String by project
val junitVersion: String by project
version = blokartVersion

dependencies {

    implementation("uk.co.nickthecoder:glok-model:$glokVersion")
    implementation("uk.co.nickthecoder:glok-core:$glokVersion")
    implementation("uk.co.nickthecoder:glok-dock:$glokVersion")

    testImplementation("junit:junit:$junitVersion")

}

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

task<Exec>("ntc") {
    dependsOn(":publishZip")
    commandLine("echo", "Done")
}

defaultTasks("installDist")