Skip to content

Commit c5821dd

Browse files
committed
Fix build: integration tests
1 parent 4a251ac commit c5821dd

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

dataframe-json/build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ tasks.test {
4848
useJUnitPlatform()
4949
}
5050

51+
val instrumentedJars: Configuration by configurations.creating {
52+
isCanBeConsumed = true
53+
isCanBeResolved = false
54+
}
55+
56+
artifacts {
57+
add("instrumentedJars", tasks.jar.get().archiveFile) {
58+
builtBy(tasks.jar)
59+
}
60+
}
61+
5162
kotlinPublications {
5263
publication {
5364
publicationName = "dataframeJson"

plugins/dataframe-gradle-plugin/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ tasks.withType<ProcessResources> {
5454
filter {
5555
it.replace(
5656
"%DATAFRAME_JAR%",
57-
listOf(":core", ":dataframe-csv").joinToString("\", \"") {
57+
listOf(":core", ":dataframe-csv", ":dataframe-json").joinToString("\", \"") {
5858
project(it).configurations
5959
.getByName("instrumentedJars")
6060
.artifacts.single()
@@ -111,6 +111,7 @@ val integrationTestTask = task<Test>("integrationTest") {
111111
dependsOn(":dataframe-excel:publishToMavenLocal")
112112
dependsOn(":dataframe-csv:publishToMavenLocal")
113113
dependsOn(":dataframe-jdbc:publishToMavenLocal")
114+
dependsOn(":dataframe-json:publishToMavenLocal")
114115
dependsOn(":dataframe-openapi-generator:publishToMavenLocal")
115116
dependsOn(":dataframe-openapi:publishToMavenLocal")
116117
dependsOn(":publishApiPublicationToMavenLocal")

0 commit comments

Comments
 (0)