-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
125 lines (99 loc) · 3.39 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
plugins {
id 'java'
id 'application'
id 'jacoco'
}
version = findProperty("panl.version")
group = 'com.synapticloop'
repositories {
mavenCentral()
}
sourceSets {
integrationTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/integration/java')
}
resources.srcDir file('src/integration/resources')
}
}
configurations {
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
integrationTestRuntime.extendsFrom runtime
}
dependencies {
// solrj
implementation 'org.apache.solr:solr-solrj:9.6.1'
implementation 'org.apache.solr:solr-solrj-zookeeper:9.6.1'
// HTTP server
implementation 'org.eclipse.jetty.http2:http2-server:10.0.20'
implementation 'org.eclipse.jetty:jetty-servlet:10.0.20'
// logging
implementation 'org.slf4j:slf4j-api:2.0.13'
implementation 'org.apache.logging.log4j:log4j-core:2.23.1'
implementation 'org.apache.logging.log4j:log4j-api:2.23.1'
implementation 'org.apache.logging.log4j:log4j-slf4j2-impl:2.23.1'
// additional utilities
implementation 'commons-io:commons-io:2.16.1'
implementation 'org.json:json:20240303'
// testing
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.mockito:mockito-core:5.12.0'
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.17.1'
implementation "com.formdev:flatlaf:3.5.1"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//
// integration testing
//
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
integrationTestImplementation platform('org.junit:junit-bom:5.9.1')
integrationTestImplementation 'org.junit.jupiter:junit-jupiter'
integrationTestImplementation 'org.mockito:mockito-core:5.12.0'
integrationTestImplementation 'com.fasterxml.jackson.core:jackson-databind:2.17.1'
integrationTestImplementation 'commons-io:commons-io:2.16.1'
integrationTestImplementation 'org.json:json:20240303'
// HTTP server
integrationTestImplementation 'org.eclipse.jetty.http2:http2-server:10.0.20'
integrationTestImplementation 'org.eclipse.jetty:jetty-servlet:10.0.20'
// logging
integrationTestImplementation 'org.slf4j:slf4j-api:2.0.13'
integrationTestImplementation 'org.apache.logging.log4j:log4j-core:2.23.1'
integrationTestImplementation 'org.apache.logging.log4j:log4j-api:2.23.1'
integrationTestImplementation 'org.apache.logging.log4j:log4j-slf4j2-impl:2.23.1'
// additional utilities
integrationTestImplementation 'commons-io:commons-io:2.16.1'
integrationTestImplementation 'org.json:json:20240303'}
application {
mainClass = 'com.synapticloop.panl.Main'
}
distributions {
main {
distributionBaseName = 'solr-panl-9'
}
configurations.all {
resolutionStrategy {
failOnVersionConflict()
force "org.slf4j:slf4j-api:2.0.13",
"commons-io:commons-io:2.16.1",
"com.fasterxml.jackson.core:jackson-databind:2.17.1",
"com.fasterxml.jackson.core:jackson-annotations:2.17.1"
}
}
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
tasks.register('integrationTest', Test) {
useJUnitPlatform()
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
classpath += sourceSets.main.runtimeClasspath
outputs.upToDateWhen { false }
}
jacocoTestReport {
dependsOn test
}