-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathbuild.gradle
49 lines (39 loc) · 1.25 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
plugins {
id 'groovy'
}
description = "Testcontainers :: Spock-Extension"
dependencies {
api project(':testcontainers')
implementation 'org.spockframework:spock-core:2.3-groovy-4.0'
testImplementation project(':selenium')
testImplementation project(':mysql')
testImplementation project(':postgresql')
testImplementation 'com.zaxxer:HikariCP:4.0.3'
testImplementation 'org.apache.httpcomponents:httpclient:4.5.14'
testRuntimeOnly 'org.postgresql:postgresql:42.7.4'
testRuntimeOnly 'mysql:mysql-connector-java:8.0.33'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.12.1'
testRuntimeOnly 'org.junit.platform:junit-platform-testkit:1.11.0'
testCompileOnly 'org.jetbrains:annotations:24.1.0'
}
tasks.withType(GroovyCompile) {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
options.encoding = 'UTF-8'
}
sourceJar {
/* allJava is default (see gradle/publishing.gradle:sourceJar)
allSource contains both .java and .groovy files */
from sourceSets.main.allSource
}
javadocJar {
dependsOn groovydoc
archiveClassifier = 'javadoc'
from groovydoc.destinationDir
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}