Skip to content

Commit

Permalink
Use 4.0.1 version of the swim backend
Browse files Browse the repository at this point in the history
Update Copyright
  • Loading branch information
ajay-gov committed Jul 26, 2022
1 parent 2ffabb1 commit fe18133
Show file tree
Hide file tree
Showing 33 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ See [Traffic in action](https://traffic.swim.ai).

## Prerequisites

* [Install JDK 9+](https://www.oracle.com/technetwork/java/javase/downloads/index.html).
* [Install JDK 11+](https://www.oracle.com/technetwork/java/javase/downloads/index.html).
* Ensure that your `JAVA_HOME` environment variable is pointed to your Java installation location.
* Ensure that your `PATH` includes `$JAVA_HOME`.

Expand Down
18 changes: 9 additions & 9 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ext.compilerArgs = ['-Xlint:all']
// Build with `gradle -Pno-modules` to force compatibility with legacy JVMs.
def javaVersion = System.getProperty('java.version').split('\\.')
ext.jvmVersion = (javaVersion[0] as Integer) > 1 ? javaVersion[0] as Integer : javaVersion[1] as Integer
ext.useModules = jvmVersion >= 9 && !hasProperty('no-modules')
ext.useModules = !hasProperty('no-modules')
ext.moduleArgs = []

repositories {
Expand All @@ -38,8 +38,8 @@ dependencies {
afterEvaluate {
configurations {
apiElements {
sourceCompatibility = JavaVersion.VERSION_1_9
targetCompatibility = JavaVersion.VERSION_1_9
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}

Expand All @@ -57,9 +57,9 @@ afterEvaluate {
options.encoding = 'UTF-8'
classpath = files()
source = sourceSets.main.allJava
sourceCompatibility = JavaVersion.VERSION_1_9
targetCompatibility = JavaVersion.VERSION_1_9
destinationDir = compileJava.destinationDir
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
destinationDirectory = compileJava.destinationDirectory
include '*module-info*'
}
classes.dependsOn compileModuleInfoJava
Expand All @@ -77,8 +77,8 @@ afterEvaluate {
compileJava {
options.compilerArgs += compilerArgs
options.encoding = 'UTF-8'
sourceCompatibility = JavaVersion.VERSION_1_9
targetCompatibility = JavaVersion.VERSION_1_9
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
exclude '*module-info*'
}

Expand All @@ -87,7 +87,7 @@ afterEvaluate {
manifest {
attributes(
'Implementation-Title': moduleName,
'Implementation-Version': version,
'Implementation-Version': archiveVersion,
'Main-Class': mainClassName)
}
}
Expand Down
2 changes: 1 addition & 1 deletion server/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
application.version=3.11.0
application.version=4.0.1
2 changes: 1 addition & 1 deletion server/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/java/swim/traffic/TrafficPlane.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions server/src/main/java/swim/traffic/agent/CityAgent.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -34,7 +34,7 @@ public void linkIntersections() {
intersectionsLink = downlinkMap()
.keyForm(Uri.form())
.hostUri(TRAFFIC_HOST)
.nodeUri(Uri.from(nodeUri().path()))
.nodeUri(Uri.create(nodeUri().path()))
.laneUri("intersections")
.didUpdate(this::didUpdateRemoteIntersection)
.open();
Expand Down
10 changes: 5 additions & 5 deletions server/src/main/java/swim/traffic/agent/IntersectionAgent.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -173,7 +173,7 @@ public void linkInfo() {
if (infoLink == null) {
infoLink = downlink()
.hostUri(TRAFFIC_HOST_URI)
.nodeUri(Uri.from(nodeUri().path()))
.nodeUri(Uri.create(nodeUri().path()))
.laneUri("info")
.onEvent(this::didSetRemoteInfo)
.keepSynced(true)
Expand All @@ -196,7 +196,7 @@ public void linkSchematic() {
if (schematicLink == null) {
schematicLink = downlink()
.hostUri(TRAFFIC_HOST_URI)
.nodeUri(Uri.from(nodeUri().path()))
.nodeUri(Uri.create(nodeUri().path()))
.laneUri("schematic")
.onEvent(this::didSetRemoteSchematic)
.keepSynced(true)
Expand All @@ -221,7 +221,7 @@ public void linkScan() {
lastScanTime = System.currentTimeMillis();
scanLink = downlink()
.hostUri(TRAFFIC_HOST)
.nodeUri(Uri.from(nodeUri().path()))
.nodeUri(Uri.create(nodeUri().path()))
.laneUri("scan/state")
.onEvent(this::didUpdateRemoteScan)
.open()
Expand Down Expand Up @@ -327,7 +327,7 @@ public void linkLatency() {
if (latencyLink == null) {
latencyLink = downlink()
.hostUri(TRAFFIC_HOST_URI)
.nodeUri(Uri.from(nodeUri().path()))
.nodeUri(Uri.create(nodeUri().path()))
.laneUri("latency")
.onEvent(this::didSetRemoteLatency)
.keepSynced(true)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/TrafficViewController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/kpi/PedestrianBackupKpiViewController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/kpi/TrafficKpiViewController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/kpi/VehicleBackupKpiViewController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/kpi/VehicleFlowKpiViewController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/kpi/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/map/ApproachMapView.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/map/ApproachMapViewController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/map/ApproachModel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/map/ApproachPopoverViewController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/map/IntersectionMapView.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/map/IntersectionMapViewController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/map/IntersectionModel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/map/IntersectionPopoverViewController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/map/TrafficMapView.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/map/TrafficMapViewController.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/main/map/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015-2019 SWIM.AI inc.
// Copyright 2015-2022 Swim.inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Swim Traffic Web UI",
"homepage": "https://github.com/swimos/traffic",
"author": "Chris Sachs <chris@swim.ai>",
"copyright": "2015-2019 SWIM.AI inc.",
"copyright": "2015-2022 Swim.inc",
"license": "Apache-2.0",
"repository": "https://github.com/swimos/traffic.git",
"private": true,
Expand Down

0 comments on commit fe18133

Please sign in to comment.