40 lines
1.0 KiB
Groovy
40 lines
1.0 KiB
Groovy
|
/*
|
||
|
* This file was generated by the Gradle 'init' task.
|
||
|
*
|
||
|
* This generated file contains a sample Java Library project to get you started.
|
||
|
* For more details take a look at the Java Libraries chapter in the Gradle
|
||
|
* user guide available at https://docs.gradle.org/4.5/userguide/java_library_plugin.html
|
||
|
*/
|
||
|
|
||
|
plugins {
|
||
|
// Apply the java-library plugin to add support for Java Library
|
||
|
id 'java-library'
|
||
|
}
|
||
|
|
||
|
tasks.withType(JavaCompile) {
|
||
|
options.encoding = "UTF-8"
|
||
|
}
|
||
|
|
||
|
sourceCompatibility = targetCompatibility = "1.8" // Need this here so eclipse task generates correctly.
|
||
|
compileJava {
|
||
|
sourceCompatibility = targetCompatibility = "1.8"
|
||
|
}
|
||
|
|
||
|
processResources {
|
||
|
from('resources') {
|
||
|
include '**'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
// Library
|
||
|
compile fileTree(dir:'libs', include:['*.jar'])
|
||
|
}
|
||
|
|
||
|
// In this section you declare where to find the dependencies of your project
|
||
|
repositories {
|
||
|
// Use jcenter for resolving your dependencies.
|
||
|
// You can declare any Maven/Ivy/file repository here.
|
||
|
jcenter()
|
||
|
}
|