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
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootArchive.java
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -93,11 +93,26 @@ public interface BootArchive extends Task {
93
93
94
94
/**
95
95
* Adds files to the classpath to include in the archive. The given {@code classpath}
96
-
* are evaluated as per {@link Project#files(Object...)}.
96
+
* is evaluated as per {@link Project#files(Object...)}.
97
97
* @param classpath the additions to the classpath
98
98
*/
99
99
voidclasspath(Object... classpath);
100
100
101
+
/**
102
+
* Sets the classpath to include in the archive. The given {@code classpath} is
103
+
* evaluated as per {@link Project#files(Object...)}.
104
+
* @param classpath the classpath
105
+
* @since 2.0.7
106
+
*/
107
+
voidsetClasspath(Objectclasspath);
108
+
109
+
/**
110
+
* Sets the classpath to include in the archive.
111
+
* @param classpath the classpath
112
+
* @since 2.0.7
113
+
*/
114
+
voidsetClasspath(FileCollectionclasspath);
115
+
101
116
/**
102
117
* Returns {@code true} if the Devtools jar should be excluded, otherwise
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootJar.java
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -129,6 +129,14 @@ public void classpath(Object... classpath) {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootWar.java
+22-1Lines changed: 22 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ public FileCollection getProvidedClasspath() {
120
120
121
121
/**
122
122
* Adds files to the provided classpath to include in the {@code WEB-INF/lib-provided}
123
-
* directory of the war. The given {@code classpath} are evaluated as per
123
+
* directory of the war. The given {@code classpath} is evaluated as per
124
124
* {@link Project#files(Object...)}.
125
125
* @param classpath the additions to the classpath
126
126
*/
@@ -131,6 +131,27 @@ public void providedClasspath(Object... classpath) {
131
131
classpath);
132
132
}
133
133
134
+
/**
135
+
* Sets the provided classpath to include in the {@code WEB-INF/lib-provided}
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/bundling/AbstractBootArchiveTests.java
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,31 @@ public void classpathFoldersArePackagedBeneathClassesPath() throws IOException {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/bundling/BootWarTests.java
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,31 @@ public void providedClasspathJarsArePackagedInWebInfLibProvided() throws IOExcep
0 commit comments