Skip to content

Commit

Permalink
Upgrade to KVision 7.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rjaros committed Feb 13, 2024
1 parent 17ce39e commit bb25967
Show file tree
Hide file tree
Showing 58 changed files with 87 additions and 87 deletions.
2 changes: 1 addition & 1 deletion addressbook-fullstack-javalin/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
slf4jVersion=2.0.7
hikariVersion=3.2.0
commonsCodecVersion=1.10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ const val SESSION_PROFILE_KEY = "com.example.profile"
enum class ApiRole : RouteRole { AUTHORIZED, ANYONE }

fun main() {
Javalin.create { config ->
config.accessManager { handler, ctx, permittedRoles ->
when {
permittedRoles.contains(ApiRole.ANYONE) -> handler.handle(ctx)
ctx.sessionAttribute<Profile>(SESSION_PROFILE_KEY) != null -> handler.handle(ctx)
else -> ctx.status(HttpStatus.UNAUTHORIZED).json("Unauthorized")
Javalin.create().start(8080).apply {
beforeMatched { ctx ->
if (!(ctx.routeRoles().isEmpty() || ctx.routeRoles()
.contains(ApiRole.ANYONE) || ctx.sessionAttribute<Profile>(SESSION_PROFILE_KEY) != null)
) {
ctx.status(HttpStatus.UNAUTHORIZED).json("Unauthorized")
ctx.skipRemainingHandlers()
}
}
}.start(8080).apply {
kvisionInit(DbModule())
applyRoutes(AddressServiceManager, setOf(ApiRole.AUTHORIZED))
applyRoutes(ProfileServiceManager, setOf(ApiRole.AUTHORIZED))
Expand Down
2 changes: 1 addition & 1 deletion addressbook-fullstack-jooby/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
systemProp.joobyVersion=3.0.7
h2Version=1.4.197
pgsqlVersion=42.2.2
Expand Down
4 changes: 2 additions & 2 deletions addressbook-fullstack-ktor-koin/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
ktorVersion=2.3.7
systemProp.kvisionVersion=7.4.0
ktorVersion=2.3.8
hikariVersion=3.2.0
commonsCodecVersion=1.10
jdbcNamedParametersVersion=1.1
Expand Down
4 changes: 2 additions & 2 deletions addressbook-fullstack-ktor/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
ktorVersion=2.3.7
systemProp.kvisionVersion=7.4.0
ktorVersion=2.3.8
hikariVersion=3.2.0
commonsCodecVersion=1.10
jdbcNamedParametersVersion=1.1
Expand Down
6 changes: 3 additions & 3 deletions addressbook-fullstack-micronaut/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
systemProp.micronautPluginsVersion=4.2.1
systemProp.micronautPluginsVersion=4.3.2
systemProp.shadowVersion=8.1.1
#Dependencies
systemProp.kvisionVersion=7.3.1
micronautVersion=4.2.3
systemProp.kvisionVersion=7.4.0
micronautVersion=4.3.1
coroutinesVersion=1.8.0-RC2
springSecurityCryptoVersion=5.7.3
springDataR2dbcVersion=1.5.2
Expand Down
4 changes: 2 additions & 2 deletions addressbook-fullstack-spring-boot/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
systemProp.dependencyManagementPluginVersion=1.1.3
systemProp.springBootVersion=3.2.1
systemProp.springBootVersion=3.2.2
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
coroutinesVersion=1.8.0-RC2
r2dbcPostgresqlVersion=1.0.1.RELEASE
r2dbcH2Version=1.0.0.RELEASE
Expand Down
4 changes: 2 additions & 2 deletions addressbook-fullstack-vertx/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
systemProp.vertxPluginVersion=1.4.0
systemProp.shadowVersion=8.1.1
logbackVersion=1.4.14
vertxVersion=4.5.1
vertxVersion=4.5.3
hikariVersion=3.2.0
commonsCodecVersion=1.10
jdbcNamedParametersVersion=1.1
Expand Down
2 changes: 1 addition & 1 deletion addressbook-tabulator/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
2 changes: 1 addition & 1 deletion addressbook/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
2 changes: 1 addition & 1 deletion desktop/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
2 changes: 1 addition & 1 deletion docs/addressbook-tabulator/main.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/addressbook/main.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/desktop/main.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/fomantic/main.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/helloworld/main.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/onsenui-kitchensink/main.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/patternfly/main.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/pokedex/main.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/pokedex/service-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/showcase/main.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/showcase/main.bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/*!
* Tempus Dominus v6.9.4 (https://getdatepicker.com/)
* Copyright 2013-2023 Jonathan Peterson
* Copyright 2013-2024 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/

Expand Down
2 changes: 1 addition & 1 deletion docs/template/main.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/todomvc/main.bundle.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions encoder-fullstack-ktor/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
ktorVersion=2.3.7
systemProp.kvisionVersion=7.4.0
ktorVersion=2.3.8
hikariVersion=3.2.0
commonsCodecVersion=1.10
jdbcNamedParametersVersion=1.1
Expand Down
2 changes: 1 addition & 1 deletion fomantic/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
2 changes: 1 addition & 1 deletion helloworld/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
2 changes: 1 addition & 1 deletion mini-template/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
systemProp.kotlinVersion=1.9.22
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
2 changes: 1 addition & 1 deletion numbers-fullstack-javalin/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
slf4jVersion=2.0.7

kotlin.mpp.stability.nowarn=true
Expand Down
2 changes: 1 addition & 1 deletion numbers-fullstack-jooby/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
systemProp.joobyVersion=3.0.7
logbackVersion=1.4.14

Expand Down
4 changes: 2 additions & 2 deletions numbers-fullstack-ktor/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
ktorVersion=2.3.7
systemProp.kvisionVersion=7.4.0
ktorVersion=2.3.8
hikariVersion=3.2.0
commonsCodecVersion=1.10
jdbcNamedParametersVersion=1.1
Expand Down
4 changes: 2 additions & 2 deletions numbers-fullstack-spring-boot/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
systemProp.dependencyManagementPluginVersion=1.1.3
systemProp.springBootVersion=3.2.1
systemProp.springBootVersion=3.2.2
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
coroutinesVersion=1.8.0-RC2

kotlin.mpp.stability.nowarn=true
Expand Down
2 changes: 1 addition & 1 deletion onsenui-kitchensink/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
2 changes: 1 addition & 1 deletion patternfly/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
2 changes: 1 addition & 1 deletion pokedex/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
2 changes: 1 addition & 1 deletion showcase/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
4 changes: 2 additions & 2 deletions simple-mpp-fullstack-ktor/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kotlinVersion=1.9.22
kvisionVersion=7.3.1
ktorVersion=2.3.7
kvisionVersion=7.4.0
ktorVersion=2.3.8
logbackVersion=1.4.14
gradleShadowPluginVersion=5.0.0

Expand Down
2 changes: 1 addition & 1 deletion template-cordova/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
2 changes: 1 addition & 1 deletion template-electron/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
2 changes: 1 addition & 1 deletion template-fullstack-javalin/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
slf4jVersion=2.0.7

kotlin.mpp.stability.nowarn=true
Expand Down
2 changes: 1 addition & 1 deletion template-fullstack-jooby/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
systemProp.joobyVersion=3.0.7
h2Version=1.4.197
pgsqlVersion=42.2.2
Expand Down
6 changes: 3 additions & 3 deletions template-fullstack-ktor-koin-annotations/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
ktorVersion=2.3.7
koinAnnotationsVersion=1.3.0
systemProp.kvisionVersion=7.4.0
ktorVersion=2.3.8
koinAnnotationsVersion=1.3.1
hikariVersion=3.2.0
commonsCodecVersion=1.10
jdbcNamedParametersVersion=1.1
Expand Down
4 changes: 2 additions & 2 deletions template-fullstack-ktor-koin/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
ktorVersion=2.3.7
systemProp.kvisionVersion=7.4.0
ktorVersion=2.3.8
hikariVersion=3.2.0
commonsCodecVersion=1.10
jdbcNamedParametersVersion=1.1
Expand Down
4 changes: 2 additions & 2 deletions template-fullstack-ktor/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
ktorVersion=2.3.7
systemProp.kvisionVersion=7.4.0
ktorVersion=2.3.8
hikariVersion=3.2.0
commonsCodecVersion=1.10
jdbcNamedParametersVersion=1.1
Expand Down
6 changes: 3 additions & 3 deletions template-fullstack-micronaut/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
systemProp.micronautPluginsVersion=4.2.1
systemProp.micronautPluginsVersion=4.3.2
systemProp.shadowVersion=8.1.1
#Dependencies
systemProp.kvisionVersion=7.3.1
micronautVersion=4.2.3
systemProp.kvisionVersion=7.4.0
micronautVersion=4.3.1
coroutinesVersion=1.8.0-RC2

kotlin.mpp.stability.nowarn=true
Expand Down
4 changes: 2 additions & 2 deletions template-fullstack-spring-boot/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
systemProp.dependencyManagementPluginVersion=1.1.3
systemProp.springBootVersion=3.2.1
systemProp.springBootVersion=3.2.2
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
coroutinesVersion=1.8.0-RC2

kotlin.mpp.stability.nowarn=true
Expand Down
2 changes: 1 addition & 1 deletion template-fullstack-vertx/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
systemProp.vertxPluginVersion=1.4.0
systemProp.shadowVersion=8.1.1
logbackVersion=1.4.14
Expand Down
2 changes: 1 addition & 1 deletion template/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
2 changes: 1 addition & 1 deletion todomvc-ballast/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
koinVersion=3.5.3
2 changes: 1 addition & 1 deletion todomvc/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
2 changes: 1 addition & 1 deletion tweets-fullstack-javalin/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
slf4jVersion=2.0.7

kotlin.mpp.stability.nowarn=true
Expand Down
2 changes: 1 addition & 1 deletion tweets-fullstack-jooby/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
systemProp.kvisionVersion=7.4.0
systemProp.joobyVersion=3.0.7
logbackVersion=1.4.14

Expand Down
4 changes: 2 additions & 2 deletions tweets-fullstack-ktor-koin/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
ktorVersion=2.3.7
systemProp.kvisionVersion=7.4.0
ktorVersion=2.3.8
hikariVersion=3.2.0
commonsCodecVersion=1.10
jdbcNamedParametersVersion=1.1
Expand Down
4 changes: 2 additions & 2 deletions tweets-fullstack-ktor/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ javaVersion=17
#Plugins
systemProp.kotlinVersion=1.9.22
#Dependencies
systemProp.kvisionVersion=7.3.1
ktorVersion=2.3.7
systemProp.kvisionVersion=7.4.0
ktorVersion=2.3.8
hikariVersion=3.2.0
commonsCodecVersion=1.10
jdbcNamedParametersVersion=1.1
Expand Down
Loading

0 comments on commit bb25967

Please sign in to comment.