Fix SSL isue, update archivesBaseName

This commit is contained in:
oxmc
2025-03-29 03:03:50 -04:00
parent bceb888c9a
commit c6a54a5939
3 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ apply plugin: 'maven-publish'
version = '1.12.2-1.41'
group = 'net.montoyo.mcef'
archivesBaseName = 'mcef'
archivesBaseName = 'mcef-legacy'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.

View File

@@ -52,7 +52,7 @@ public class LetsEncryptAdder {
}
}
public static void doStuff() {
public static void validateAndInstall() {
String version = System.getProperty("java.version");
Pattern versionPattern = Pattern.compile("^(\\d+)(?:\\.(\\d+))?.*?_?(\\d+)?");
Matcher matcher = versionPattern.matcher(version);

View File

@@ -75,7 +75,7 @@ public class MCEF {
// Add Let's Encrypt certificate
try {
LetsEncryptAdder.addLetsEncryptCertificate();
LetsEncryptAdder.validateAndInstall();
} catch (Exception e) {
Log.error("Failed to add Let's Encrypt certificate: " + e.getMessage());
}