TS still comes with 1.8 and we have a plugin, lets build compatible

This commit is contained in:
rusEFI LLC 2024-11-01 12:35:36 -04:00
parent 69c3c57a67
commit fc8a468c92
2 changed files with 6 additions and 5 deletions

View File

@ -3,6 +3,7 @@ package com.rusefi.ui.util;
import com.devexperts.logging.Logging;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
@ -58,8 +59,8 @@ public class JustOneInstance {
}
private static void handleConnection(Socket clientSocket) throws IOException {
try (clientSocket) {
PrintWriter networkWriter = new PrintWriter(clientSocket.getOutputStream(), true);
try (OutputStream outputStream = clientSocket.getOutputStream()) {
PrintWriter networkWriter = new PrintWriter(outputStream, true);
String msg = new Date() + "Already running " + ProcessHandle.current().pid() + "\r\n";
log.info(msg);
networkWriter.println(msg);

View File

@ -8,9 +8,9 @@ allprojects {
plugins.withType(JavaPlugin) {
java {
// let's be vocal that 1.8 is not enough
sourceCompatibility = '11'
targetCompatibility = '11'
// TS still comes with 1.8 and we have a plugin, lets build compatible
sourceCompatibility = '8'
targetCompatibility = '8'
}
dependencies {