summaryrefslogtreecommitdiff
path: root/javaEE/hello_sdl_java_ee/build.gradle
blob: 105285adf93ea5dedef5de6cf9dfa1c03b25bc8d (plain)
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
plugins {
    id 'java'
}

version '1.0-SNAPSHOT'

sourceCompatibility = 1.8

repositories {
    mavenCentral()
    mavenLocal()
    google()
    jcenter()
}
// This extraLibs solution is explained here: https://discuss.gradle.org/t/how-to-include-dependencies-in-jar/19571/5
configurations {
    // configuration that holds jars to include in the jar
    extraLibs
}
dependencies {
    extraLibs fileTree(dir: 'libs', include: ['*.jar'])
    //testCompile group: 'junit', name: 'junit', version: '4.12'
    extraLibs project(path: ':javaEE')
    configurations.implementation.extendsFrom(configurations.extraLibs)

}