Skip to content

Commit 3cfc491

Browse files
committed
build: properly declare data copy in common module
1 parent dfa9b87 commit 3cfc491

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

common/build.gradle.kts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,9 @@ dependencies {
2929
testImplementation("org.springframework.boot:spring-boot-starter-test")
3030
}
3131

32-
tasks.register<Copy>("copyDataFiles") {
33-
from("../.data/")
34-
include("**/*.json", "**/*.json5")
35-
into(layout.buildDirectory.dir("resources/main/data"))
36-
}
37-
38-
tasks.withType<ProcessResources>().configureEach {
39-
dependsOn("copyDataFiles")
32+
tasks.withType<ProcessResources> {
33+
from(rootProject.layout.projectDirectory.dir(".data")) {
34+
into("data")
35+
include("*.json", "*.json5")
36+
}
4037
}

0 commit comments

Comments
 (0)