Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit b237fa7

Browse files
author
Johannes Donath
committed
Merge branch 'release/2.4.0'
2 parents 1fd188a + 1d4a612 commit b237fa7

33 files changed

+968
-128
lines changed

pom.xml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,20 @@
2222

2323
<groupId>tv.dotstart.beacon</groupId>
2424
<artifactId>parent</artifactId>
25-
<version>2.3.0</version>
25+
<version>2.4.0</version>
2626
<packaging>pom</packaging>
2727

2828
<properties>
2929
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3030

31+
<kotlin.version>1.4.20</kotlin.version>
3132
<mmupnp.version>3.1.1</mmupnp.version>
3233
<jackson.version>2.10.0.pr1</jackson.version>
33-
<kotlin.version>1.3.41</kotlin.version>
3434
<log4j.version>2.12.0</log4j.version>
3535
<openjfx.version>11</openjfx.version>
3636
<protobuf.version>3.9.0</protobuf.version>
37+
38+
<raygun.token/>
3739
</properties>
3840

3941
<licenses>
@@ -85,7 +87,7 @@
8587
<dependency>
8688
<groupId>tv.dotstart.beacon</groupId>
8789
<artifactId>repository-model</artifactId>
88-
<version>2.3.0</version>
90+
<version>2.4.0</version>
8991
</dependency>
9092

9193
<dependency>
@@ -130,7 +132,7 @@
130132
<dependency>
131133
<groupId>com.jfoenix</groupId>
132134
<artifactId>jfoenix</artifactId>
133-
<version>9.0.9</version>
135+
<version>9.0.10</version>
134136
</dependency>
135137
<dependency>
136138
<groupId>com.github.ajalt</groupId>
@@ -144,6 +146,12 @@
144146
<version>${mmupnp.version}</version>
145147
</dependency>
146148

149+
<dependency>
150+
<groupId>com.mindscapehq</groupId>
151+
<artifactId>core</artifactId>
152+
<version>3.0.0</version>
153+
</dependency>
154+
147155
<dependency>
148156
<groupId>org.apache.commons</groupId>
149157
<artifactId>commons-compress</artifactId>

repository-compiler/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<parent>
2424
<artifactId>parent</artifactId>
2525
<groupId>tv.dotstart.beacon</groupId>
26-
<version>2.3.0</version>
26+
<version>2.4.0</version>
2727
</parent>
2828

2929
<artifactId>repository-compiler</artifactId>
@@ -66,6 +66,12 @@
6666
<groupId>org.apache.logging.log4j</groupId>
6767
<artifactId>log4j-api</artifactId>
6868
</dependency>
69+
<dependency>
70+
<groupId>org.apache.logging.log4j</groupId>
71+
<artifactId>log4j-core</artifactId>
72+
<scope>runtime</scope>
73+
<optional>true</optional>
74+
</dependency>
6975
</dependencies>
7076

7177
<build>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright 2020 Johannes Donath <[email protected]>
4+
~ and other copyright owners as documented in the project's IP log.
5+
~
6+
~ Licensed under the Apache License, Version 2.0 (the "License");
7+
~ you may not use this file except in compliance with the License.
8+
~ You may obtain a copy of the License at
9+
~
10+
~ http://www.apache.org/licenses/LICENSE-2.0
11+
~
12+
~ Unless required by applicable law or agreed to in writing, software
13+
~ distributed under the License is distributed on an "AS IS" BASIS,
14+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
~ See the License for the specific language governing permissions and
16+
~ limitations under the License.
17+
-->
18+
<Configuration status="WARN">
19+
<Properties>
20+
<Property name="LOG_PATTERN">
21+
<![CDATA[%style{[%d{HH:mm:ss}]}{dim,blue} %style{[%25.25t]}{dim,cyan} %highlight{[%level]}: %highlight{%msg}%n]]></Property>
22+
</Properties>
23+
<Appenders>
24+
<Console name="Console" target="SYSTEM_OUT" follow="true">
25+
<PatternLayout pattern="${LOG_PATTERN}"/>
26+
</Console>
27+
</Appenders>
28+
<Loggers>
29+
<Root level="info">
30+
<AppenderRef ref="Console"/>
31+
</Root>
32+
</Loggers>
33+
</Configuration>

repository-model/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<parent>
2424
<artifactId>parent</artifactId>
2525
<groupId>tv.dotstart.beacon</groupId>
26-
<version>2.3.0</version>
26+
<version>2.4.0</version>
2727
</parent>
2828

2929
<artifactId>repository-model</artifactId>

repository-model/src/main/proto/model.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ message ServiceDefinition {
6767
enum Category {
6868
GAME = 0;
6969
TOOL = 1;
70+
71+
/**
72+
* Service Editor Marker Category
73+
*
74+
* This category enables editor features within the Beacon UIs. It should thus be avoided in
75+
* distributed repositories as changes cannot be persisted.
76+
*/
77+
CUSTOM = 999;
7078
}
7179

7280
/**

ui/pom.xml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<parent>
2424
<artifactId>parent</artifactId>
2525
<groupId>tv.dotstart.beacon</groupId>
26-
<version>2.3.0</version>
26+
<version>2.4.0</version>
2727
</parent>
2828

2929
<artifactId>ui</artifactId>
@@ -82,6 +82,11 @@
8282
<artifactId>mmupnp</artifactId>
8383
</dependency>
8484

85+
<dependency>
86+
<groupId>com.mindscapehq</groupId>
87+
<artifactId>core</artifactId>
88+
</dependency>
89+
8590
<dependency>
8691
<groupId>org.apache.commons</groupId>
8792
<artifactId>commons-compress</artifactId>
@@ -151,6 +156,16 @@
151156

152157
<includes>
153158
<include>beacon.properties</include>
159+
<include>raygun.token</include>
160+
</includes>
161+
</resource>
162+
<resource>
163+
<directory>${project.basedir}/src/main/resources/META-INF</directory>
164+
<targetPath>META-INF</targetPath>
165+
<filtering>false</filtering>
166+
167+
<includes>
168+
<include>services/*</include>
154169
</includes>
155170
</resource>
156171
<resource>

ui/src/main/kotlin/tv/dotstart/beacon/Beacon.kt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import javafx.application.Application
2020
import javafx.scene.image.Image
2121
import javafx.stage.Stage
2222
import tv.dotstart.beacon.config.Configuration
23+
import tv.dotstart.beacon.controller.SplashController
2324
import tv.dotstart.beacon.preload.Preloader
2425
import tv.dotstart.beacon.util.OperatingSystem
2526
import tv.dotstart.beacon.util.logger
@@ -62,9 +63,14 @@ class Beacon : Application() {
6263

6364
Configuration.load()
6465

65-
logger.info("Displaying splash screen")
66-
stage.splashWindow("splash.fxml")
67-
stage.show()
66+
try {
67+
logger.info("Displaying splash screen")
68+
stage.splashWindow<SplashController>("splash.fxml")
69+
stage.show()
70+
} catch (ex: Throwable) {
71+
logger.error("Application startup failed due to unknown error", ex)
72+
throw ex
73+
}
6874
}
6975

7076
override fun stop() {

ui/src/main/kotlin/tv/dotstart/beacon/BeaconCli.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ object BeaconCli : CliktCommand(name = "Beacon") {
5252
* an unpublished system repository).
5353
*/
5454
val systemRepositories: List<URI> by option(
55-
names = *arrayOf("--repository", "-r"),
55+
names = arrayOf("--repository", "-r"),
5656
help = "Specifies a custom system repository (Overrides any default system repositories)")
5757
.convert { URI.create(it) }
5858
.multiple(defaultSystemRepositories)
@@ -105,6 +105,8 @@ object BeaconCli : CliktCommand(name = "Beacon") {
105105
}
106106

107107
override fun run() {
108+
// stash the desired logging path as early as possible to make sure Logger construction does not
109+
// fail due to missing system properties
108110
configureLogStorage(this.logDirectory)
109111

110112
val logger = LogManager.getLogger(Beacon::class.java)

0 commit comments

Comments
 (0)