Skip to content

Commit 03366e3

Browse files
committed
Keep Javadoc line endings the same on Windows and Linux
1 parent 1ae01ed commit 03366e3

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎CHANGELOG.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Base Metals 3.1.1.2602001
44
- Keep raw metals, ore overlays, filled buckets, High/Low Fantasy and the existing gameplay fixes.
55
- Use published OreSpawn 4.1.0.2602001 with the same eleven rules and copper defaults.
66
- Keep existing world profiles, saved items and legacy-upgrade protections.
7+
- Keep generated Javadoc icons consistent between Windows and Linux builds.
78

89
Base Metals 3.1.1.2601021
910

‎gradle/release/artifacts.gradle‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tasks.withType(Jar).configureEach {
99
filteringCharset = 'UTF-8'
1010
filesMatching(['**/*.java', '**/*.json', '**/*.lang', '**/*.mcmeta', '**/*.md',
1111
'**/*.txt', '**/*.cfg', '**/*.properties', '**/*.xml', '**/*.html',
12-
'**/*.css', '**/*.js', '**/element-list', '**/package-list']) {
12+
'**/*.css', '**/*.js', '**/*.svg', '**/element-list', '**/package-list']) {
1313
filter(FixCrLfFilter, eol: FixCrLfFilter.CrLf.newInstance('lf'),
1414
eof: FixCrLfFilter.AddAsisRemove.newInstance('asis'))
1515
}
@@ -285,6 +285,12 @@ tasks.register('verifyReleaseArtifacts') {
285285
if (leaked != null) {
286286
throw new GradleException("${artifactName} contains validation, fixture, legacy, or agent-only path ${leaked.name}")
287287
}
288+
289+
zip.entries().toList().findAll { it.name.endsWith('.svg') }.each { entry ->
290+
if (zip.getInputStream(entry).getText('UTF-8').contains('\r')) {
291+
throw new GradleException("${artifactName} contains non-LF SVG text: ${entry.name}")
292+
}
293+
}
288294
}
289295
}
290296

0 commit comments

Comments
 (0)