GitLab update scheduled for Friday, January 21th between 08:15 and 08:45 CET. If unpleasant, please contact René or Martin.

build.gradle 1014 Bytes
Newer Older
1
2
plugins {
    id "com.github.ben-manes.versions" version "0.20.0"
Johannes Mey's avatar
Johannes Mey committed
3
4
}

5
allprojects  {
6
7
    group = 'de.tudresden.inf.st'
    version = '0.1'
Johannes Mey's avatar
Johannes Mey committed
8
9
}

10
subprojects {
René Schöne's avatar
René Schöne committed
11
    apply plugin: 'java-library'
12
    apply plugin: 'idea'
Johannes Mey's avatar
Johannes Mey committed
13

14
15
    sourceCompatibility = 1.8
    targetCompatibility = 1.8
Johannes Mey's avatar
Johannes Mey committed
16

17
18
19
    task packageSources(type: Jar) {
        classifier = 'sources'
        from sourceSets.main.allSource
Johannes Mey's avatar
Johannes Mey committed
20
21
    }

22
23
24
    artifacts.archives packageSources
    configurations {
        testArtifacts.extendsFrom testRuntime
Johannes Mey's avatar
Johannes Mey committed
25
    }
Johannes Mey's avatar
Johannes Mey committed
26

27
28
29
    task testJar(type: Jar) {
        classifier "test"
        from sourceSets.test.output
Johannes Mey's avatar
Johannes Mey committed
30
31
    }

32
33
    artifacts {
        testArtifacts testJar
Johannes Mey's avatar
Johannes Mey committed
34
35
    }

36
37
    repositories {
        mavenCentral()
Johannes Mey's avatar
Johannes Mey committed
38
39
    }

40
41
42
43
    dependencies {
        implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.2'
        implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.2'
        testImplementation group: 'org.hamcrest', name: 'hamcrest-junit', version: '2.0.0.0'
Johannes Mey's avatar
Johannes Mey committed
44
45
46
    }

}