Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta Release 3.1.2 #120

Merged
merged 93 commits into from
Mar 16, 2024
Merged
Show file tree
Hide file tree
Changes from 90 commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
45d4687
switch openhab to v3.2
DivineThreepwood Jun 25, 2022
f31d0f9
apply api changes
DivineThreepwood Jun 25, 2022
457221a
improve docker build log
DivineThreepwood May 23, 2023
742627d
fix targeted java version in gradle
DivineThreepwood May 23, 2023
364e036
link against latest jul version
DivineThreepwood May 23, 2023
1404f66
auto formatting, improve registry shutdown.
DivineThreepwood May 23, 2023
cef40d2
port CustomUnitPool to kotlin.
DivineThreepwood May 23, 2023
8f8a086
add agents, apps to registry
lhuxohl Jul 4, 2023
437be8d
Implement labelString support for AppClass and AgentClass
DivineThreepwood Jul 4, 2023
3a741a2
introduce service and unit template queries
DivineThreepwood Jul 4, 2023
090cad0
code cleanup
DivineThreepwood Jul 4, 2023
7b36a54
Merge pull request #113 from openbase/feature/#112_aggents_apps_graphql
DivineThreepwood Jul 18, 2023
8b65a44
update publish pipeline deps
DivineThreepwood Jul 18, 2023
cf5c85b
Merge remote-tracking branch 'origin/dev' into bugfix/#43_fix_control…
DivineThreepwood Jul 18, 2023
2438a17
fix remote pool filtering and add some debug logs.
DivineThreepwood Jul 26, 2023
3adb5e7
update jul
DivineThreepwood Jul 26, 2023
da926a8
cleanup code
DivineThreepwood Jul 26, 2023
e4f2f35
link against latest jul version
DivineThreepwood Jul 26, 2023
4cee844
update latest jul version
DivineThreepwood Jul 26, 2023
56ca34f
remove debug print
DivineThreepwood Jul 26, 2023
193d2b2
cleanup disabled and outdated gql code fragments.
DivineThreepwood Jul 30, 2023
5427e07
Upgrade SSE dependencies. Stabelize Connection handling by force init…
DivineThreepwood Jul 31, 2023
28fae04
Merge pull request #115 from openbase/gql_server_cleanup
DivineThreepwood Jul 31, 2023
d3717e4
Merge branch 'dev' into bugfix/#43_fix_controller_restart_on_config_c…
DivineThreepwood Jul 31, 2023
ac96d1a
Merge branch 'dev' into 116-bco-openhab-device-manager-loses-connecti…
DivineThreepwood Jul 31, 2023
7030aa5
switch to latest jul version
DivineThreepwood Aug 1, 2023
4a05646
Merge remote-tracking branch 'origin/dev' into bugfix/#43_fix_control…
DivineThreepwood Aug 1, 2023
5a4d840
Merge branch 'dev' into 116-bco-openhab-device-manager-loses-connecti…
DivineThreepwood Aug 1, 2023
66c8b9c
establish jul compatibility again.
DivineThreepwood Aug 3, 2023
b5c2922
reestablish jul compatebility
DivineThreepwood Aug 3, 2023
8a5076e
setup pr branch auto update
DivineThreepwood Aug 3, 2023
6c6ee74
Merge dev into bugfix/#43_fix_controller_restart_on_config_change
github-actions[bot] Aug 3, 2023
2795e61
configure auto update.
DivineThreepwood Aug 3, 2023
8d56eb7
Merge dev into bugfix/#43_fix_controller_restart_on_config_change
github-actions[bot] Aug 3, 2023
dd0f4aa
resolve merge conflicts
DivineThreepwood Aug 3, 2023
4a715c6
fix version
DivineThreepwood Aug 3, 2023
11a83fe
setup review docker deployment
DivineThreepwood Aug 3, 2023
1587183
make unit tests compile again.
DivineThreepwood Aug 3, 2023
62a00a1
fix docker build
DivineThreepwood Aug 3, 2023
8226f54
fix concurrent modification of remote instances.
DivineThreepwood Aug 3, 2023
75f064a
enable review tag for all version
DivineThreepwood Aug 3, 2023
d2a7cff
Merge pull request #114 from openbase/bugfix/#43_fix_controller_resta…
DivineThreepwood Aug 3, 2023
04ff258
Merge remote-tracking branch 'origin/dev' into 116-bco-openhab-device…
DivineThreepwood Aug 3, 2023
7ca1ff9
Merge pull request #117 from openbase/116-bco-openhab-device-manager-…
DivineThreepwood Aug 4, 2023
3b77fb1
link jul to feature branch
DivineThreepwood Aug 6, 2023
70e8762
update gradle and refresh plugin
DivineThreepwood Aug 6, 2023
ae949e9
update jul
DivineThreepwood Aug 6, 2023
25701c1
update deps
DivineThreepwood Aug 6, 2023
c9bf476
Merge pull request #118 from openbase/upgrade-deps
DivineThreepwood Aug 6, 2023
7131a26
link against latest jul version
DivineThreepwood Aug 23, 2023
eaff071
fix lock and registry typos, finish implementation of message regsitry.
DivineThreepwood Aug 23, 2023
c4a8d5c
introduce user message gql query
DivineThreepwood Aug 23, 2023
8b40906
Merge branch 'beta' into dev
DivineThreepwood Oct 10, 2023
5ccb18a
configure beta pr review deployment
DivineThreepwood Oct 11, 2023
072b761
merge latest dev into feature branch
DivineThreepwood Nov 1, 2023
3f2fde9
upgrade to openhab 4.0.3A
DivineThreepwood Nov 1, 2023
e09d606
fix health check configuration
DivineThreepwood Nov 6, 2023
b59bbaf
bump openhab version to 4.0.4
DivineThreepwood Nov 7, 2023
d4ad087
Fix concurrent modification exception in RemoteAction by taking care …
DivineThreepwood Nov 7, 2023
7109649
Merge pull request #121 from openbase/feature/#62_openhab_3.2_support
lhuxohl Nov 7, 2023
b4ee208
Merge dev into 122-concurrentmodificationexception-during-testexecuti…
github-actions[bot] Nov 7, 2023
7567461
Merge pull request #123 from openbase/122-concurrentmodificationexcep…
DivineThreepwood Nov 7, 2023
d7b731f
switch back to snapshot version
DivineThreepwood Nov 20, 2023
91461f4
Implement message registry and minor bug fixes.
DivineThreepwood Dec 26, 2023
7ed32dc
Merge branch 'dev' into 119-implement-low-battery-notification-system
DivineThreepwood Dec 26, 2023
61a8f45
fix compile issue
DivineThreepwood Dec 26, 2023
5b57814
Merge branch '119-implement-low-battery-notification-system' of https…
DivineThreepwood Dec 26, 2023
18b7798
fix unit pool test
DivineThreepwood Dec 27, 2023
7a6dc94
fix mock registry shutdown
DivineThreepwood Dec 27, 2023
511ea42
cleanup logs
DivineThreepwood Dec 27, 2023
0f55722
address some review issues by improving backend to get rid of test sl…
DivineThreepwood Jan 5, 2024
d7db06e
link against compatible jul version
DivineThreepwood Jan 5, 2024
5f0a5d9
fix test issues
DivineThreepwood Jan 5, 2024
a868456
Stablize location and connection consistency handling
DivineThreepwood Jan 8, 2024
e67c3e9
fix flaky location type detection test.
DivineThreepwood Jan 9, 2024
3c687dc
fix typos and fix canDo bug.
DivineThreepwood Jan 9, 2024
2ea5054
make code compile again
DivineThreepwood Jan 9, 2024
2d9daa9
link against latest jul version
DivineThreepwood Jan 9, 2024
a43692d
upgrade jul
DivineThreepwood Jan 16, 2024
3cbc144
link against latest jul version
DivineThreepwood Feb 13, 2024
7d65dcd
make docker image build tag configurable
DivineThreepwood Feb 13, 2024
733aea0
make compatible with latest jul version
DivineThreepwood Feb 13, 2024
3df18d8
link against latest jul version
DivineThreepwood Feb 13, 2024
c906ea1
link against latest jul version that hopefully fixes the registry sta…
DivineThreepwood Feb 20, 2024
96b514c
implement userMessage subscription.
DivineThreepwood Feb 20, 2024
37914dd
fix test issues
DivineThreepwood Feb 20, 2024
993923f
integrate user message subscription in schema
DivineThreepwood Feb 20, 2024
8c09442
fix exception handling in AuthorizationWithTokenHelper to handle user…
DivineThreepwood Feb 20, 2024
272736c
recover notification timing
DivineThreepwood Feb 20, 2024
93bd150
Merge pull request #125 from openbase/119-implement-low-battery-notif…
DivineThreepwood Feb 20, 2024
656f260
link against latest jul version
DivineThreepwood Feb 20, 2024
9a0f523
fix permission handling by making sure the admin is always able to mo…
DivineThreepwood Feb 27, 2024
cce6d35
Merge pull request #129 from openbase/bugfix/128-fix-permission-and-m…
lhuxohl Feb 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/auto-branch-update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Autoupdate PR branches"

on:
push:
branches:
- dev
- "epic/**"

jobs:
autoupdate:
name: autoupdate
runs-on: ubuntu-22.04
steps:
- uses: docker://chinthakagodawita/autoupdate-action:v1
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
MERGE_CONFLICT_ACTION: "ignore"
4 changes: 4 additions & 0 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
pull_request:
branches:
- dev
- beta
types: [opened, labeled, synchronize, reopened, ready_for_review]

jobs:
Expand All @@ -33,6 +34,7 @@ jobs:
# generate Docker tags based on the following events/attributes
tags: |
type=schedule
type=raw,value=review,enable=${{ contains(github.event.pull_request.labels.*.name, 'prebuild docker image') }}
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
Expand Down Expand Up @@ -82,6 +84,7 @@ jobs:
# generate Docker tags based on the following events/attributes
tags: |
type=schedule
type=raw,value=review,enable=${{ contains(github.event.pull_request.labels.*.name, 'prebuild docker image') }}
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
Expand Down Expand Up @@ -115,6 +118,7 @@ jobs:
# generate Docker tags based on the following events/attributes
tags: |
type=schedule
type=raw,value=review,enable=${{ contains(github.event.pull_request.labels.*.name, 'prebuild docker image') }}
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/publish-jars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
- name: "Checkout Branch"
uses: actions/checkout@v3
- name: "Setup Java"
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Publish Packages
Expand Down
11 changes: 7 additions & 4 deletions build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ WHITE='\033[0;37m'

APP_NAME='docker images'
APP_NAME=${BLUE}${APP_NAME}${NC}
echo -e "=== ${APP_NAME} are building${WHITE}${NC}" &&
docker build -f docker/Dockerfile -t openbaseorg/bco:local .
docker build -f docker/device-manager/openhab/Dockerfile -t openbaseorg/bco-device-manager-openhab:local --build-arg BCO_BASE_IMAGE_VERSION=local docker/device-manager/openhab
docker build -f docker/bco-demo/Dockerfile -t openbaseorg/bco-demo:local --build-arg BCO_BASE_IMAGE_VERSION=local docker/bco-demo
IMAGE_TAG=${1:-local}

echo -e "=== ${APP_NAME} build docker image...${WHITE}${NC}"

docker build -f docker/Dockerfile -t openbaseorg/bco:${IMAGE_TAG} .
docker build -f docker/device-manager/openhab/Dockerfile -t openbaseorg/bco-device-manager-openhab:${IMAGE_TAG} --build-arg BCO_BASE_IMAGE_VERSION=${IMAGE_TAG} docker/device-manager/openhab
docker build -f docker/bco-demo/Dockerfile -t openbaseorg/bco-demo:${IMAGE_TAG} --build-arg BCO_BASE_IMAGE_VERSION=${IMAGE_TAG} docker/bco-demo

# use this for debugging purpose: DOCKER_BUILDKIT=0 docker build -f docker/Dockerfile --progress=plain .
echo -e "=== ${APP_NAME} were ${GREEN}successfully${NC} build.${NC}"
9 changes: 9 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
Expand All @@ -12,3 +14,10 @@ nexusPublishing {
}
}
}


tasks.withType(KotlinCompile::class).all {
kotlinOptions {
jvmTarget = "17"
}
}
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ ENV \
BCO_HOME="/home/bco/data" \
BCO_LOGS="/home/bco/data/log" \
BCO_BINARY="/usr/bin/bco" \
BCO_OPTIONS=""
MQTT_BROKER="mqtt-broker" \
BCO_OPTIONS="--host ${MQTT_BROKER}"

# Basic build-time metadata as defined at http://label-schema.org
LABEL org.label-schema.build-date=$BUILD_DATE \
Expand Down Expand Up @@ -111,7 +112,7 @@ ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]

# Configure healthcheck
# todo: make sure only the registry availability is checks since devices are not maintained by this instance.
HEALTHCHECK --interval=15m --timeout=2m CMD bco-validate >/dev/null || exit 1
HEALTHCHECK --interval=15m --timeout=2m CMD bco-validate --host ${MQTT_BROKER} > /dev/null || exit 1

# switch to root, let the entrypoint drop back to bco user
USER root
Expand Down
4 changes: 2 additions & 2 deletions docker/bco-demo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ FROM openbaseorg/bco:${BCO_BASE_IMAGE_VERSION}
ENV \
JAVA_OPTS="" \
OPENHAB_CONF="/etc/openhab2" \
BCO_OPTIONS="--db /tmp/bco/db" \
BCO_OPTIONS="--db /tmp/bco/db --host ${MQTT_BROKER}" \
BCO_MODULE_PREPARE_SCRIPT="bco-module-prepare.sh"

# Basic build-time metadata as defined at http://label-schema.org
Expand Down Expand Up @@ -51,7 +51,7 @@ COPY --from=builder /workspace/db /usr/share/bco/db/

# Configure healthcheck
# todo: make sure only device offered by this device manager are checked
HEALTHCHECK --interval=15m --timeout=2m CMD bco-validate >/dev/null || exit 1
HEALTHCHECK --interval=15m --timeout=2m CMD bco-validate --host ${MQTT_BROKER} >/dev/null || exit 1

# switch to root, let the entrypoint drop back to bco user
USER root
Expand Down
3 changes: 1 addition & 2 deletions docker/device-manager/openhab/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ FROM openbaseorg/bco:${BCO_BASE_IMAGE_VERSION}
ENV \
JAVA_OPTS="" \
OPENHAB_CONF="/etc/openhab2" \
BCO_OPTIONS="" \
BCO_MODULE_PREPARE_SCRIPT="bco-module-prepare.sh"

# Basic build-time metadata as defined at http://label-schema.org
Expand All @@ -33,7 +32,7 @@ RUN ln -s /usr/local/bin/${BCO_MODULE_PREPARE_SCRIPT} && \

# Configure healthcheck
# todo: make sure only device offered by this device manager are checked
HEALTHCHECK --interval=15m --timeout=2m CMD bco-validate >/dev/null || exit 1
HEALTHCHECK --interval=15m --timeout=2m CMD bco-validate --host ${MQTT_BROKER} >/dev/null || exit 1

# switch to root, let the entrypoint drop back to bco user
USER root
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version = 3.1-SNAPSHOT
org.gradle.caching = true
org.gradle.parallel = false
org.gradle.daemon = true
org.gradle.jvmargs = -Xmx2000m
version=3.1-SNAPSHOT
org.gradle.caching=true
org.gradle.parallel=false
org.gradle.daemon=true
org.gradle.jvmargs=-Xmx2000m
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
12 changes: 8 additions & 4 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand All @@ -80,10 +80,10 @@ do
esac
done

APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

APP_NAME="Gradle"
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
Expand Down Expand Up @@ -143,12 +143,16 @@ fi
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down
1 change: 1 addition & 0 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

Expand Down
2 changes: 1 addition & 1 deletion lib/jul
Submodule jul updated 51 files
+8 −0 build.gradle.kts
+0 −8 buildSrc/build.gradle.kts
+5 −5 buildSrc/src/main/kotlin/org.openbase.jul.gradle.kts
+3 −3 gradle.properties
+ gradle/wrapper/gradle-wrapper.jar
+3 −1 gradle/wrapper/gradle-wrapper.properties
+16 −8 gradlew
+1 −0 gradlew.bat
+0 −37 module/audio/src/main/java/org/openbase/jul/audio/AudioData.java
+15 −0 module/audio/src/main/java/org/openbase/jul/audio/AudioData.kt
+0 −85 module/audio/src/main/java/org/openbase/jul/audio/AudioDataImpl.java
+44 −0 module/audio/src/main/java/org/openbase/jul/audio/AudioDataImpl.kt
+0 −33 module/audio/src/main/java/org/openbase/jul/audio/AudioFileHolder.java
+11 −0 module/audio/src/main/java/org/openbase/jul/audio/AudioFileHolder.kt
+0 −149 module/audio/src/main/java/org/openbase/jul/audio/AudioPlayer.java
+156 −0 module/audio/src/main/java/org/openbase/jul/audio/AudioPlayer.kt
+0 −31 module/audio/src/main/java/org/openbase/jul/audio/AudioSource.java
+7 −0 module/audio/src/main/java/org/openbase/jul/audio/AudioSource.kt
+37 −4 ...munication/controller/src/main/java/org/openbase/jul/communication/controller/AbstractControllerServer.java
+42 −26 .../communication/controller/src/main/java/org/openbase/jul/communication/controller/AbstractRemoteClient.java
+9 −6 module/communication/default/src/main/java/org/openbase/jul/communication/exception/RPCResolvedException.java
+3 −3 module/communication/mqtt/src/main/java/org/openbase/jul/communication/mqtt/RPCClientImpl.kt
+24 −12 module/communication/mqtt/src/main/java/org/openbase/jul/communication/mqtt/RPCServerImpl.kt
+8 −8 module/communication/mqtt/src/main/java/org/openbase/jul/communication/mqtt/SharedMqttClient.kt
+5 −5 module/communication/mqtt/src/main/java/org/openbase/jul/communication/mqtt/SubscriberImpl.kt
+14 −11 module/exception/src/main/java/org/openbase/jul/exception/printer/ExceptionPrinter.java
+7 −4 module/extension/protobuf/src/main/java/org/openbase/jul/extension/protobuf/AbstractListDiff.java
+11 −3 module/extension/type/processing/src/main/java/org/openbase/jul/extension/type/processing/ScopeProcessor.java
+3 −3 ...xtension/type/util/src/main/java/org/openbase/jul/extension/type/util/TransactionSynchronizationFuture.java
+6 −9 module/pattern/default/src/main/java/org/openbase/jul/pattern/AbstractObservable.java
+0 −688 module/pattern/launch/src/main/java/org/openbase/jul/pattern/launch/AbstractLauncher.java
+716 −0 module/pattern/launch/src/main/java/org/openbase/jul/pattern/launch/AbstractLauncher.kt
+0 −372 module/schedule/src/main/java/org/openbase/jul/schedule/BundledReentrantReadWriteLock.java
+367 −0 module/schedule/src/main/java/org/openbase/jul/schedule/BundledReentrantReadWriteLock.kt
+3 −2 module/schedule/src/main/java/org/openbase/jul/schedule/RecurrenceEventFilter.java
+7 −7 module/schedule/src/main/java/org/openbase/jul/schedule/WatchDog.java
+144 −47 module/storage/src/main/java/org/openbase/jul/storage/registry/AbstractRegistry.java
+2 −3 module/storage/src/main/java/org/openbase/jul/storage/registry/AbstractSynchronizer.java
+4 −4 module/storage/src/main/java/org/openbase/jul/storage/registry/ControllerRegistryImpl.java
+135 −62 module/storage/src/main/java/org/openbase/jul/storage/registry/FileSynchronizedRegistryImpl.java
+17 −18 module/storage/src/main/java/org/openbase/jul/storage/registry/version/GitVersionControl.java
+25 −33 module/transformation/src/main/java/org/openbase/rct/impl/mqtt/TransformCommunicatorImpl.kt
+15 −18 module/visual/javafx/build.gradle.kts
+9 −4 module/visual/swing/build.gradle.kts
+0 −421 module/visual/swing/src/main/java/org/openbase/jul/visual/swing/engine/draw2d/AbstractResourcePanel.java
+413 −0 module/visual/swing/src/main/java/org/openbase/jul/visual/swing/engine/draw2d/AbstractResourcePanel.kt
+0 −267 module/visual/swing/src/main/java/org/openbase/jul/visual/swing/engine/draw2d/ResourceDisplayPanel.java
+236 −0 module/visual/swing/src/main/java/org/openbase/jul/visual/swing/engine/draw2d/ResourceDisplayPanel.kt
+36 −0 module/visual/swing/src/main/java/org/openbase/jul/visual/swing/engine/draw2d/ResourcePanel.kt
+10 −10 settings.gradle.kts
+85 −998 versions.properties
10 changes: 7 additions & 3 deletions module/api/graphql/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id("org.openbase.bco")
id("org.springframework.boot")
id("io.spring.dependency-management") version "1.0.11.RELEASE"
id("io.spring.dependency-management") version "1.1.2"
}

dependencies {
Expand All @@ -12,12 +12,17 @@ dependencies {
exclude(group = "org.springframework.boot", module = "spring-boot-starter-tomcat")
}
api("org.springframework.boot:spring-boot-starter-jetty:_")
implementation("org.springframework.boot:spring-boot-starter-websocket:_") {
api("org.springframework.boot:spring-boot-starter-websocket:_") {
exclude(group = "org.springframework.boot", module = "spring-boot-starter-tomcat")
}
api(Spring.boot.webflux)
api("org.springframework:spring-webmvc:_")

api("org.eclipse.jetty:jetty-server:11.0.14")
api("jakarta.servlet:jakarta.servlet-api:6.0.0")



api(rootProject.files("lib/external/rejoiner-0.5.0-bco.jar"))
api(rootProject.files("lib/external/rejoiner-guice-0.5.0-bco.jar"))
// disabled since rejoiner is linked locally.
Expand All @@ -35,7 +40,6 @@ dependencies {
api("com.google.inject:guice:_")
api("com.google.guava:guava:_")
api("net.javacrumbs.future-converter:future-converter-java8-guava:_")
api("org.jmdns:jmdns:_")
api(ReactiveX.rxJava2)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import org.slf4j.LoggerFactory
import org.springframework.boot.SpringApplication
import org.springframework.context.ConfigurableApplicationContext
import java.util.*
import javax.jmdns.ServiceInfo

/*-
* #%L
Expand Down Expand Up @@ -55,19 +54,19 @@ import javax.jmdns.ServiceInfo
LOGGER.info("Start webserver...")
context = SpringApplication.run(BcoGraphQlApiSpringBootApplication::class.java, *JPService.getArgs())
LOGGER.info("Advertise graphql service...")
val qualifiedNameMap = HashMap<ServiceInfo.Fields, String>()
qualifiedNameMap[ServiceInfo.Fields.Application] = "http"
qualifiedNameMap[ServiceInfo.Fields.Instance] = "graphql-bco-openbase"
qualifiedNameMap[ServiceInfo.Fields.Subtype] = "graphql"
// val qualifiedNameMap = HashMap<ServiceInfo.Fields, String>()
// qualifiedNameMap[ServiceInfo.Fields.Application] = "http"
// qualifiedNameMap[ServiceInfo.Fields.Instance] = "graphql-bco-openbase"
// qualifiedNameMap[ServiceInfo.Fields.Subtype] = "graphql"
val propertyMap = HashMap<String, String>()
propertyMap["bco-uuid"] = UUID.randomUUID().toString()
propertyMap["path"] = "graphql"

// lookup port
context?.getEnvironment()?.getProperty("server.port")?.toInt()?.let { port ->
// register service advertising
serviceAdvertiser!!.register(qualifiedNameMap, port, 0, 0, false, propertyMap)
}
// context?.getEnvironment()?.getProperty("server.port")?.toInt()?.let { port ->
// // register service advertising
// serviceAdvertiser!!.register(qualifiedNameMap, port, 0, 0, false, propertyMap)
// }
}

override fun deactivate() {
Expand Down
Loading
Loading