-
Notifications
You must be signed in to change notification settings - Fork 3
/
common-project.gradle
48 lines (38 loc) · 1.12 KB
/
common-project.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
apply plugin:'groovy'
apply plugin: 'java-library'
java {
sourceCompatibility = JavaVersion.VERSION_18
targetCompatibility = JavaVersion.VERSION_18
}
repositories {
maven { url "https://repo.grails.org/grails/core" }
}
configurations {
documentation
}
configurations {
all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
String group = details.requested.group
if(group == 'org.codehaus.groovy') {
details.useVersion(groovyVersion)
}
}
}
}
dependencies {
api "org.codehaus.groovy:groovy:$groovyVersion"
api "org.slf4j:slf4j-api:$slf4jVersion"
testImplementation "org.spockframework:spock-core:${spockVersion}", {
exclude module:'groovy-all'
}
testImplementation "cglib:cglib-nodep:2.2.2"
testImplementation "org.objenesis:objenesis:1.4"
documentation "org.fusesource.jansi:jansi:1.14"
}
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
groovydoc.classpath += (configurations.documentation + configurations.compileClasspath)