Skip to content

Commit

Permalink
Fix Version file
Browse files Browse the repository at this point in the history
  • Loading branch information
mmolimar committed Mar 13, 2017
1 parent 28d1cc7 commit e84c419
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.7</version>
<configuration>
<formats>
<format>html</format>
<format>xml</format>
</formats>
<check/>
</configuration>
</plugin>
</plugins>
<resources>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.mmolimar.kafka.connect.fs.util;

import com.sun.tools.javac.jvm.ClassFile;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand All @@ -13,7 +12,7 @@ public class Version {
static {
try {
Properties props = new Properties();
props.load(ClassFile.Version.class.getResourceAsStream("/kafka-connect-fs-version.properties"));
props.load(Version.class.getResourceAsStream("/kafka-connect-fs-version.properties"));
version = props.getProperty("version", version).trim();
} catch (Exception e) {
log.warn("Error while loading version:", e);
Expand Down

0 comments on commit e84c419

Please sign in to comment.