Skip to content

Commit

Permalink
Bump some dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vogti committed Oct 30, 2023
1 parent 9c06290 commit 907d247
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 36 deletions.
7 changes: 2 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,8 @@ licensee {
allow('Apache-2.0')
allow('MIT')

allowDependency('javax.servlet', 'javax.servlet-api', '3.1.0') {
because 'Servlet-api.jar and javax.servlet-*.jar are under the CDDL license, the original source code for this can be found at http://www.eclipse.org/jetty/downloads.php'
}
allowDependency('org.java-websocket', 'Java-WebSocket', '1.5.3') { because 'MIT License' }
allowDependency('org.eclipse.jgit', 'org.eclipse.jgit', '6.4.0.202211300538-r') { because 'Eclipse Distribution License' }
allowDependency('org.java-websocket', 'Java-WebSocket', '1.5.4') { because 'MIT License' }
allowDependency('org.eclipse.jgit', 'org.eclipse.jgit', '6.7.0.202309050840-r') { because 'Eclipse Distribution License' }
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
import kong.unirest.HttpResponse;
import kong.unirest.Unirest;
import kong.unirest.UnirestException;
import kong.unirest.json.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.java_websocket.client.WebSocketClient;
import org.java_websocket.handshake.ServerHandshake;
import org.json.simple.JSONObject;


@Slf4j
Expand Down
30 changes: 15 additions & 15 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@ versionMinor = 3
versionPatch = 1
isSnapshot = true

slf4j_version = 1.7.36
log4j_version = 2.19.0
typesafe_config_version = 1.4.2
commons_lang_version = 3.12.0
commons_io_version = 2.11.0
guava_version = 31.1-jre
slf4j_version = 2.0.9
log4j_version = 2.21.1
typesafe_config_version = 1.4.3
commons_lang_version = 3.13.0
commons_io_version = 2.15.0
guava_version = 32.1.3-jre
airline_version = 2.9.0
javalin_version = 3.13.13
unirest_version = 3.13.10
java_websocket_version = 1.5.3
gson_version = 2.10
json_simple_version = 2.3.1
javalin_version = 5.6.3
unirest_version = 3.14.5
java_websocket_version = 1.5.4
gson_version = 2.10.1
json_simple_version = 4.0.1
winp_version = 1.28
jgit_version = 6.4.0.202211300538-r
jgit_version = 6.7.0.202309050840-r
gradle_tooling_api_version = 7.4.2
font_awesome_version = 5.15.4
jquery_version = 3.6.2
font_awesome_version = 6.4.2
jquery_version = 3.7.1
serializejson_version = 2.9.0
ansi_up_version = 2.0.2
tooltipster_version = 4.2.8
jupiter_version = 5.8.2
jupiter_version = 5.10.0
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static synchronized void addClient( WsConnectContext ctx ) {
clientMap.put( ctx.session, client );
reverseClientMap.put( cid, client );
sendMessage( cid, "clientId", "" + cid );
log.info( "Registered client {} from IP {}", cid, ctx.session.getRemoteAddress().getAddress().getHostAddress() );
log.info( "Registered client {} from IP {}", cid, ctx.session.getRemoteAddress() );
sendMessage( cid, "status", "" + ServiceManager.getStatus() );
sendMessage( cid, "benchmarkerConnected", "" + ClientRegistry.getBenchmarkerConnected() );
sendMessage( cid, "version", ServiceManager.getVersion() );
Expand All @@ -106,7 +106,7 @@ static synchronized void addClient( WsConnectContext ctx ) {
static void removeClient( WsCloseContext closeContext ) {
Client client = clientMap.remove( closeContext.session );
reverseClientMap.remove( client.clientId );
log.info( "Removed client {} from IP {}", client.clientId, closeContext.session.getRemoteAddress().getAddress().getHostAddress() );
log.info( "Removed client {} from IP {}", client.clientId, closeContext.session.getRemoteAddress() );
}


Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/polypheny/control/httpinterface/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
@Slf4j
public class Server {

private static final Gson gson = new Gson();
private static final Gson GSON = new Gson();


public Server( Control control, int port ) {
Javalin javalin = Javalin.create( config -> config.addStaticFiles( "/static" ) ).start( port );
Javalin javalin = Javalin.create( config -> config.staticFiles.add( "/static" ) ).start( port );

javalin.ws( "/socket/", ws -> {
ws.onConnect( ClientRegistry::addClient );
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/polypheny/control/main/TrayCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ public void actionPerformed( ActionEvent e ) {
// Add separator
trayPopupMenu.addSeparator();

// Open Polypheny-Control UI in the browser
// Open Polypheny-UI in the browser
MenuItem puiItem = new MenuItem( "Polypheny-UI" );
puiItem.addActionListener( new ActionListener() {
@SneakyThrows
@Override
public void actionPerformed( ActionEvent e ) {
Desktop.getDesktop().browse( new URI( "http://localhost:8080" ) );
Desktop.getDesktop().browse( new URI( "http://localhost:7659" ) );
}
} );
trayPopupMenu.add( puiItem );
Expand Down
18 changes: 9 additions & 9 deletions src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,12 @@
<title>Polypheny Control</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="/font-awesome/5.15.4/css/all.css">
<link rel="stylesheet" href="/font-awesome/6.4.2/css/all.css">
<link rel="stylesheet" href="/tooltipster/4.2.8/dist/css/tooltipster.bundle.min.css">
<link rel="stylesheet" href="/style.css">
<script>
function setHref() {
document.getElementById( 'webui-link' ).href = window.location.protocol + "//" + window.location.hostname + ":8080/";
}

</script>
</head>

<body onload="setHref()">
<body>
<div class="root">
<div class="main">
<h1 class="heading">Polypheny Control</h1>
Expand Down Expand Up @@ -216,11 +210,17 @@ <h1>Loading...</h1>
</table>
</footer>

<script src="/jquery/3.6.2/jquery.js"></script>
<script src="/jquery/3.7.1/jquery.js"></script>
<script src="/jquery-serializejson/2.9.0/jquery.serializejson.min.js"></script>
<script src="/ansi_up/2.0.2/ansi_up.js"></script>
<script src="/tooltipster/4.2.8/dist/js/tooltipster.bundle.min.js"></script>
<script src="/script.js"></script>
<script>
function setHref() {
document.getElementById( 'webui-link' ).href = window.location.protocol + "//" + window.location.hostname + ":7659/";
}
setHref();
</script>
</body>

</html>

0 comments on commit 907d247

Please sign in to comment.