GradleProjectBuilder Class — spring-boot Architecture
Architecture documentation for the GradleProjectBuilder class in GradleProjectBuilder.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
build-plugin/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/junit/GradleProjectBuilder.java lines 34–69
public final class GradleProjectBuilder {
private @Nullable File projectDir;
private @Nullable String name;
private GradleProjectBuilder() {
}
public static GradleProjectBuilder builder() {
return new GradleProjectBuilder();
}
public GradleProjectBuilder withProjectDir(File dir) {
this.projectDir = dir;
return this;
}
public GradleProjectBuilder withName(String name) {
this.name = name;
return this;
}
public Project build() {
Assert.notNull(this.projectDir, "ProjectDir must not be null");
ProjectBuilder builder = ProjectBuilder.builder();
builder.withProjectDir(this.projectDir);
File userHome = new File(this.projectDir, "userHome");
builder.withGradleUserHomeDir(userHome);
if (StringUtils.hasText(this.name)) {
builder.withName(this.name);
}
return builder.build();
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free