44 lines
854 B
Groovy
44 lines
854 B
Groovy
plugins {
|
|
id 'eclipse'
|
|
id 'java-library'
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name 'm2-dv8tion'
|
|
url 'https://m2.dv8tion.net/releases'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation 'junit:junit:4.13.2'
|
|
|
|
testImplementation 'net.dv8tion:JDA:4.4.0_352'
|
|
|
|
implementation 'org.jopendocument:jOpenDocument:1.3'
|
|
|
|
implementation('xerces:xercesImpl') {
|
|
version {
|
|
strictly '2.12.2'
|
|
}
|
|
}
|
|
|
|
testRuntimeOnly "org.slf4j:slf4j-nop:1.7.36"
|
|
}
|
|
|
|
compileJava.options.encoding = "UTF-8"
|
|
compileTestJava.options.encoding = "UTF-8"
|
|
|
|
|
|
eclipse.classpath.file {
|
|
whenMerged {
|
|
entries.findAll { isModule(it) }.each { it.entryAttributes['module'] = 'true' }
|
|
}
|
|
}
|
|
|
|
boolean isModule(entry) {
|
|
// filter java 9 modules
|
|
entry.kind == 'lib' // Only libraries can be modules
|
|
}
|