-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathbuild.gradle
More file actions
45 lines (36 loc) · 1.16 KB
/
build.gradle
File metadata and controls
45 lines (36 loc) · 1.16 KB
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
description = "Testcontainers :: Neo4j"
def generatedResourcesDir = new File(project.buildDir, "generated-resources")
def customNeo4jPluginDestinationDir = new File(generatedResourcesDir, "custom-plugins")
sourceSets {
customNeo4jPlugin {
java {
srcDir 'src/custom-neo4j-plugin'
}
}
test {
resources {
srcDir generatedResourcesDir
}
}
}
task customNeo4jPluginJar(type: Jar) {
from sourceSets.customNeo4jPlugin.output
archiveFileName = "hello-world.jar"
destinationDirectory = customNeo4jPluginDestinationDir
inputs.files(sourceSets.customNeo4jPlugin.java.srcDirs)
outputs.cacheIf { true }
outputs.dir(customNeo4jPluginDestinationDir)
}
processTestResources.dependsOn customNeo4jPluginJar
dependencies {
customNeo4jPluginCompileOnly "org.neo4j:neo4j:3.5.35"
api project(":testcontainers")
testImplementation 'org.neo4j.driver:neo4j-java-driver:4.4.20'
testImplementation 'org.assertj:assertj-core:3.27.3'
}
tasks.japicmp {
classExcludes = [
"org.testcontainers.containers.Neo4jContainer",
"org.testcontainers.containers.Neo4jLabsPlugin"
]
}