plugins {
    id 'groovy'
    id 'io.micronaut.application' version '4.4.4'
    id 'com.github.johnrengelman.shadow' version '8.1.1'
    id 'com.google.cloud.tools.jib' version '3.4.4'
}

// the configuration was mostly generated from micronaut cli.
java {
    sourceCompatibility = JavaVersion.toVersion("21")
    targetCompatibility = JavaVersion.toVersion("21")
}

version '0.1'
group 'example.jib-gradle'

repositories {
    mavenCentral()
}

dependencies {
    implementation 'io.micronaut:micronaut-http-server-netty'
    // This is a depedency of `micronaut-http-server-netty`.
    implementation 'io.micronaut:micronaut-jackson-databind'
    implementation 'jakarta.annotation:jakarta.annotation-api'
    implementation 'io.micronaut:micronaut-inject'
    implementation 'io.micronaut:micronaut-runtime'
    implementation 'io.micronaut.groovy:micronaut-runtime-groovy'
    runtimeOnly 'ch.qos.logback:logback-classic:1.2.3'
}

compileJava.options.compilerArgs += '-parameters'
compileTestJava.options.compilerArgs += '-parameters'

application {
    mainClass.set("example.micronaut.Application")
}


micronaut {
    runtime("netty")
    processing {
        incremental(true)
        annotations("example.micronaut.*")
    }
}