forked from smallXueTu/RPG_Server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
38 lines (35 loc) · 1.07 KB
/
build.gradle
File metadata and controls
38 lines (35 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
plugins {
id 'java'
id "org.jetbrains.kotlin.jvm" version "1.6.10"
}
repositories {
mavenCentral()
}
apply plugin: "org.jetbrains.kotlin.jvm"
group 'cn.ltcraft'
version '0.0.1'
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
repositories {
mavenCentral()
}
/* 添加通用依赖 */
dependencies {
compile fileTree(dir: '../ServerRun/', includes: ['spigot-1.12.2.jar'])
compile fileTree(dir: '../ServerRun/plugins/', includes: ['*.jar'])
compile fileTree(dir: '../ServerRun/plugins/PlaceholderAPI/expansions/', includes: ['*.jar'])
compile fileTree(dir: '../ServerRun/libs/', includes: ['*.jar'])
compile fileTree(dir: '../ServerRun/plugins/PxTools/lib', includes: ['*.jar'])
compile "org.jetbrains.kotlin:kotlin-stdlib:1.6.10"
}
task createDirs(){
sourceSets*.java.srcDirs*.each {
it.mkdirs()
}
sourceSets*.resources.srcDirs*.each{
it.mkdirs()
}
}
}