-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
68 lines (56 loc) · 1.62 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
61
62
63
64
65
66
67
import org.gradle.plugins.ide.eclipse.model.AbstractClasspathEntry
import org.gradle.plugins.ide.eclipse.model.Library
import org.gradle.plugins.ide.eclipse.model.internal.FileReferenceFactory
plugins {
id 'java-library'
id 'eclipse'
}
ext {
teamscaleVersion = '2024.9.0'
}
test {
useJUnitPlatform()
testLogging {
// It's sometimes useful to see the System.out/err during testing
showStandardStreams = true
exceptionFormat = 'full'
}
}
repositories {
mavenCentral()
maven {
url = "https://storage.googleapis.com/teamscale-public-build-artifacts/maven"
}
maven {
url = "https://build.shibboleth.net/maven/releases"
content {
includeGroup("org.opensaml")
includeGroup("net.shibboleth")
}
}
}
dependencies {
implementation platform("com.teamscale:teamscale-bom:$teamscaleVersion")
implementation 'com.teamscale:teamscale-check-api'
implementation 'com.teamscale:teamscale-commons'
implementation 'com.teamscale:teamscale-lib-commons'
implementation 'org.apache.logging.log4j:log4j-api:2.17.1'
testImplementation 'com.teamscale:teamscale-check-api-test-fixtures'
}
eclipse {
classpath {
file.whenMerged {
entries = entries.collect {
if (it in AbstractClasspathEntry && it.kind == 'src' && file(it.path).name == 'resources') {
// Workaround to make Eclipse accept Java files in resource directories
Library library = new Library(new FileReferenceFactory().fromPath(it.path))
if (file(it.path).parentFile.name == 'test') {
library.entryAttributes['test'] = true
}
return library
}
return it
}
}
}
}