Skip to content

Commit 4c481fb

Browse files
renovate[bot]jarkkoka
authored andcommitted
Update dependencies.
This is a modified commit from the one generated by Renovate Bot. ktor-client should not be updated since it must remain compatible with graphql-kotlin.
1 parent 40f9df5 commit 4c481fb

28 files changed

Lines changed: 128 additions & 148 deletions

.github/workflows/check-renovatebot-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
uses: actions/checkout@v4
1313

1414
- name: Validate
15-
uses: suzuki-shunsuke/github-action-renovate-config-validator@v1.1.0
15+
uses: suzuki-shunsuke/github-action-renovate-config-validator@v1.1.1
1616
with:
1717
config_file_path: .github/renovate.json5

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@
2525
<kotlin.compiler.incremental>true</kotlin.compiler.incremental>
2626

2727
<!-- Maven build plugins and their dependencies -->
28-
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
28+
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
2929
<maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version>
3030
<build-helper-plugin.version>3.6.0</build-helper-plugin.version>
3131
<build-properties-plugin.version>1.2.1</build-properties-plugin.version>
32-
<surefire-plugin.version>3.3.1</surefire-plugin.version>
33-
<ktlint-plugin.version>3.2.0</ktlint-plugin.version>
32+
<surefire-plugin.version>3.5.3</surefire-plugin.version>
33+
<ktlint-plugin.version>3.5.0</ktlint-plugin.version>
3434

3535
<!-- Library versions -->
36-
<kotlin-logging-jvm.version>7.0.0</kotlin-logging-jvm.version>
36+
<kotlin-logging-jvm.version>7.0.7</kotlin-logging-jvm.version>
3737
<quicktheories.version>0.26</quicktheories.version>
38-
<graphql-kotlin.version>7.1.4</graphql-kotlin.version>
38+
<graphql-kotlin.version>8.6.0</graphql-kotlin.version>
3939
<ktor.version>2.3.12</ktor.version> <!-- must be in sync with graphql-kotlin.version -->
40-
<mockk.version>1.13.12</mockk.version>
40+
<mockk.version>1.14.0</mockk.version>
4141
<springmockk.version>4.0.2</springmockk.version>
4242

4343
<!-- Other properties -->

src/main/kotlin/fi/hsl/jore4/hastus/HastusApplication.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ fun main(args: Array<String>) {
2424
class HastusApplication {
2525
@Bean
2626
@Primary
27-
fun objectMapper(): ObjectMapper {
28-
return ObjectMapper()
27+
fun objectMapper(): ObjectMapper =
28+
ObjectMapper()
2929
.setSerializationInclusion(JsonInclude.Include.NON_NULL)
3030
.registerModule(JavaTimeModule())
3131
.registerModule(
32-
KotlinModule.Builder()
32+
KotlinModule
33+
.Builder()
3334
.withReflectionCacheSize(512)
3435
.configure(KotlinFeature.NullToEmptyCollection, false)
3536
.configure(KotlinFeature.NullToEmptyMap, false)
@@ -38,5 +39,4 @@ class HastusApplication {
3839
.configure(KotlinFeature.StrictNullChecks, true)
3940
.build()
4041
)
41-
}
4242
}
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package fi.hsl.jore4.hastus.api
22

33
object HeaderUtils {
4-
fun filterInHasuraHeaders(headers: Map<String, String>): Map<String, String> {
5-
return headers.filter { it.key == "cookie" || it.key.startsWith("x-", true) }
6-
}
4+
fun filterInHasuraHeaders(headers: Map<String, String>): Map<String, String> =
5+
headers.filter { it.key == "cookie" || it.key.startsWith("x-", true) }
76
}

src/main/kotlin/fi/hsl/jore4/hastus/config/WebSecurityConfig.kt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import org.springframework.security.web.SecurityFilterChain
1313
class WebSecurityConfig {
1414
@Bean
1515
@Throws(Exception::class)
16-
fun configure(httpSecurity: HttpSecurity): SecurityFilterChain {
17-
return httpSecurity
16+
fun configure(httpSecurity: HttpSecurity): SecurityFilterChain =
17+
httpSecurity
1818
.sessionManagement { it.sessionCreationPolicy(SessionCreationPolicy.NEVER) }
1919
.csrf { it.disable() }
2020
.cors {}
@@ -32,8 +32,7 @@ class WebSecurityConfig {
3232
"/export/routes"
3333
).permitAll()
3434
// other
35-
.anyRequest().denyAll()
36-
}
37-
.build()
38-
}
35+
.anyRequest()
36+
.denyAll()
37+
}.build()
3938
}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
package fi.hsl.jore4.hastus.data.format
22

3-
data class Coordinate(val longitude: Double, val latitude: Double)
3+
data class Coordinate(
4+
val longitude: Double,
5+
val latitude: Double
6+
)

src/main/kotlin/fi/hsl/jore4/hastus/data/format/NumberWithAccuracy.kt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@ package fi.hsl.jore4.hastus.data.format
77
* @property leading number of leading numbers
88
* @property digits number of digits
99
*/
10-
data class NumberWithAccuracy(val value: Number, val leading: Int, val digits: Int) {
10+
data class NumberWithAccuracy(
11+
val value: Number,
12+
val leading: Int,
13+
val digits: Int
14+
) {
1115
// Get the pattern for this number format for a decimal formatter
12-
fun getPattern(): String {
13-
return if (leading > 0 && digits > 0) {
16+
fun getPattern(): String =
17+
if (leading > 0 && digits > 0) {
1418
"0".repeat(leading) + "." + "0".repeat(digits)
1519
} else if (leading > 0) {
1620
"0".repeat(leading)
1721
} else {
1822
"." + "0".repeat(digits)
1923
}
20-
}
2124
}

src/main/kotlin/fi/hsl/jore4/hastus/data/hastus/imp/ImportableItem.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,10 @@ sealed class ImportableItem {
2121
protected fun timeFormatter(): DateTimeFormatter = TIME_FORMATTER
2222

2323
@JvmStatic
24-
protected fun parseToDouble(string: String): Double {
25-
return string.trim().toDoubleOrNull() ?: 0.0
26-
}
24+
protected fun parseToDouble(string: String): Double = string.trim().toDoubleOrNull() ?: 0.0
2725

2826
@JvmStatic
29-
protected fun parseToInt(string: String): Int {
30-
return string.trim().toIntOrNull() ?: 0
31-
}
27+
protected fun parseToInt(string: String): Int = string.trim().toIntOrNull() ?: 0
3228

3329
@JvmStatic
3430
protected fun parseToBoolean(string: String) = parseToInt(string) > 0

src/main/kotlin/fi/hsl/jore4/hastus/graphql/GraphQLService.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@ class GraphQLService(
159159
?.timetables_vehicle_type_vehicle_type
160160
?.associate {
161161
it.hsl_id.toInt() to it.vehicle_type_id
162-
}
163-
.orEmpty()
162+
}.orEmpty()
164163
}
165164

166165
fun getDayTypes(): Map<String, UUID> {

src/main/kotlin/fi/hsl/jore4/hastus/graphql/converter/ConversionsToGraphQL.kt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ object ConversionsToGraphQL {
6262
private fun mapToGraphQL(
6363
vehicleService: JoreVehicleService,
6464
journeyPatternRefIndex: Map<UUID, JoreJourneyPatternRef>
65-
): timetables_vehicle_service_vehicle_service_insert_input {
66-
return timetables_vehicle_service_vehicle_service_insert_input(
65+
): timetables_vehicle_service_vehicle_service_insert_input =
66+
timetables_vehicle_service_vehicle_service_insert_input(
6767
day_type_id = OptionalInput.Defined(vehicleService.dayType),
6868
name_i18n = mapToFiJson(vehicleService.name),
6969
blocks =
@@ -73,13 +73,12 @@ object ConversionsToGraphQL {
7373
)
7474
)
7575
)
76-
}
7776

7877
private fun mapToGraphQL(
7978
block: JoreBlock,
8079
journeyPatternRefIndex: Map<UUID, JoreJourneyPatternRef>
81-
): timetables_vehicle_service_block_insert_input {
82-
return timetables_vehicle_service_block_insert_input(
80+
): timetables_vehicle_service_block_insert_input =
81+
timetables_vehicle_service_block_insert_input(
8382
finishing_time = OptionalInput.Defined(block.finishingTime.toJavaDuration()),
8483
preparing_time = OptionalInput.Defined(block.preparingTime.toJavaDuration()),
8584
vehicle_type_id = OptionalInput.Defined(block.vehicleTypeId),
@@ -95,13 +94,12 @@ object ConversionsToGraphQL {
9594
)
9695
)
9796
)
98-
}
9997

10098
private fun mapToGraphQL(
10199
vehicleJourney: JoreVehicleJourney,
102100
associatedJourneyPatternRef: JoreJourneyPatternRef
103-
): timetables_vehicle_journey_vehicle_journey_insert_input {
104-
return timetables_vehicle_journey_vehicle_journey_insert_input(
101+
): timetables_vehicle_journey_vehicle_journey_insert_input =
102+
timetables_vehicle_journey_vehicle_journey_insert_input(
105103
displayed_name = OptionalInput.Defined(vehicleJourney.displayedName),
106104
contract_number = OptionalInput.Defined(vehicleJourney.contractNumber),
107105
is_backup_journey = OptionalInput.Defined(vehicleJourney.isBackupJourney),
@@ -119,7 +117,6 @@ object ConversionsToGraphQL {
119117
)
120118
)
121119
)
122-
}
123120

124121
private fun mapToGraphQL(pair: Pair<JorePassingTime, JoreJourneyPatternStopRef>) =
125122
timetables_passing_times_timetabled_passing_time_insert_input(

0 commit comments

Comments
 (0)