From e842cc72e17335e228005f892b168bbfd822c155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Tue, 9 Jan 2024 17:39:58 +0100 Subject: [PATCH] Make test cross-OS safe --- .../groovy/net/researchgate/release/ReleasePluginTests.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/groovy/net/researchgate/release/ReleasePluginTests.groovy b/src/test/groovy/net/researchgate/release/ReleasePluginTests.groovy index 8bafcebd..9876f430 100644 --- a/src/test/groovy/net/researchgate/release/ReleasePluginTests.groovy +++ b/src/test/groovy/net/researchgate/release/ReleasePluginTests.groovy @@ -33,7 +33,7 @@ class ReleasePluginTests extends Specification { project = ProjectBuilder.builder().withName('ReleasePluginTest').withProjectDir(testDir).build() def testVersionPropertyFile = project.file('version.properties') testVersionPropertyFile.withWriter { w -> - w.writeLine 'version=1.2' + w.write 'version=1.2\n' } project.plugins.apply(BasePlugin.class) ReleasePlugin releasePlugin = project.plugins.apply(ReleasePlugin.class)