File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
plugin-gradle/src/main/java/com/diffplug/gradle/spotless Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 2525
2626import javax .annotation .Nullable ;
2727
28- import org .gradle .api .file .Directory ;
29-
3028import com .diffplug .common .collect .ImmutableList ;
3129import com .diffplug .common .collect .ImmutableSortedMap ;
3230import com .diffplug .spotless .FileSignature ;
@@ -162,9 +160,7 @@ private KtlintConfig(
162160 Map <String , Object > editorConfigOverride ,
163161 List <String > customRuleSets ) throws IOException {
164162 Objects .requireNonNull (version );
165- @ SuppressWarnings ("UnstableApiUsage" )
166- Directory rootProjectDir = getProject ().getIsolated ().getRootProject ().getProjectDirectory ();
167- File defaultEditorConfig = rootProjectDir .file (".editorconfig" ).getAsFile ();
163+ File defaultEditorConfig = getProject ().getRootProject ().getLayout ().getProjectDirectory ().file (".editorconfig" ).getAsFile ();
168164 FileSignature editorConfigPath = defaultEditorConfig .exists () ? FileSignature .signAsList (defaultEditorConfig ) : null ;
169165 this .version = version ;
170166 this .editorConfigPath = editorConfigPath ;
You can’t perform that action at this time.
0 commit comments