Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 755 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 755 Bytes

Module Info Compiler Sample Gradle Build

Sample project using the module-info-compiler Gradle plugin.

build.gradle.kts:

plugins {
    id("java")
    id("org.glavo.compile-module-info-plugin") version "2.0"
}

group = "org.glavo"

tasks.compileJava {
    options.release.set(8)
}

tasks.jar {
    manifest {
        attributes("Main-Class" to "org.glavo.mic.sample.Main")
    }
}

tasks.named<org.glavo.mic.tasks.CompileModuleInfo>("compileModuleInfo") {
    moduleMainClass = "org.glavo.mic.sample.Main"
}