Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
META-INF/ | H | 25-Apr-2025 | - | 16 | 15 | |
src/com/google/googlejavaformat/java/ | H | 25-Apr-2025 | - | 145 | 110 | |
README.md | H A D | 25-Apr-2025 | 2 KiB | 44 | 32 | |
build.properties | H A D | 25-Apr-2025 | 189 | 8 | 7 | |
plugin.xml | H A D | 25-Apr-2025 | 952 | 29 | 11 | |
pom.xml | H A D | 25-Apr-2025 | 4.3 KiB | 142 | 114 |
README.md
1# Google Java Format Eclipse Plugin 2 3## Enabling 4 5See https://github.com/google/google-java-format#eclipse 6 7## Development 8 9### Prerequisites 10 11Before building the plugin, make sure to run `mvn 12tycho-versions:update-eclipse-metadata` to update the bundle version in 13`META-INF/MANIFEST.MF`. 14 15### Building the Plugin 16 171) Run `mvn clean package` in the `eclipse_plugin` directory. This will first copy the dependencies 18of the plugin to `eclipse_plugin/lib/` and then triggers the tycho build that uses these 19dependencies (as declared in `build.properties`) for the actual Eclipse plugin build.<br><br> 20If you also want to add the build artifact to the local maven repository, you can use 21`mvn clean install -Dtycho.localArtifacts=ignore` instead. Note, however, that you then must use 22this build command for every build with that specific version number until you clear the build 23artifact (or the 24[p2-local-metadata.properties](https://wiki.eclipse.org/Tycho/Target_Platform#Locally_built_artifacts)) 25from your local repository. Otherwise, you might run into issues caused by the build using an 26outdated build artifact created by a previous build instead of re-building the plugin. More 27information on this issue is given 28[in this thread](https://www.eclipse.org/lists/tycho-user/msg00952.html) and 29[this bug tracker entry](https://bugs.eclipse.org/bugs/show_bug.cgi?id=355367). 30 312) You can find the built plugin in 32`eclipse_plugin/target/google-java-format-eclipse-plugin-<version>.jar` 33 34#### Building against a local (snapshot) release of the core 35 36With the current build setup, the Eclipse plugin build pulls the needed build 37artifacts of the google java format core from the maven repository and copies it 38into the `eclipse_plugin/lib/` directory. 39 40If you instead want to build against a local (snapshot) build of the core which 41is not available in a maven repository (local or otherwise), you will have to 42place the appropriate version into the `eclipse_plugin/lib/` directory yourself 43before the build. 44