Skip to content

Commit 08f0ec1

Browse files
committed
fix: update spring-boot 3.2 kotlin 1.9
1 parent b7d328e commit 08f0ec1

File tree

3 files changed

+35
-12
lines changed

3 files changed

+35
-12
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=osahner_kotlin-spring-boot-rest-jpa-jwt-starter&metric=coverage)](https://sonarcloud.io/summary/new_code?id=osahner_kotlin-spring-boot-rest-jpa-jwt-starter)
88

99
**Features**:
10-
* spring-boot 3.1.x
11-
* kotlin 1.8.x
10+
* spring-boot 3.2.x
11+
* kotlin 1.9.x
1212
* JWT Authentication/Authorization with spring-security [inspired by Auth0](https://auth0.com/blog/implementing-jwt-authentication-on-spring-boot/)
1313
* 2FA with TOTP (Google Authenticator)
1414
* JPA mysql / OpenCVS / POI
@@ -31,7 +31,7 @@ FLUSH PRIVILEGES;
3131
3232
* **compile & integration tests**
3333
```shell
34-
mvn -Ddockerfile.skip clean compile test
34+
mvn clean compile test
3535
```
3636

3737
* **run app**
@@ -58,22 +58,25 @@ some more test can be found in [address.http](contributed/requests/address.http)
5858
### Docker
5959

6060
```shell
61-
mvn clean package -Dmaven.test.skip=true
62-
docker run -it -p 8888:8888 --rm osahner/kotlin-spring-boot-rest-jpa-jwt-starter:latest
61+
./contributed/buildDocker.sh (-p) # see below
62+
docker run -it -p 8888:8888 --rm osahner/kotlin-spring-boot-rest-jpa-jwt-starter:0.11.0-SNAPSHOT
6363

6464
curl http://localhost:8888/starter-test/api/v1/test
6565
# result: Pong!%
6666
```
6767

6868
:exclamation: If you develop on Apple Silicon (like me) you can use the simple script `contributed/buildDocker.sh`. Option `-p` is for **production** build (`--platform=linux/amd64` instead of `--platform=linux/arm64/v8` without)
6969

70+
Modify `Dockerfile` to your needs.
71+
7072
### Why
7173

7274
This is my little backend cookbook. I need and use it regularly for various small to medium-sized projects.
7375
* Like it -> use it.
7476
* Found an error -> please [report](https://github.com/osahner/kotlin-spring-boot-rest-jpa-jwt-starter/issues).
7577

7678
### Changelog
79+
* _v0.11.0-SNAPSHOT_: spring-boot 3.2.x, kotlin 1.9.x, java 21
7780
* _v0.10.0-SNAPSHOT_: spring-boot 3.1.x, add 2FA, cleanup
7881
* _v0.9.1-SNAPSHOT_: spring-boot 3.0.x, kotlin 1.8.x, [migrated to SEQ tables](#migrate-to-seq-tables)
7982
* _v0.8.3-SNAPSHOT_: spring-boot 2.7.x, java 17

pom.xml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.1.4</version>
8+
<version>3.2.0</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111

1212
<groupId>osahner</groupId>
1313
<artifactId>kotlin-spring-boot-rest-jpa-jwt-starter</artifactId>
14-
<version>0.10.1-SNAPSHOT</version>
14+
<version>0.11.0-SNAPSHOT</version>
1515
<packaging>jar</packaging>
1616

1717
<name>kotlin spring-boot 2 rest/jpa/jwt starter</name>
@@ -21,16 +21,16 @@
2121
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2222
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
2323

24-
<java.version>17</java.version>
25-
<kotlin.version>1.9.10</kotlin.version>
24+
<java.version>21</java.version>
25+
<kotlin.version>1.9.21</kotlin.version>
2626

2727
<jacoco-maven-plugin.version>0.8.10</jacoco-maven-plugin.version>
2828

2929
<jjwt.version>0.12.3</jjwt.version>
3030
<poi.version>5.2.4</poi.version>
3131
<jasypt.version>1.9.3</jasypt.version>
32-
<opencsv.version>5.8</opencsv.version>
33-
<commons-io.version>2.14.0</commons-io.version>
32+
<opencsv.version>5.9</opencsv.version>
33+
<commons-io.version>2.15.0</commons-io.version>
3434
<aerogear-otp-java.version>1.0.0</aerogear-otp-java.version>
3535
</properties>
3636

@@ -277,4 +277,25 @@
277277
</plugins>
278278
</build>
279279

280+
<repositories>
281+
<repository>
282+
<id>spring-milestones</id>
283+
<name>Spring Milestones</name>
284+
<url>https://repo.spring.io/milestone</url>
285+
<snapshots>
286+
<enabled>false</enabled>
287+
</snapshots>
288+
</repository>
289+
</repositories>
290+
<pluginRepositories>
291+
<pluginRepository>
292+
<id>spring-milestones</id>
293+
<name>Spring Milestones</name>
294+
<url>https://repo.spring.io/milestone</url>
295+
<snapshots>
296+
<enabled>false</enabled>
297+
</snapshots>
298+
</pluginRepository>
299+
</pluginRepositories>
300+
280301
</project>

src/main/resources/application.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ spring:
66
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
77
implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
88
ddl-auto: update
9-
database-platform: org.hibernate.dialect.MySQLDialect
109
open-in-view: true
1110
properties:
1211
hibernate.show_sql: false

0 commit comments

Comments
 (0)