Merge branch '2.4.x' into 2.5.x

This commit is contained in:
Phillip Webb 2021-06-23 17:27:46 -07:00
commit fd83158fa5
2 changed files with 2 additions and 5 deletions

View File

@ -37,7 +37,7 @@ public class MyBuildTool {
private void getLibraries(LibraryCallback callback) throws IOException {
// Build system specific implementation, callback for each dependency
for (File nestedJar : getCompileScopeJars()) {
callback.library(new Library(null, nestedJar, LibraryScope.COMPILE, null, false, false, true));
callback.library(new Library(nestedJar, LibraryScope.COMPILE));
}
// ...
}

View File

@ -49,12 +49,9 @@ public class Library {
* Create a new {@link Library}.
* @param file the source file
* @param scope the scope of the library
* @deprecated since 2.4.8 for removal in 2.6.0 in favor of
* {@link #Library(String, File, LibraryScope, LibraryCoordinates, boolean, boolean, boolean)}
*/
@Deprecated
public Library(File file, LibraryScope scope) {
this(file, scope, false);
this(null, file, scope, null, false, false, true);
}
/**