- 配置java目录
project.sourceSets{
val `zzz` by creating {
java {
srcDir("src/jvmMains")
}
}
}
- 添加任务
tasks.register("hello") {
doLast {
println("Hello, Gradle!")
}
}
project.sourceSets{
val `zzz` by creating {
java {
srcDir("src/jvmMains")
}
}
}
tasks.register("hello") {
doLast {
println("Hello, Gradle!")
}
}