-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
94 lines (76 loc) · 2.43 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
plugins {
id 'groovy'
id 'codenarc'
id 'maven-publish'
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.10.0'
id "com.diffplug.gradle.spotless" version "3.18.0"
id "com.github.hierynomus.license" version "0.15.0"
}
apply from: 'gradle/quality.gradle'
repositories { mavenCentral() }
dependencies {
implementation gradleApi()
implementation localGroovy()
compile 'org.yaml:snakeyaml:1.23'
testCompile gradleTestKit()
testRuntime 'org.postgresql:postgresql:42.2.5'
testCompile "org.spockframework:spock-core:1.2-groovy-2.5"
testCompile "org.testcontainers:spock:1.10.6"
testCompile "org.testcontainers:postgresql:1.10.6"
}
sourceSets {
integrationTest {
groovy{ srcDir file('src/integTest/groovy') }
resources { srcDir file('src/integTest/resources') }
compileClasspath += sourceSets.main.output + configurations.testRuntime + configurations.compileClasspath
runtimeClasspath += output + compileClasspath
}
functionalTest {
groovy { srcDirs file('src/funcTest/groovy') }
resources { srcDir file('src/funcTest/resources') }
compileClasspath += sourceSets.main.output + configurations.testRuntime + configurations.compileClasspath
runtimeClasspath += output + compileClasspath
}
}
group = 'net.kaleidos.dwbh'
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
pluginBundle {
website = 'https://github.com/dont-worry-be-happy/dwbh-gradle-fixtures'
vcsUrl = 'https://github.com/dont-worry-be-happy/dwbh-gradle-fixtures'
tags = [
'database',
'fixtures',
'jdbc'
]
}
gradlePlugin {
plugins {
fixturesPlugin {
id = 'net.kaleidos.dwbh.gradle-fixtures-plugin'
displayName = 'DWBH Fixtures plugin'
description = 'Simple plugin for loading database fixtures using a JDBC connection'
implementationClass = 'dwbh.gradle.fixtures.FixturesPlugin'
}
}
}
task integrationTest(type: Test) {
description = 'Runs the integration tests.'
group = 'verification'
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
mustRunAfter test
}
task functionalTest(type: Test) {
description = 'Runs the functional tests.'
group = 'verification'
testClassesDirs = sourceSets.functionalTest.output.classesDirs
classpath = sourceSets.functionalTest.runtimeClasspath
mustRunAfter test
}
check.dependsOn integrationTest, functionalTest