Skip to content
Permalink
Browse files
(fix) checkstyle errors
  • Loading branch information
Rob Tompkins committed May 18, 2018
1 parent 0c9d294 commit bef9b22e1924dbfec192b12b81e5e469d29d4e42
Showing 2 changed files with 22 additions and 12 deletions.
24 pom.xml
@@ -272,14 +272,22 @@
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle.plugin.version}</version>
<configuration>
<enableRulesSummary>false</enableRulesSummary>
<configLocation>${basedir}/checkstyle.xml</configLocation>
<headerLocation>${basedir}/license-header.txt</headerLocation>
<suppressionsLocation>${basedir}/checkstyle-suppressions.xml</suppressionsLocation>
<suppressionsFileExpression>${basedir}/checkstyle-suppressions.xml</suppressionsFileExpression>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
</configuration>
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<configuration>
<configLocation>${basedir}/checkstyle.xml</configLocation>
<headerLocation>${basedir}/license-header.txt</headerLocation>
<suppressionsLocation>${basedir}/checkstyle-suppressions.xml</suppressionsLocation>
<suppressionsFileExpression>${basedir}/checkstyle-suppressions.xml</suppressionsFileExpression>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
</configuration>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
@@ -165,8 +165,8 @@ private void putAttachedArtifactInSha1Map(Artifact artifact) throws MojoExecutio
+ "-"
+ artifact.getVersion()
+ " type: "
+ artifact.getType()
,e);
+ artifact.getType(),
e);
}
}

@@ -219,12 +219,14 @@ private void sha1AndMd5SignArtifacts() throws MojoExecutionException {
try {
String md5 = DigestUtils.md5Hex(Files.readAllBytes(artifact.getFile().toPath()));
getLog().info(artifact.getFile().getName() + " md5: " + md5);
try (PrintWriter md5Writer = new PrintWriter(getMd5FilePath(workingDirectory, artifact.getFile()))){
try (PrintWriter md5Writer =
new PrintWriter(getMd5FilePath(workingDirectory, artifact.getFile()))) {
md5Writer.println(md5);
}
String sha1 = DigestUtils.sha1Hex(Files.readAllBytes(artifact.getFile().toPath()));
getLog().info(artifact.getFile().getName() + " sha1: " + sha1);
try (PrintWriter sha1Writer = new PrintWriter(getSha1FilePath(workingDirectory, artifact.getFile()))) {
try (PrintWriter sha1Writer =
new PrintWriter(getSha1FilePath(workingDirectory, artifact.getFile()))) {
sha1Writer.println(sha1);
}
} catch (IOException e) {

0 comments on commit bef9b22

Please sign in to comment.