You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit modifies the documentation generated for the
Maven plugin to include links to javadoc when Spring
Boot types are mentioned. Some javadoc was also polished
to improve the generated docs.
Fixesgh-21555
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/AbstractDependencyFilterMojo.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ public abstract class AbstractDependencyFilterMojo extends AbstractMojo {
40
40
41
41
/**
42
42
* Collection of artifact definitions to include. The {@link Include} element defines
43
-
* a {@code groupId} and {@code artifactId} mandatory properties and an optional
43
+
* mandatory {@code groupId} and {@code artifactId} properties and an optional
44
44
* {@code classifier} property.
45
45
* @since 1.2.0
46
46
*/
@@ -49,7 +49,7 @@ public abstract class AbstractDependencyFilterMojo extends AbstractMojo {
49
49
50
50
/**
51
51
* Collection of artifact definitions to exclude. The {@link Exclude} element defines
52
-
* a {@code groupId} and {@code artifactId} mandatory properties and an optional
52
+
* mandatory {@code groupId} and {@code artifactId} properties and an optional
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/AbstractPackagerMojo.java
+6-5
Original file line number
Diff line number
Diff line change
@@ -75,16 +75,16 @@ public abstract class AbstractPackagerMojo extends AbstractDependencyFilterMojo
75
75
76
76
/**
77
77
* The name of the main class. If not specified the first compiled class found that
78
-
* contains a 'main' method will be used.
78
+
* contains a {@code main} method will be used.
79
79
* @since 1.0.0
80
80
*/
81
81
@Parameter
82
82
privateStringmainClass;
83
83
84
84
/**
85
85
* The type of archive (which corresponds to how the dependencies are laid out inside
86
-
* it). Possible values are JAR, WAR, ZIP, DIR, NONE. Defaults to a guess based on the
87
-
* archive type.
86
+
* it). Possible values are {@code JAR}, {@code WAR}, {@code ZIP}, {@code DIR},
87
+
* {@code NONE}. Defaults to a guess based on the archive type.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/BuildImageMojo.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -98,8 +98,8 @@ public class BuildImageMojo extends AbstractPackagerMojo {
98
98
privateStringclassifier;
99
99
100
100
/**
101
-
* Image configuration, with `builder`, `runImage`, `name`, `env`, `cleanCache` and
102
-
* `verboseLogging` options.
101
+
* Image configuration, with {@code builder}, {@code runImage}, {@code name},
102
+
* {@code env}, {@code cleanCache} and {@code verboseLogging} options.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/BuildInfoMojo.java
+3-3
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ public class BuildInfoMojo extends AbstractMojo {
62
62
privateMavenProjectproject;
63
63
64
64
/**
65
-
* The location of the generated build-info.properties.
65
+
* The location of the generated {@code build-info.properties} file.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/Image.java
+47-17
Original file line number
Diff line number
Diff line change
@@ -37,48 +37,78 @@
37
37
*/
38
38
publicclassImage {
39
39
40
-
/**
41
-
* The name of the created image.
42
-
*/
43
40
Stringname;
44
41
45
-
/**
46
-
* The builder used to create the image.
47
-
*/
48
42
Stringbuilder;
49
43
50
-
/**
51
-
* The run image used to launch the built image.
52
-
*/
53
44
StringrunImage;
54
45
55
-
/**
56
-
* Environment properties that should be passed to the builder.
57
-
*/
58
46
Map<String, String> env;
59
47
60
-
/**
61
-
* If the cache should be cleaned before building.
62
-
*/
63
48
booleancleanCache;
64
49
50
+
booleanverboseLogging;
51
+
65
52
/**
66
-
* If verbose logging is required.
53
+
* The name of the created image.
54
+
* @return the image name
67
55
*/
68
-
booleanverboseLogging;
56
+
publicStringgetName() {
57
+
returnthis.name;
58
+
}
69
59
70
60
voidsetName(Stringname) {
71
61
this.name = name;
72
62
}
73
63
64
+
/**
65
+
* The name of the builder image to use to create the image.
66
+
* @return the builder image name
67
+
*/
68
+
publicStringgetBuilder() {
69
+
returnthis.builder;
70
+
}
71
+
74
72
voidsetBuilder(Stringbuilder) {
75
73
this.builder = builder;
76
74
}
77
75
76
+
/**
77
+
* The name of the run image to use to create the image.
78
+
* @return the builder image name
79
+
*/
80
+
publicStringgetRunImage() {
81
+
returnthis.runImage;
82
+
}
83
+
78
84
voidsetRunImage(StringrunImage) {
79
85
this.runImage = runImage;
80
86
}
81
87
88
+
/**
89
+
* Environment properties that should be passed to the builder.
90
+
* @return the environment properties
91
+
*/
92
+
publicMap<String, String> getEnv() {
93
+
returnthis.env;
94
+
}
95
+
96
+
/**
97
+
* If the cache should be cleaned before building.
98
+
* @return {@code true} if the cache should be cleaned
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/Layers.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -33,8 +33,8 @@ public class Layers {
33
33
privateFileconfiguration;
34
34
35
35
/**
36
-
* Whether a layers.idx file should be added to the jar.
37
-
* @return true if a layers.idx file should be added.
36
+
* Whether a {@code layers.idx} file should be added to the jar.
37
+
* @return true if a {@code layers.idx} file should be added.
0 commit comments