forked from StefanMacke/ao-railway
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
60 lines (49 loc) · 1.3 KB
/
build.gradle
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
description = "Framework for Railway Oriented Programming"
logger.info("Gradle Projekt ${project.name}")
logger.info("Das Encoding des Projekts <${project.group}.${project.name}> ist ${project.encoding}")
logger.info(description)
logger.debug("Build mit project.gradleApplyFromPath: ${project.gradleApplyFromPath}")
logger.debug("Konfiguration unter project.pluginConfigPath: ${project.pluginConfigPath}")
configurations.create('${project.name}')
buildscript {
repositories {
mavenCentral()
}
apply from: "${project.gradleApplyFromPath}/net-aokv-classpath.gradle", to: buildscript
}
logger.debug('buildscript Einstellungen wurden aktiviert')
[
"maven",
"project-report",
"java",
"eclipse",
"junit4",
"mockito",
"checkstyle",
"findbugs",
"pmd",
"jacoco",
"jdepend"
].each {
apply from: "${project.gradleApplyFromPath}/net-aokv-${it}.gradle"
}
repositories.each { logger.info("Repository $it.name") }
dependencies {
compile 'xml-apis:xml-apis:1.4.01',
'com.google.guava:guava:19.0'
}
configurations.all {
resolutionStrategy {
force 'xml-apis:xml-apis:1.4.01'
}
}
jar {
from sourceSets.main.allJava
}
task testJar(type: Jar, dependsOn: testClasses) {
classifier = "tests"
from sourceSets.test.output + sourceSets.test.allSource
}
artifacts {
archives testJar
}