summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnna Koskinen <Ansku@users.noreply.github.com>2021-03-03 13:59:50 +0200
committerGitHub <noreply@github.com>2021-03-03 13:59:50 +0200
commitce60c5b418b77bb4164c46306cc16ba769c2a985 (patch)
treee6a9edd6257c78ebdc2fadee4052b8397f04ec62
parentc7345a730db2df83e0aebb335dcbd69126ec6ced (diff)
downloadvaadin-framework-ce60c5b418b77bb4164c46306cc16ba769c2a985.tar.gz
vaadin-framework-ce60c5b418b77bb4164c46306cc16ba769c2a985.zip
Remove whitespace-maven-plugin and formatter-maven-plugin. (#12213)
- These plugins cause significant problems for many Windows developers, and since most active maintainers are currently included in that group, the plugins have been deemed more trouble than they are worth.
-rw-r--r--.github/CONTRIBUTING.md2
-rw-r--r--README-DEV.md1
-rw-r--r--client/pom.xml9
-rw-r--r--pom.xml70
-rw-r--r--server/pom.xml8
-rw-r--r--shared/pom.xml9
-rw-r--r--testbench-api/pom.xml4
-rw-r--r--uitest/pom.xml9
8 files changed, 0 insertions, 112 deletions
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 4e5c692ad4..cbae52717d 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -14,8 +14,6 @@ Unless the issue is specific to a single version of the Framework, you should al
In your repo, make a new branch from `master`. Make your code changes in that branch, and once you're done make a pull request to the `vaadin/framework` branch `master`.
-The `vaadin/framework` project uses `formatter-maven-plugin` to format the code. It will be executed as part of the Maven build. Make sure to run `mvn compile` before making the commit.
-
We recommend making sure that the "Allow edits from maintainers" checkbox on the pull request page is checked. This allows us to commit minor fixes, like correcting typos, without bothering you.
### Getting feedback and responding to it
diff --git a/README-DEV.md b/README-DEV.md
index c8135f4580..2cb1e2f0dd 100644
--- a/README-DEV.md
+++ b/README-DEV.md
@@ -119,7 +119,6 @@ After that is done, you should have 9 of 28 save actions activated and listed as
Run <code>install</code> maven goal for the project root to get started.
In Eclipse this is done by right-clicking on the project root in Project Explorer and choosing *Run As* -> *Maven Build...*. If you choose to skip tests you may need to run the <code>install</code> maven goal for `vaadin-uitest` project separately.
* Note that the first compilation takes a while to finish as Maven downloads dependencies used in the projects.
-* In some Windows environments the compilation doesn't respect the `core.autocrlf=false` and the workspace preferences listed in the previous section, and running <code>install</code> converts all line endings from six core projects (root, `vaadin-client`, `vaadin-server`, `vaadin-shared`, `vaadin-testbench-api`, `vaadin-uitest`) to Windows-style. As a quick-and-dirty workaround you can change the line endings back through *File* -> *Convert Line Delimiters To* -> *Unix* and comment out references to plugins `net.revelc.code.formatter` and `com.github.dantwining.whitespace-maven-plugin` from each affected module's pom.xml (root project references them twice) to prevent it from happening again. *Do not* include those changes or any files with Windows-style line endings in any pull request. Because you consequently lose the formatting benefits of those plugins, you also need to be more careful about not including irrelevant formatting changes in your commits.
Now the project should compile without further configuration.
diff --git a/client/pom.xml b/client/pom.xml
index 9b77989bc8..1af8b0af5f 100644
--- a/client/pom.xml
+++ b/client/pom.xml
@@ -47,15 +47,6 @@
<build>
<plugins>
<plugin>
- <groupId>net.revelc.code.formatter</groupId>
- <artifactId>formatter-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>com.github.dantwining.whitespace-maven-plugin</groupId>
- <artifactId>whitespace-maven-plugin</artifactId>
- </plugin>
-
- <plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<!-- Copy .java files to package -->
diff --git a/pom.xml b/pom.xml
index fb75074ef2..300ee9715a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -459,38 +459,6 @@
<version>${vaadin.plugin.version}</version>
</plugin>
<plugin>
- <groupId>net.revelc.code.formatter</groupId>
- <artifactId>formatter-maven-plugin</artifactId>
- <version>2.7.2</version>
- <configuration>
- <configFile>${project.basedir}/../eclipse/VaadinJavaConventions.xml</configFile>
- <skipJsFormatting>true</skipJsFormatting>
- </configuration>
- <executions>
- <execution>
- <id>format-source</id>
- <goals>
- <goal>format</goal>
- </goals>
- <phase>process-sources</phase>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>com.github.dantwining.whitespace-maven-plugin</groupId>
- <artifactId>whitespace-maven-plugin</artifactId>
- <version>1.0.4</version>
- <executions>
- <execution>
- <id>trim-trailing-spaces-source</id>
- <goals>
- <goal>trim</goal>
- </goals>
- <phase>process-sources</phase>
- </execution>
- </executions>
- </plugin>
- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
@@ -543,44 +511,6 @@
<ignore></ignore>
</action>
</pluginExecution>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>
- net.revelc.code.formatter
- </groupId>
- <artifactId>
- formatter-maven-plugin
- </artifactId>
- <versionRange>
- [2.7.2,)
- </versionRange>
- <goals>
- <goal>format</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <ignore></ignore>
- </action>
- </pluginExecution>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>
- com.github.dantwining.whitespace-maven-plugin
- </groupId>
- <artifactId>
- whitespace-maven-plugin
- </artifactId>
- <versionRange>
- [1.0.4,)
- </versionRange>
- <goals>
- <goal>trim</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <ignore></ignore>
- </action>
- </pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
diff --git a/server/pom.xml b/server/pom.xml
index 98040a5601..977ec0c9fb 100644
--- a/server/pom.xml
+++ b/server/pom.xml
@@ -140,14 +140,6 @@
<build>
<plugins>
<plugin>
- <groupId>net.revelc.code.formatter</groupId>
- <artifactId>formatter-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>com.github.dantwining.whitespace-maven-plugin</groupId>
- <artifactId>whitespace-maven-plugin</artifactId>
- </plugin>
- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
diff --git a/shared/pom.xml b/shared/pom.xml
index f6e4c0e99b..d339becaee 100644
--- a/shared/pom.xml
+++ b/shared/pom.xml
@@ -37,15 +37,6 @@
<build>
<plugins>
- <plugin>
- <groupId>net.revelc.code.formatter</groupId>
- <artifactId>formatter-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>com.github.dantwining.whitespace-maven-plugin</groupId>
- <artifactId>whitespace-maven-plugin</artifactId>
- </plugin>
-
<!-- Generated Version.java -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
diff --git a/testbench-api/pom.xml b/testbench-api/pom.xml
index 23a7a5b5c8..5d2ddb2dc5 100644
--- a/testbench-api/pom.xml
+++ b/testbench-api/pom.xml
@@ -36,10 +36,6 @@
<build>
<plugins>
<plugin>
- <groupId>net.revelc.code.formatter</groupId>
- <artifactId>formatter-maven-plugin</artifactId>
- </plugin>
- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<executions>
diff --git a/uitest/pom.xml b/uitest/pom.xml
index ff2589ad3a..0dd06d073e 100644
--- a/uitest/pom.xml
+++ b/uitest/pom.xml
@@ -238,15 +238,6 @@
<plugins>
<plugin>
- <groupId>net.revelc.code.formatter</groupId>
- <artifactId>formatter-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>com.github.dantwining.whitespace-maven-plugin</groupId>
- <artifactId>whitespace-maven-plugin</artifactId>
- </plugin>
-
- <plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<configuration>