Skip to content

Commit

Permalink
Bump to 2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
minio-trusted committed Oct 8, 2016
1 parent 1284591 commit 10ae761
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
28 changes: 14 additions & 14 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ Downloading https://services.gradle.org/distributions/gradle-2.5-bin.zip
BUILD SUCCESSFUL
...
$ ls build/libs/
[2015-11-27 19:44:07 PST] 6.6MiB minio-2.0.3-all.jar
[2015-11-27 19:43:59 PST] 182KiB minio-2.0.3-javadoc.jar
[2015-11-27 19:44:08 PST] 53KiB minio-2.0.3-sources.jar
[2015-11-27 19:43:47 PST] 64KiB minio-2.0.3.jar
[2015-11-27 19:44:07 PST] 6.6MiB minio-2.0.4-all.jar
[2015-11-27 19:43:59 PST] 182KiB minio-2.0.4-javadoc.jar
[2015-11-27 19:44:08 PST] 53KiB minio-2.0.4-sources.jar
[2015-11-27 19:43:47 PST] 64KiB minio-2.0.4.jar
$ cd minio-java/examples
$ cp ../build/libs/minio-2.0.3-all.jar .
$ cp ../build/libs/minio-2.0.4-all.jar .
[ edit ListBuckets.java ]
$ javac -cp 'minio-2.0.3-all.jar' ListBuckets.java
$ java -cp '.:minio-2.0.3-all.jar' ListBuckets
$ javac -cp 'minio-2.0.4-all.jar' ListBuckets.java
$ java -cp '.:minio-2.0.4-all.jar' ListBuckets
bucket1
bucket2
....
Expand All @@ -46,15 +46,15 @@ Downloading https://services.gradle.org/distributions/gradle-2.5-bin.zip
BUILD SUCCESSFUL
C:\minio-java\> dir build\libs\
[2015-11-27 19:44:07 PST] 6.6MiB minio-2.0.3-all.jar
[2015-11-27 19:43:59 PST] 182KiB minio-2.0.3-javadoc.jar
[2015-11-27 19:44:08 PST] 53KiB minio-2.0.3-sources.jar
[2015-11-27 19:43:47 PST] 64KiB minio-2.0.3.jar
[2015-11-27 19:44:07 PST] 6.6MiB minio-2.0.4-all.jar
[2015-11-27 19:43:59 PST] 182KiB minio-2.0.4-javadoc.jar
[2015-11-27 19:44:08 PST] 53KiB minio-2.0.4-sources.jar
[2015-11-27 19:43:47 PST] 64KiB minio-2.0.4.jar
C:\minio-java\examples> cd minio-java/examples
C:\minio-java\examples> mv ..\build\libs\minio-2.0.3-all.jar .
C:\minio-java\examples> mv ..\build\libs\minio-2.0.4-all.jar .
[ edit ListBuckets.java ]
C:\minio-java\examples> javac -cp 'minio-2.0.3-all.jar' ListBuckets.java
C:\minio-java\examples> java -cp '.:minio-2.0.3-all.jar' ListBuckets
C:\minio-java\examples> javac -cp 'minio-2.0.4-all.jar' ListBuckets.java
C:\minio-java\examples> java -cp '.:minio-2.0.4-all.jar' ListBuckets
bucket1
bucket2
....
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This document assumes that you have one of the following Java Environments setup
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<version>2.0.3</version>
<version>2.0.4</version>
</dependency>

```
Expand All @@ -26,14 +26,14 @@ This document assumes that you have one of the following Java Environments setup
```xml

dependencies {
compile 'io.minio:minio:2.0.3'
compile 'io.minio:minio:2.0.4'
}

```

## Download from JAR

You can download the latest [JAR](http://repo1.maven.org/maven2/io/minio/minio/2.0.3/) directly from maven.
You can download the latest [JAR](http://repo1.maven.org/maven2/io/minio/minio/2.0.4/) directly from maven.

## Quick Start Example - File Uploader
This example program connects to an object storage server, makes a bucket on the server and then uploads a file to the bucket.
Expand Down Expand Up @@ -87,8 +87,8 @@ public class FileUploader {
}

// Upload the zip file to the bucket with putObject
minioClient.putObject("asiatrip","asiaphotos.zip", "/tmp/asiaphotos.zip");
System.out.println("/tmp/asiaphotos.zip is successfully uploaded as asiaphotos.zip in asiatrip bucket.");
minioClient.putObject("asiatrip","asiaphotos.zip", "/home/user/Photos/asiaphotos.zip");
System.out.println("/home/user/Photos/asiaphotos.zip is successfully uploaded as asiaphotos.zip to `asiatrip` bucket.");
} catch(MinioException e) {
System.out.println("Error occurred: " + e);
}
Expand All @@ -102,16 +102,16 @@ public class FileUploader {

```sh

$ javac -cp "minio-2.0.3.jar" FileUploader.java
$ javac -cp "minio-2.0.4-all.jar" FileUploader.java

```

#### Run FileUploader

```sh

$ java -cp "minio-2.0.3.jar:." FileUploader
/tmp/asiaphotos.zip is successfully uploaded as asiaphotos.zip in asiatrip bucket.
$ java -cp "minio-2.0.4-all.jar:." FileUploader
/home/user/Photos/asiaphotos.zip is successfully uploaded as asiaphotos.zip to `asiatrip` bucket.

$ mc ls play/asiatrip/
[2016-06-02 18:10:29 PDT] 82KiB asiaphotos.zip
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if (project.properties.containsKey('ossrhPassword')) {

group = 'io.minio'
archivesBaseName = 'minio'
version = '2.0.3'
version = '2.0.4'

sourceCompatibility = 1.7
targetCompatibility = 1.7
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/minio/MinioClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class MinioClientTest {
public void setUserAgentOnceSet() throws IOException, MinioException {
String expectedHost = "example.com";
MinioClient client = new MinioClient("http://" + expectedHost + "/");
client.setAppInfo("testApp", "2.0.3");
client.setAppInfo("testApp", "2.0.4");
}

@Test(expected = MinioException.class)
Expand Down

0 comments on commit 10ae761

Please sign in to comment.