spring-projects-experimental / spring-boot-testjars

67 stars 6 forks source link

Consider renaming the recursive() method #48

Open jgrandja opened 2 months ago

jgrandja commented 2 months ago

Given the following configuration:

@Bean
public CommonsExecWebServerFactoryBean authorizationServer() {
    return CommonsExecWebServerFactoryBean.builder()
        .mainClass(TestAuthorizationServerApplication.class.getName())
        .classpath((classpath) -> classpath
            .entries(MavenClasspathEntry.springBootStarter("oauth2-authorization-server"))
            .recursive(TestAuthorizationServerApplication.class)
        );
}

The recursive() method within classpath() is not clear to me on what it does. Can we consider changing the name?