Fix SSL isue, update archivesBaseName
This commit is contained in:
@@ -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.
|
||||
|
||||
|
@@ -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);
|
||||
|
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user