Skip to content

Commit

Permalink
Extracted version to a file.
Browse files Browse the repository at this point in the history
  • Loading branch information
MouaYing committed Jun 3, 2016
1 parent 2b81b63 commit 31d3d85
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
19 changes: 15 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

<groupId>com.smartystreets.api</groupId>
<artifactId>smartystreets-java-sdk</artifactId>
<version>1.0.0</version>
<version>0.0.0</version>
<packaging>jar</packaging>

<name>SmartyStreets Java SDK</name>
<description>A library for Java developers to use to help them easily access the SmartyStreets APIs.</description>
<description>A library to help Java developers easily access the SmartyStreets APIs.</description>
<url>https://github.com/smartystreets/smartystreets-java-sdk</url>

<licenses>
Expand Down Expand Up @@ -40,10 +40,10 @@
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<!--<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</repository>-->
</distributionManagement>

<properties>
Expand Down Expand Up @@ -116,6 +116,17 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.3</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/smartystreets/api/GoogleSender.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private void copyHeaders(Request request, HttpRequest httpRequest) {
for (String headerName : headers.keySet())
httpHeaders.set(headerName, headers.get(headerName));

httpHeaders.setUserAgent("smartystreets sdk:java@" + VERSION);
httpHeaders.setUserAgent("smartystreets sdk:java@" + Version.CURRENT);
}

private Response buildResponse(HttpResponse httpResponse) throws IOException {
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/smartystreets/api/Sender.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
import java.io.IOException;

public interface Sender {
String VERSION = "alpha";
Response send(Request request) throws SmartyException, IOException;
}
5 changes: 5 additions & 0 deletions src/main/java/com/smartystreets/api/Version.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.smartystreets.api;

public class Version {
static final String CURRENT = "0.0.0";
}

0 comments on commit 31d3d85

Please sign in to comment.