39 lines
712 B
Groovy
39 lines
712 B
Groovy
|
apply plugin: 'java'
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation files('craftbukkit-0.0.1-SNAPSHOT.jar')
|
||
|
}
|
||
|
|
||
|
tasks.withType(JavaCompile).configureEach {
|
||
|
it.options.encoding = "UTF-8"
|
||
|
it.options.release = 8
|
||
|
it.options.compilerArgs += ['-Xlint:deprecation', '-Xlint:unchecked']
|
||
|
}
|
||
|
|
||
|
java {
|
||
|
withSourcesJar()
|
||
|
|
||
|
sourceCompatibility = 1.8
|
||
|
targetCompatibility = 1.8
|
||
|
}
|
||
|
|
||
|
sourceSets {
|
||
|
main {
|
||
|
java {
|
||
|
srcDirs = [
|
||
|
'../src/shared',
|
||
|
'../src/rpc-simple',
|
||
|
'../src/bukkitb173',
|
||
|
]
|
||
|
resources {
|
||
|
srcDirs = ['../src']
|
||
|
include 'plugin.yml'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|