Skip to content

Commit 2ff0364

Browse files
committed
Moved IndentStepTest to testlib.
1 parent 2a6bc35 commit 2ff0364

File tree

5 files changed

+23
-1
lines changed

5 files changed

+23
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright 2016 DiffPlug
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package com.diffplug.spotless.java;
17+
18+
public final class ImportOrderStep {
19+
20+
}

Diff for: plugin-gradle/src/main/java/com/diffplug/gradle/spotless/JavaExtension.java

+2
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@ public void licenseHeaderFile(Object licenseHeaderFile) {
4747

4848
public void importOrder(List<String> importOrder) {
4949
customLazy(ImportSorterStep.NAME, () -> ImportSorterStep.of(importOrder)::format);
50+
//addStep(ImportOrderStep.createFromOrder(importOrder));
5051
}
5152

5253
public void importOrderFile(Object importOrderFile) {
5354
customLazy(ImportSorterStep.NAME, () -> ImportSorterStep.fromFile(getProject().file(importOrderFile))::format);
55+
//addStep(ImportOrderStep.createFromFile(importOrderFile));
5456
}
5557

5658
public void eclipseFormatFile(Object eclipseFormatFile) {

Diff for: plugin-gradle/src/test/java/com/diffplug/gradle/spotless/IndentStepTest.java renamed to testlib/src/test/java/com/diffplug/spotless/generic/IndentStepTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.diffplug.gradle.spotless;
16+
package com.diffplug.spotless.generic;
1717

1818
import org.junit.Assert;
1919
import org.junit.Test;

0 commit comments

Comments
 (0)