build.gradle 1.18 KB
Newer Older
Florian Lugou's avatar
Florian Lugou committed
1 2 3 4 5 6 7 8 9 10 11 12
/*
 * This build file was generated by the Gradle 'init' task.
 *
 * This generated file contains a sample Java project to get you started.
 * For more details take a look at the Java Quickstart chapter in the Gradle
 * user guide available at https://docs.gradle.org/3.5/userguide/tutorial_java_projects.html
 */

ext {
    absPath = projectDir.getAbsolutePath()
}

Florian Lugou's avatar
Florian Lugou committed
13 14 15 16
subprojects.each { p ->
    println p.path
}

Florian Lugou's avatar
Florian Lugou committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
subprojects {
    apply plugin: 'java'
    sourceCompatibility = 1.7
    // version =

    sourceSets {
        main {
            java {
                srcDir 'src/main/java'
            }
        }
        test {
            java {
                srcDir 'src/test/java'
            }
        }
    }

    repositories {
        flatDir {
            dirs "${rootProject.absPath}/libs"
        }
    }

    test.workingDir "${rootProject.absPath}/tests/util/fr.tpt.ttool.tests.util"
    libsDirName = "${rootProject.absPath}/bin"

    task copyRuntimeLibs(type: Copy) {
        from configurations.runtime
Florian Lugou's avatar
Florian Lugou committed
46 47
        from 'runtime'
        into "${rootProject.absPath}/bin"
Florian Lugou's avatar
Florian Lugou committed
48 49 50 51 52 53 54
    }
    build.finalizedBy(copyRuntimeLibs)

    clean.doFirst {
        delete "${rootProject.absPath}/bin"
    }
}