Skip to content

Commit f82bd75

Browse files
authored
Merge pull request #1 from navikt/update-versions
Updated Java, Kotlin and Spring.
2 parents a19a910 + ec05f62 commit f82bd75

File tree

4 files changed

+17
-19
lines changed

4 files changed

+17
-19
lines changed

.github/workflows/main.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ jobs:
2222
restore-keys: |
2323
${{ runner.os }}-gradle-
2424
- name: Install Java 17
25-
uses: actions/setup-java@v1
25+
uses: actions/setup-java@v2.4.0
2626
with:
2727
java-version: 17
28+
distribution: temurin
2829
- name: test and build
2930
run: ./gradlew test bootJar
3031
env:

build.gradle.kts

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ repositories {
1212
}
1313

1414
plugins {
15-
id("org.jetbrains.kotlin.jvm") version "1.5.31"
16-
id("org.springframework.boot") version "2.5.5"
17-
id("org.jetbrains.kotlin.plugin.spring") version "1.5.31"
18-
id("org.jetbrains.kotlin.plugin.jpa") version "1.5.31"
15+
id("org.jetbrains.kotlin.jvm") version "1.6.0"
16+
id("org.springframework.boot") version "2.5.7"
17+
id("org.jetbrains.kotlin.plugin.spring") version "1.6.0"
18+
id("org.jetbrains.kotlin.plugin.jpa") version "1.6.0"
1919
idea
2020
}
2121

2222
apply(plugin = "io.spring.dependency-management")
2323

2424
dependencies {
25-
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.5.31")
25+
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.0")
2626

2727
implementation("org.springframework.boot:spring-boot-starter-web")
2828
implementation("org.springframework.boot:spring-boot-starter-actuator")
@@ -52,7 +52,10 @@ dependencies {
5252
}
5353

5454
tasks.withType<KotlinCompile> {
55-
kotlinOptions.jvmTarget = "11"
55+
kotlinOptions {
56+
freeCompilerArgs = listOf("-Xjsr305=strict")
57+
jvmTarget = "17"
58+
}
5659
}
5760

5861
tasks.withType<Test> {
@@ -65,9 +68,3 @@ tasks.withType<Test> {
6568
tasks.getByName<org.springframework.boot.gradle.tasks.bundling.BootJar>("bootJar") {
6669
this.archiveFileName.set("app.jar")
6770
}
68-
69-
kotlin.sourceSets["main"].kotlin.srcDirs("src/main/kotlin")
70-
kotlin.sourceSets["test"].kotlin.srcDirs("src/test/kotlin")
71-
72-
//sourceSets["main"].resources.srcDirs("src/main/resources")
73-
//sourceSets["test"].resources.srcDirs("src/test/resources")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-rc-1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015-2021 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -32,10 +32,10 @@
3232
# Busybox and similar reduced shells will NOT work, because this script
3333
# requires all of these POSIX shell features:
3434
# * functions;
35-
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36-
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37-
# * compound commands having a testable exit status, especially «case»;
38-
# * various built-in commands including «command», «set», and «ulimit».
35+
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36+
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37+
# * compound commands having a testable exit status, especially «case»;
38+
# * various built-in commands including «command», «set», and «ulimit».
3939
#
4040
# Important for patching:
4141
#

0 commit comments

Comments
 (0)