Skip to content

Commit

Permalink
Fix 3.0 -> 3.1 changes. + build issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantheleach committed Jan 18, 2016
1 parent f85c6a7 commit 05f1322
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
group 'au.id.rleach'
version '1.0.0'
version '1.0.1'

apply plugin: 'java'

sourceCompatibility = 1.8

repositories {
mavenCentral()
maven {
name = 'sponge'
url = 'http://repo.spongepowered.org/maven'
}
}

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile 'com.memetix:microsoft-translator-java-api:0.6.2'

}
compile 'org.spongepowered:spongeapi:3.0.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import java.util.*;


@Plugin(id="TranslateWithBing", name="TranslateWithBing", version="1.0.0")
@Plugin(id="TranslateWithBing", name="TranslateWithBing", version="1.0.1")
public class TranslateWithBing {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public Optional<LanguageData> createFrom(DataHolder dataHolder) {
public Optional<LanguageData> build(DataView container) throws InvalidDataException {
// Note that this should check the Queries.CONTENT_VERSION, but for the sake of demonstration
// it's not necessary
if (container.contains(TranslateKeys.Language)) {
if (container.contains(TranslateKeys.Language.getQuery())) {
final String language = container.getString(TranslateKeys.Language.getQuery()).get();
return Optional.of(new LanguageData(language));
}
Expand Down

0 comments on commit 05f1322

Please sign in to comment.