Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions java/gradle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ publishing{
val testGroup = group.toString()
tasks.withType<Test>().configureEach {
systemProperty("project.group", testGroup)
dependsOn(project(":core").tasks.named("publishToMavenLocal"))
}

tasks.register("writeVersion") {
Expand Down
13 changes: 11 additions & 2 deletions java/gradle/src/test/kotlin/ProcessingPluginTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ class ProcessingPluginTest{
}
""".trimIndent())
directory.newFile("sketch/settings.gradle.kts")
directory.newFile("sketch/gradle.properties").writeText(
"""
processing.group=${System.getProperty("project.group").replace(".java", "")}
""".trimIndent()
)
configure(sketchFolder)

val buildResult = GradleRunner.create()
Expand Down Expand Up @@ -218,6 +223,7 @@ class ProcessingPluginTest{
""".trimIndent())
sketchFolder.resolve("gradle.properties").writeText(""")
processing.workingDir = ${sketchFolder.parentFile.absolutePath}
processing.group=${System.getProperty("project.group").replace(".java", "")}
""".trimIndent())
}
val sketchClass = classLoader.loadClass("sketch")
Expand Down Expand Up @@ -250,9 +256,12 @@ class ProcessingPluginTest{
println("Hello World");
}
""".trimIndent())
sketchFolder.resolve("gradle.properties").writeText(""")
sketchFolder.resolve("gradle.properties").writeText(
"""
processing.sketchbook = ${libraryResult.libraryFolder.parentFile.parentFile.absolutePath}
""".trimIndent())
processing.group=${System.getProperty("project.group").replace(".java", "")}
""".trimIndent()
)
}

val sketchClass = classLoader.loadClass("sketch")
Expand Down
Loading