Change xz compressing level to 6 since CI server does not have enough memory

This commit is contained in:
huanghongxun
2018-08-08 12:57:42 +08:00
parent 935c2bd6e5
commit 54814181b9
2 changed files with 2 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ task makePack(dependsOn: jar) {
task makePackXz(dependsOn: makePack) doLast {
def packXz = new File(makePack.outputPath.parentFile, makePack.outputPath.name + ".xz")
new XZOutputStream(packXz.newOutputStream(), new LZMA2Options(9)).withCloseable { it << makePack.outputPath.bytes }
new XZOutputStream(packXz.newOutputStream(), new LZMA2Options(6)).withCloseable { it << makePack.outputPath.bytes }
createChecksum(packXz)
}

View File

@@ -33,7 +33,7 @@ import java.util.jar.Manifest;
public final class JarUtils {
public static Optional<Path> thisJar() {
CodeSource codeSource = FileUtils.class.getProtectionDomain().getCodeSource();
CodeSource codeSource = JarUtils.class.getProtectionDomain().getCodeSource();
if (codeSource == null) {
return Optional.empty();
}