File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 3838
3939import javax .inject .Inject ;
4040
41- import static java .util .Objects .requireNonNull ;
4241import static org .elasticsearch .gradle .internal .util .ParamsUtils .loadBuildParams ;
4342import static org .elasticsearch .gradle .util .FileUtils .mkdirs ;
4443import static org .elasticsearch .gradle .util .GradleUtils .maybeConfigure ;
@@ -227,8 +226,8 @@ public void execute(Task t) {
227226 Configuration shadowConfig = project .getConfigurations ().getByName (ShadowBasePlugin .CONFIGURATION_NAME );
228227 // Add the shadow JAR artifact itself
229228 FileCollection shadowJar = project .files (project .getTasks ().named ("shadowJar" ));
230- FileCollection mainRuntime = requireNonNull ( mainSourceSet ) .getRuntimeClasspath ();
231- FileCollection testRuntime = requireNonNull ( testSourceSet ) .getRuntimeClasspath ();
229+ FileCollection mainRuntime = mainSourceSet .getRuntimeClasspath ();
230+ FileCollection testRuntime = testSourceSet .getRuntimeClasspath ();
232231 test .setClasspath (testRuntime .minus (mainRuntime ).plus (shadowConfig ).plus (shadowJar ));
233232 }
234233 });
You can’t perform that action at this time.
0 commit comments