Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
fixed compiler version and base64
Browse files Browse the repository at this point in the history
  • Loading branch information
Synapticloop authored and Synapticloop committed Feb 11, 2016
1 parent 85a10ef commit 3bb2ec2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
language: java
jdk:
- oraclejdk8
- oraclejdk7
script: ./gradlew --info build
16 changes: 15 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ plugins {
id "maven-publish"
id 'net.saliman.cobertura' version '2.2.6'
id "com.jfrog.bintray" version "1.4"
id 'co.riiid.gradle' version '0.3.1'
}

group = 'synapticloop'
archivesBaseName = 'backblaze-b2-java-api'
description = """An api for backblaze b2 storage in java"""

version = 'v1.1.1'
version = 'v1.1.2'

description = """backblaze-b2-java-api"""

Expand Down Expand Up @@ -130,3 +131,16 @@ bintray {
}

}

github {
owner = group
repo = archivesBaseName
if(System.getenv('GITHUB_TOKEN')) {
token = System.getenv('GITHUB_TOKEN')
}
tagName = version
name = version
assets = [
'build/libs/' + archivesBaseName + '-' + version + '-all.jar'
]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package synapticloop.b2.request;

import java.util.Base64;

import org.apache.commons.codec.binary.Base64;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -35,7 +35,7 @@ public class B2AuthorizeAccountRequest extends BaseB2Request {
public B2AuthorizeAccountRequest(String accountId, String applicationKey) {
super(null);
url = B2_AUTHORIZE_ACCOUNT;
unencodedHeaders.put(REQUEST_PROPERTY_AUTHORIZATION, "Basic " + Base64.getEncoder().encodeToString((accountId + ":" + applicationKey).getBytes()));
unencodedHeaders.put(REQUEST_PROPERTY_AUTHORIZATION, "Basic " + Base64.encodeBase64String((accountId + ":" + applicationKey).getBytes()));
}

/**
Expand Down

0 comments on commit 3bb2ec2

Please sign in to comment.