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

description = "An action sequencer to do the boring tasks on the game http://www.riseoflords.com."

application {
    mainClass.set("org.hildan.bots.riseoflords.RolAutomizerKt")
}

repositories {
    mavenCentral()
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
    kotlinOptions {
        jvmTarget = "11"
        freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn")
    }
}

dependencies {
    implementation("com.github.ajalt.clikt:clikt:3.0.1")
    implementation("org.jsoup:jsoup:1.9.2")
    implementation("ch.qos.logback:logback-classic:1.2.3")
    implementation("javax.mail:mail:1.4.3") // to send emails with logback
}

// to build a fat jar with all dependencies included
tasks.jar {
    manifest { attributes["Main-Class"] = application.mainClass.get() }
    from({
        configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }
    })
}

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

description = "An action sequencer to do the boring tasks on the game http://www.riseoflords.com."

application {
    mainClass.set("org.hildan.bots.riseoflords.RolAutomizerKt")
}

repositories {
    mavenCentral()
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
    kotlinOptions {
        jvmTarget = "15"
        freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn")
    }
}

dependencies {
    implementation("com.github.ajalt.clikt:clikt:3.0.1")
    implementation("org.jsoup:jsoup:1.9.2")
    implementation("ch.qos.logback:logback-classic:1.2.3")
    implementation("javax.mail:mail:1.4.3") // to send emails with logback
}

// to build a fat jar with all dependencies included
tasks.jar {
    manifest { attributes["Main-Class"] = application.mainClass.get() }
    from({
        configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }
    })
}

Upgrade jvm target to 15
Upgrade jvm target to 15

joffrey-bion/rol-automizer,joffrey-bion/rol-automizer