home /
connvers /
build.gradle
build.gradle
plugins {
id 'java'
}
group 'avividi'
version '0.5.0'
repositories {
mavenCentral()
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes 'Main-Class': 'avividi.connvers.Connvers'
}
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
}
ext.moduleName = 'avividi.connvers'
compileJava {
inputs.property("moduleName", moduleName)
doFirst {
options.encoding = "UTF-8"
options.compilerArgs = [
'--module-path', classpath.asPath,
'--patch-module', "$moduleName=" + files(sourceSets.main.resources.srcDirs).asPath,
]
classpath = files()
}
}
sourceSets {
main.output.resourcesDir = main.java.outputDir
}
test {
useJUnitPlatform()
}