import source
This commit is contained in:
36
build.gradle
Normal file
36
build.gradle
Normal file
@@ -0,0 +1,36 @@
|
||||
subprojects {
|
||||
apply plugin: 'java'
|
||||
|
||||
compileJava {
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
options.encoding = 'UTF-8'
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
configurations {
|
||||
compile_excludeCopy
|
||||
compile.extendsFrom compile_excludeCopy
|
||||
}
|
||||
|
||||
dependencies {
|
||||
/* Core */
|
||||
compile (group: 'mc', name: 'core', version: '1.0-SNAPSHOT')
|
||||
|
||||
/* Components */
|
||||
compile (group: 'org.projectlombok', name: 'lombok', version: '1.16.16')
|
||||
}
|
||||
|
||||
task copyDep(type: Copy) {
|
||||
into 'libs'
|
||||
from configurations.compile + configurations.runtime - configurations.compile_excludeCopy
|
||||
}
|
||||
|
||||
task cleanDep(type: Delete) {
|
||||
delete 'libs'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user