/*
 * This build 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.3/userguide/java_library_plugin.html
 */

// Apply the java-library plugin to add support for Java Library
apply plugin: 'java-library'
apply plugin: 'eclipse'

// 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()
}

tasks.withType(JavaCompile) {
    sourceCompatibility = "1.8"
    targetCompatibility = "1.8"
}



def projectDir = getProjectDir().absolutePath
def rootPath = file(projectDir + "/../../").path

def javaApiSourcePath = file(rootPath + "/srcs/api-java/").path
def javaApiJavaPath = file(javaApiSourcePath + "/java/").path

def nativeBuildPathWindows = file(rootPath + "/build/lib/release").path
def nativeBuildPathLinux = file(rootPath + "/build/release/lib").path

sourceSets.main {
   java.srcDirs = [javaApiJavaPath]
}

