@@ -34,20 +34,23 @@ tasks.withType(Javadoc).configureEach {
3434 failOnError = false
3535 options. encoding = ' UTF-8'
3636 options. addStringOption(' Xdoclint:none' , ' -quiet' )
37+ options. addStringOption(' docencoding' , ' UTF-8' )
38+ options. addStringOption(' charset' , ' UTF-8' )
3739 options. addBooleanOption(' notimestamp' , true )
3840}
3941tasks. withType(AbstractArchiveTask ). configureEach {
4042 preserveFileTimestamps = false
4143 reproducibleFileOrder = true
4244 includeEmptyDirs = false
45+ exclude ' **/desktop.ini' , ' **/Thumbs.db' , ' **/.DS_Store'
4346}
4447// Mapped dependency bytes no longer match their original signatures. Keep the
4548// verified downloads intact and strip signatures only from renamed copies.
4649tasks. withType(net.minecraftforge.renamer.gradle.RenameJar ). configureEach {
4750 additionalArgs. addAll(' --strip-sigs' , ' ALL' , ' --disable-abstract-param' )
4851}
4952
50- def textPatterns = [' cfg' , ' info' , ' java' , ' json' , ' lang' , ' mcmeta' , ' md' , ' properties' , ' txt' , ' xml' ]
53+ def textPatterns = [' cfg' , ' css ' , ' html ' , ' info' , ' java' , ' js ' , ' json' , ' lang' , ' mcmeta' , ' md' , ' properties' , ' txt' , ' xml' ]
5154 .collect { " **/*.${ it} " . toString() }
5255def normalizeText = { details ->
5356 details. filter(FixCrLfFilter , eol : FixCrLfFilter.CrLf . newInstance(' lf' ),
@@ -141,6 +144,7 @@ renamer.mappings.from minecraft.dependency.toSrgFile
141144
142145tasks. named(' processResources' , ProcessResources ) {
143146 filteringCharset = ' UTF-8'
147+ exclude ' **/desktop.ini' , ' **/Thumbs.db' , ' **/.DS_Store'
144148 inputs. property ' version' , project. version
145149 inputs. property ' mcversion' , project. minecraft_version
146150 filesMatching(' mcmod.info' ) { expand version : project. version, mcversion : project. minecraft_version }
@@ -158,7 +162,10 @@ tasks.named('jar', Jar) {
158162 ' FMLCorePluginContainsFMLMod' : ' true' , ' FMLCorePlugin' : project. coreplugin)
159163}
160164[' sourcesJar' , ' javadocJar' ]. each { name ->
161- tasks. named(name, Jar ) { filesMatching(textPatterns, normalizeText) }
165+ tasks. named(name, Jar ) {
166+ filteringCharset = ' UTF-8'
167+ filesMatching(textPatterns, normalizeText)
168+ }
162169}
163170
164171ext. baseMetalsBuild = [developmentOutput : developmentOutput]. asImmutable()
0 commit comments