diff --git a/README.md b/README.md index 991c17a..12e5439 100644 --- a/README.md +++ b/README.md @@ -122,9 +122,9 @@ There is this [example repository](https://github.com/bayer-science-for-a-better ## Compatibility -GraMi version >= 0.1.0 is tested for: -- [grakn-core](https://github.com/graknlabs/grakn) >= 2.0-alpha-6 -- [client-java](https://github.com/graknlabs/client-java) >= 2.0.0-alpha-8 +GraMi version >= 0.1.0-alpha-12 is tested for: +- [grakn-core](https://github.com/graknlabs/grakn) >= 2.0-alpha-9 +- using [client-java](https://github.com/graknlabs/client-java) >= 2.0.0-alpha-12 GraMi version < 0.1.0 is tested for: - [grakn-core](https://github.com/graknlabs/grakn) >= 1.8.2 diff --git a/build.gradle b/build.gradle index 759f573..e37b550 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { } group 'com.github.bayer-science-for-a-better-life' -version '0.1.0-alpha-9' +version '0.1.0-alpha-12' repositories { mavenCentral() @@ -15,7 +15,7 @@ repositories { } dependencies { - compile group: 'io.grakn.client', name: 'grakn-client', version: '2.0.0-alpha-9' + compile group: 'io.grakn.client', name: 'grakn-client', version: '2.0.0-alpha-12' testCompile group: 'junit', name: 'junit', version: '4.12' compile 'com.google.code.gson:gson:2.8.6' compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25' diff --git a/src/main/java/insert/GraknInserter.java b/src/main/java/insert/GraknInserter.java index 616bd95..8ef491f 100644 --- a/src/main/java/insert/GraknInserter.java +++ b/src/main/java/insert/GraknInserter.java @@ -134,7 +134,7 @@ public GraknClient getClient() { private void deleteDatabaseIfExists(GraknClient client) { if (client.databases().contains(databaseName)) { - client.databases().delete(databaseName); + client.databases().get(databaseName).delete(); } }