Skip to content

Rename plugin: maven-git-code-format -> git-code-format-maven-plugin #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<modelVersion>4.0.0</modelVersion>

<groupId>com.cosium.code</groupId>
<artifactId>maven-git-code-format</artifactId>
<artifactId>git-code-format-maven-plugin</artifactId>
<version>1.40-SNAPSHOT</version>
<packaging>maven-plugin</packaging>

<name>maven-git-code-format Maven Plugin</name>
<name>Git Code Format Maven Plugin</name>
<description>A maven plugin that automatically deploys https://github.com/google/google-java-format code formatter
as a pre-commit git hook
</description>
Expand All @@ -19,7 +19,6 @@
<org.apache.commons.io.version>2.6</org.apache.commons.io.version>
<org.apache.commons.lang.version>3.9</org.apache.commons.lang.version>
<org.apache.commons.exec.version>1.3</org.apache.commons.exec.version>
<maven-git-code-format.version>1.25</maven-git-code-format.version>
</properties>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/cosium/code/format/InstallHooksMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@Mojo(name = "install-hooks", defaultPhase = LifecyclePhase.INITIALIZE, threadSafe = true)
public class InstallHooksMojo extends AbstractMavenGitCodeFormatMojo {

private static final String BASE_PLUGIN_PRE_COMMIT_HOOK = "maven-git-code-format.pre-commit.sh";
private static final String BASE_PLUGIN_PRE_COMMIT_HOOK = "git-code-format.pre-commit.sh";
private static final String PRE_COMMIT_HOOK_BASE_SCRIPT = "pre-commit";

private final ExecutableManager executableManager = new ExecutableManager(this::getLog);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
set -e
%s -f %s com.cosium.code:git-code-format-maven-plugin:on-pre-commit %s

This file was deleted.

4 changes: 2 additions & 2 deletions src/test/java/com/cosium/code/format/AbstractTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
@RunWith(MavenJUnitTestRunner.class)
public abstract class AbstractTest {
private static final String GROUP_ID = "com.cosium.code";
private static final String ARTIFACT_ID = "maven-git-code-format";
private static final String ARTIFACT_ID = "git-code-format-maven-plugin";
@Rule public final TestResources resources;

private final MavenRuntime maven;
Expand All @@ -50,7 +50,7 @@ public AbstractTest(
this.resources =
new TestResources(
"src/test/projects",
Files.createTempDirectory("maven-git-code-format-test").toString());
Files.createTempDirectory(ARTIFACT_ID + "-test").toString());
this.maven = mavenBuilder.withCliOptions("-B", "-U").build();
this.projectRootDirectoryName = projectRootDirectoryName;
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/projects/non-root-module/module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<plugins>
<plugin>
<groupId>com.cosium.code</groupId>
<artifactId>maven-git-code-format</artifactId>
<artifactId>git-code-format-maven-plugin</artifactId>
<version>${it-project.version}</version>
<executions>
<execution>
Expand Down
2 changes: 1 addition & 1 deletion src/test/projects/single-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<plugins>
<plugin>
<groupId>com.cosium.code</groupId>
<artifactId>maven-git-code-format</artifactId>
<artifactId>git-code-format-maven-plugin</artifactId>
<version>${it-project.version}</version>
<executions>
<execution>
Expand Down