Change xz compressing level to 6 since CI server does not have enough memory
This commit is contained in:
@@ -117,7 +117,7 @@ task makePack(dependsOn: jar) {
|
|||||||
|
|
||||||
task makePackXz(dependsOn: makePack) doLast {
|
task makePackXz(dependsOn: makePack) doLast {
|
||||||
def packXz = new File(makePack.outputPath.parentFile, makePack.outputPath.name + ".xz")
|
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)
|
createChecksum(packXz)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ import java.util.jar.Manifest;
|
|||||||
public final class JarUtils {
|
public final class JarUtils {
|
||||||
|
|
||||||
public static Optional<Path> thisJar() {
|
public static Optional<Path> thisJar() {
|
||||||
CodeSource codeSource = FileUtils.class.getProtectionDomain().getCodeSource();
|
CodeSource codeSource = JarUtils.class.getProtectionDomain().getCodeSource();
|
||||||
if (codeSource == null) {
|
if (codeSource == null) {
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user