Unverified Commit 83db2b5a authored by Licho's avatar Licho Committed by GitHub

refactor: modify spotless configure, support apply files that changed… (#1527)

* refactor: modify spotless configure, support apply files that changed from upstream/dev Signed-off-by: 's avatarlicho <lecho.sun@gmail.com> * refactor: spotless:apply from origin/dev * refactor: add spotless parameter at github action, and pom.xml profile Signed-off-by: 's avatarlicho <lecho.sun@gmail.com> Signed-off-by: 's avatarlicho <lecho.sun@gmail.com>
parent 5a516d25
......@@ -114,7 +114,7 @@ jobs:
${{ runner.os }}-${{ matrix.flink }}-maven-
- name: Check Style
run: |
./mvnw -T 4C -B --no-snapshot-updates clean spotless:check
./mvnw -T 4C -B --no-snapshot-updates -Dspotless.ratchetFrom=HEAD clean spotless:check
- name: Build and Package
run: |
./mvnw -B clean install \
......
......@@ -95,6 +95,7 @@
<log4j.version>2.19.0</log4j.version>
<docker.java.version>3.2.13</docker.java.version>
<reflections.version>0.10.2</reflections.version>
<spotless.ratchetFrom>origin/dev</spotless.ratchetFrom>
</properties>
<dependencyManagement>
......@@ -659,7 +660,7 @@
<version>${spotless.version}</version>
<configuration>
<!-- optional: limit format enforcement to just the files changed by this feature branch -->
<ratchetFrom>HEAD</ratchetFrom>
<ratchetFrom>${spotless.ratchetFrom}</ratchetFrom>
<java>
<eclipse>
<file>style/spotless_dinky_formatter.xml</file>
......@@ -697,12 +698,6 @@
<replacement>project</replacement>
</replace>
</pom>
<markdown>
<includes>
<include>**/*.md</include>
</includes>
<flexmark />
</markdown>
</configuration>
<executions>
<execution>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment