Skip to content

Commit

Permalink
Fix build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Nov 12, 2022
1 parent 371a026 commit dd7a704
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ private String write(GradleBuild build) {
private String write(GroovyDslGradleBuildWriter writer, GradleBuild build) {
StringWriter out = new StringWriter();
writer.writeTo(new IndentingWriter(out, new SimpleIndentStrategy("\t")), build);
return out.toString();
return out.toString().replace("\r\n", "\n");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private String generateSettings(GradleBuild build) {
GradleSettingsWriter writer = new GroovyDslGradleSettingsWriter();
StringWriter out = new StringWriter();
writer.writeTo(new IndentingWriter(out, new SimpleIndentStrategy("\t")), build);
return out.toString();
return out.toString().replace("\r\n", "\n");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ private String generateBuild(GradleBuild build) {
private String generateBuild(KotlinDslGradleBuildWriter writer, GradleBuild build) {
StringWriter out = new StringWriter();
writer.writeTo(new IndentingWriter(out, new SimpleIndentStrategy("\t")), build);
return out.toString();
return out.toString().replace("\r\n", "\n");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private String generateSettings(GradleBuild build) {
GradleSettingsWriter writer = new KotlinDslGradleSettingsWriter();
StringWriter out = new StringWriter();
writer.writeTo(new IndentingWriter(out, new SimpleIndentStrategy("\t")), build);
return out.toString();
return out.toString().replace("\r\n", "\n");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void defaultIndentStrategyIsUsed() throws IOException {
}

private String content() {
return this.stringWriter.toString();
return this.stringWriter.toString().replace("\r\n", "\n");
}

}

0 comments on commit dd7a704

Please sign in to comment.