TS still comes with 1.8 and we have a plugin, lets build compatible
This commit is contained in:
parent
69c3c57a67
commit
fc8a468c92
|
@ -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);
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue