writeMainClass() — spring-boot Function Reference
Architecture documentation for the writeMainClass() function in AbstractBootArchiveIntegrationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD c1d87296_7b81_712e_cfb5_8a0a1fef6968["writeMainClass()"] 1480e02e_7f37_b733_2059_24a17cfcd2ae["implicitLayers()"] 1480e02e_7f37_b733_2059_24a17cfcd2ae -->|calls| c1d87296_7b81_712e_cfb5_8a0a1fef6968 ac7f2c84_3074_d9f3_cf2a_3c3718897639["multiModuleImplicitLayers()"] ac7f2c84_3074_d9f3_cf2a_3c3718897639 -->|calls| c1d87296_7b81_712e_cfb5_8a0a1fef6968 65ec8caa_353b_1f02_52f6_cd4484a86a76["customLayers()"] 65ec8caa_353b_1f02_52f6_cd4484a86a76 -->|calls| c1d87296_7b81_712e_cfb5_8a0a1fef6968 bfc328c2_9a96_d1f1_d259_8f62ad8057fe["multiModuleCustomLayers()"] bfc328c2_9a96_d1f1_d259_8f62ad8057fe -->|calls| c1d87296_7b81_712e_cfb5_8a0a1fef6968 c77d41cc_c5ff_83e3_15ee_f6c697c2b6be["classesFromASecondarySourceSetCanBeIncludedInTheArchive()"] c77d41cc_c5ff_83e3_15ee_f6c697c2b6be -->|calls| c1d87296_7b81_712e_cfb5_8a0a1fef6968 style c1d87296_7b81_712e_cfb5_8a0a1fef6968 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
build-plugin/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/bundling/AbstractBootArchiveIntegrationTests.java lines 703–722
private void writeMainClass() {
File examplePackage = new File(this.gradleBuild.getProjectDir(), "src/main/java/example");
examplePackage.mkdirs();
File main = new File(examplePackage, "Main.java");
try (PrintWriter writer = new PrintWriter(new FileWriter(main))) {
writer.println("package example;");
writer.println();
writer.println("import java.io.IOException;");
writer.println();
writer.println("public class Main {");
writer.println();
writer.println(" public static void main(String[] args) {");
writer.println(" }");
writer.println();
writer.println("}");
}
catch (IOException ex) {
throw new RuntimeException(ex);
}
}
Domain
Subdomains
Called By
- classesFromASecondarySourceSetCanBeIncludedInTheArchive()
- customLayers()
- implicitLayers()
- multiModuleCustomLayers()
- multiModuleImplicitLayers()
Source
Frequently Asked Questions
What does writeMainClass() do?
writeMainClass() is a function in the spring-boot codebase.
What calls writeMainClass()?
writeMainClass() is called by 5 function(s): classesFromASecondarySourceSetCanBeIncludedInTheArchive, customLayers, implicitLayers, multiModuleCustomLayers, multiModuleImplicitLayers.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free