Skip to content

Commit 7e4d96e

Browse files
authored
Platform-independent paths in TestBuildInfoPluginFuncTest (#128303)
1 parent de25987 commit 7e4d96e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build-tools/src/integTest/groovy/org/elasticsearch/gradle/test/TestBuildInfoPluginFuncTest.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import com.fasterxml.jackson.databind.ObjectMapper
55
import org.elasticsearch.gradle.fixtures.AbstractGradleFuncTest
66
import org.gradle.testkit.runner.TaskOutcome
77

8+
import java.nio.file.Path
9+
810
class TestBuildInfoPluginFuncTest extends AbstractGradleFuncTest {
911
def "works"() {
1012
given:
@@ -52,7 +54,7 @@ class TestBuildInfoPluginFuncTest extends AbstractGradleFuncTest {
5254

5355
def location = Map.of(
5456
"module", "com.example",
55-
"representative_class", "com/example/Example.class"
57+
"representative_class", Path.of("com", "example", "Example.class").toString()
5658
)
5759
def expectedOutput = Map.of(
5860
"component", "example-component",

0 commit comments

Comments
 (0)