Skip to content

Commit f909894

Browse files
authored
Merge pull request #1 from yassine/master
moved the VERSION file under the project main package to void potenti…
2 parents 49b6fb7 + 3be9bcf commit f909894

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

pom.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ project {
133133
resource {
134134
directory 'src/main/resources'
135135
filtering true
136-
includes('VERSION')
136+
includes('io/ipdata/client/VERSION')
137137
}
138138
}
139139
}

src/main/java/io/ipdata/client/service/ApiKeyRequestInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ApiKeyRequestInterceptor implements RequestInterceptor {
1919
String version;
2020
try {
2121
version = CharStreams.toString(new InputStreamReader(ApiKeyRequestInterceptor.class
22-
.getResourceAsStream("/VERSION"))).replaceAll("\\n","");
22+
.getResourceAsStream("/io/ipdata/client/VERSION"))).replaceAll("\\n","");
2323
version = String.format("io.ipdata.client.java.%s", version);
2424
}catch (Exception e){
2525
log.error(e.getMessage(), e);
File renamed without changes.

0 commit comments

Comments
 (0)