You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The patterns are matched using `String#matches(String)` against the absolute file path.
1910
1911
1912
+
## Sharing Configuration
1913
+
1914
+
Rather than copying the formatter files across many projects, it is possible to define a common configuration that is deployed as a standard artifact so that it can be then be reused by each project; for example:
In this example, the files `java-import-order.txt` and `java-formatter.xml` should be at the root of the deployed `org.mycompany:code-configuration:1.0.0` jar.
1931
+
1911
1932
## Example configurations (from real-world projects)
1912
1933
1913
1934
* [A few thousand github projects](https://github.com/search?l=gradle&q=spotless&type=Code)
***Contributions are welcome, see [the contributing guide](../CONTRIBUTING.md) for development info.***
@@ -2052,6 +2053,38 @@ Note that for Incremental build support the goals have to be bound to a phase pr
2052
2053
2053
2054
<aname="examples"></a>
2054
2055
2056
+
## Sharing Configuration
2057
+
2058
+
Rather than copying the formatter files across many projects, it is possible to define a common configuration that is deployed as a standard artifact so that it can be then be reused by each project; for example:
In this example, the files `java-import-order.txt` and `java-formatter.xml` should be at the root of the deployed `org.mycompany:code-configuration:1.0.0` jar.
2087
+
2055
2088
## Example configurations (from real-world projects)
0 commit comments