2024-02-22 23:27:29 +00:00
|
|
|
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()
|
|
|
|
|
2024-02-23 01:32:23 +00:00
|
|
|
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
|
2024-02-22 23:27:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
|
|
|
srcDirs = [
|
|
|
|
'../src/shared',
|
|
|
|
'../src/rpc-simple',
|
|
|
|
'../src/bukkitb173',
|
|
|
|
]
|
2024-02-23 01:32:23 +00:00
|
|
|
include '**/*.java'
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
srcDirs = ['../src/bukkitb173']
|
|
|
|
include 'plugin.yml'
|
2024-02-22 23:27:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|