Skip to content

Instantly share code, notes, and snippets.

@habibg1232191
Created October 31, 2021 16:10
Show Gist options
  • Save habibg1232191/c2576cd85de4c6bc8d49aec6c84f4e72 to your computer and use it in GitHub Desktop.
Save habibg1232191/c2576cd85de4c6bc8d49aec6c84f4e72 to your computer and use it in GitHub Desktop.
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.beryx.runtime") version "1.12.5"
kotlin("jvm") version "1.5.31"
kotlin("plugin.serialization") version "1.5.31"
application
}
group = "me.habib"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test:1.5.31")
implementation("io.ktor:ktor-client-core:1.6.4")
implementation("io.ktor:ktor-client-cio:1.6.4")
implementation("io.ktor:ktor-client-apache:1.6.4")
implementation("io.ktor:ktor-client-serialization:1.6.4")
implementation("org.jsoup:jsoup:1.14.3")
}
runtime {
jpackage {
installerOptions.plusAssign(listOf("--win-per-user-install", "--win-dir-chooser", "--win-menu", "--win-shortcut"))
imageOptions = listOf("--win-console")
}
}
tasks.test {
useJUnit()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "16"
}
application {
mainClass.set("myproject.MainKt")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment