spring-projects / spring-security-samples

1.46k stars 711 forks source link

Improve Dev Experience When Working with the Samples #296

Open marcusdacoregio opened 3 months ago

marcusdacoregio commented 3 months ago

We can structure our samples so that they can be run independently of one another rather than having to import all the projects at once

fp024 commented 1 month ago

Hello.

When running each sample independently, it seems that the "allprojects { ... }" defined in the root project's "build.gradle" is not applied.

At least, I think it would be better to include the below setting in 'build.gradle' of all subsample projects.

// Spring Framework 6.1 requires -parameters to be able to introspect method parameter names
tasks.withType(JavaCompile) {
    options.compilerArgs.add("-parameters")
}