Can't make spring-boot camunda output log

I have been refering to this code for a while:https://github.com/camunda-consulting/code/tree/master/snippets/task-assignment-dmn

However I cannot change my logging settings to make mvn:spring-boot:run output to console message to a log file.

here’s my application.yaml:

spring:
  datasource:
    url: ${env.datasource.jdbcUrl}
    username: ${env.datasource.username}
    password: ${env.datasource.password}
logging:
  file:
    path: ./logs
  pattern:
    console:


camunda.bpm.admin-user:
  id: demo
  password: demo

camunda:
  bpm:
    filter:
      create: ALL
    authorization:
      enabled: true
    database:
      jdbc-batch-processing: false

Seems to be related to maven springboot plugin version I change to 2.4.3 and things are fine afterward.