Skip to content

Revert mill init bloated dependencies and fix SpringBootModule reflection (-parameters)#7265

Open
vaslabs wants to merge 4 commits into
com-lihaoyi:mainfrom
vaslabs-ltd:mill-init-spring-boot
Open

Revert mill init bloated dependencies and fix SpringBootModule reflection (-parameters)#7265
vaslabs wants to merge 4 commits into
com-lihaoyi:mainfrom
vaslabs-ltd:mill-init-spring-boot

Conversation

@vaslabs

@vaslabs vaslabs commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Fixes #7197

On the broken examples mentioned in the reverting PR see:

Also fixes #7268 by having a default -parameters for javacOptions in SpringBootModule

> git clone git@github.com:in28minutes/spring-boot-examples.git
> cd spring-boot-examples/spring-boot-rest-services-with-unit-and-integration-tests
> mill --version
Mill Build Tool version 1.1.6-112-620712-DIRTY2ee0760
java.version: 21.0.2
java.vendor: Oracle Corporation
java.home: /home/vnicolaou/.sdkman/candidates/java/21.0.2-open
file.encoding: UTF-8
os.name: Linux
os.version: 7.0.11-200.fc44.x86_64
os.arch: amd64

> mill init
1] init
14] mill.init.InitMavenModule/init
converting Maven build
writing build.mill.yaml
14] formatting Mill build files
14] Formatting 1 Scala sources
parsed config (v3.8.5): ../mill-workspace/out/mill.init.InitMavenModule/buildGenScalafmtConfig.dest/.scalafmt.conf
file excluded: ../mill-workspace/build.mill.yaml
14] init completed, run "mill resolve _" to list available tasks
1/1, SUCCESS] mill init 1s

> mill test
124] Test com.in28minutes.springboot.controller.StudentControllerIT#addCourse() finished, took 0.052s
124] Test com.in28minutes.springboot.controller.StudentControllerIT#testRetrieveStudentCourse() started
124] Test com.in28minutes.springboot.controller.StudentControllerIT#testRetrieveStudentCourse() finished, took 0.009s
124] 2026-06-13T15:16:10.568+03:00  INFO 43021 --- [           main] [                                                 ] o.s.boot.tomcat.GracefulShutdown         : Commencing graceful shutdown. Waiting for active requests to complete
124] 2026-06-13T15:16:10.570+03:00  INFO 43021 --- [tomcat-shutdown] [                                                 ] o.s.boot.tomcat.GracefulShutdown         : Graceful shutdown complete
124] Test com.in28minutes.springboot.controller.StudentControllerIT finished, took 0.358s
124] Test junit-jupiter finished, took 0.361s
124] Test run finished: 0 failed, 0 ignored, 2 total, 0.361s
124/124, SUCCESS] mill test 7s

Other

Also updated the spring boot docs with a few lines to mention some features SpringBootModule brings out of the box (including the new addition with the -parameters compiler option)

@vaslabs vaslabs changed the title Revert Revert mill init bloated dependencies Jun 13, 2026
@vaslabs

vaslabs commented Jun 13, 2026

Copy link
Copy Markdown
Contributor Author

@souvlakias please check I haven't accidentally reverted your quarkus work or anything else

@souvlakias

Copy link
Copy Markdown
Contributor

@souvlakias please check I haven't accidentally reverted your quarkus work or anything else

All good 👍

@vaslabs vaslabs marked this pull request as ready for review June 13, 2026 15:02
@vaslabs vaslabs changed the title Revert mill init bloated dependencies Revert mill init bloated dependencies and fix SpringBootModule reflection (-parameters) Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spring Boot: spring-boot-rest-services-with-unit-and-integration-tests broken integration tests mill init Bloated build files in SpringBoot migration

2 participants