File tree Expand file tree Collapse file tree 1 file changed +11
-15
lines changed
build-tools/src/main/java/org/elasticsearch/gradle/plugin Expand file tree Collapse file tree 1 file changed +11
-15
lines changed Original file line number Diff line number Diff line change @@ -66,24 +66,20 @@ public void apply(final Project project) {
6666 if (policy .getAsFile ().exists ()) {
6767 task .getPolicyFile ().set (policy );
6868 }
69- task .getCodeLocations ().set (
70- project .getConfigurations ()
71- .getByName ("runtimeClasspath" )
72- .minus (project .getConfigurations ().getByName (CompileOnlyResolvePlugin .RESOLVEABLE_COMPILE_ONLY_CONFIGURATION_NAME ))
73- .plus (sourceSets .getByName (SourceSet .MAIN_SOURCE_SET_NAME ).getOutput ().getClassesDirs ())
74- .plus (sourceSets .getByName (SourceSet .TEST_SOURCE_SET_NAME ).getOutput ().getClassesDirs ())
75- );
76-
77- Provider <Directory > directory = project .getLayout ()
78- .getBuildDirectory ()
79- .dir ("generated-build-info/test" );
69+ task .getCodeLocations ()
70+ .set (
71+ project .getConfigurations ()
72+ .getByName ("runtimeClasspath" )
73+ .minus (project .getConfigurations ().getByName (CompileOnlyResolvePlugin .RESOLVEABLE_COMPILE_ONLY_CONFIGURATION_NAME ))
74+ .plus (sourceSets .getByName (SourceSet .MAIN_SOURCE_SET_NAME ).getOutput ().getClassesDirs ())
75+ .plus (sourceSets .getByName (SourceSet .TEST_SOURCE_SET_NAME ).getOutput ().getClassesDirs ())
76+ );
77+
78+ Provider <Directory > directory = project .getLayout ().getBuildDirectory ().dir ("generated-build-info/test" );
8079 task .getOutputDirectory ().set (directory );
8180 });
8281
83-
84- sourceSets .named (SourceSet .TEST_SOURCE_SET_NAME ).configure (sourceSet -> {
85- sourceSet .getResources ().srcDir (testBuildInfoTask );
86- });
82+ sourceSets .named (SourceSet .TEST_SOURCE_SET_NAME ).configure (sourceSet -> { sourceSet .getResources ().srcDir (testBuildInfoTask ); });
8783 }
8884
8985}
You can’t perform that action at this time.
0 commit comments