Set version to 2.11.1 and adapt to JGit API changes

Change-Id: I6de32d45246b2bf072d654dbb04f9444fdf7edff
diff --git a/BUCK b/BUCK
index c422070..15df39e 100644
--- a/BUCK
+++ b/BUCK
@@ -9,7 +9,7 @@
     'Implementation-URL: https://gerrit.googlesource.com/plugins/reviewers-by-blame',
     'Gerrit-PluginName: reviewers-by-blame',
     'Gerrit-ApiType: plugin',
-    'Gerrit-ApiVersion: 2.11',
+    'Gerrit-ApiVersion: 2.11.1',
     'Gerrit-Module: com.googlesource.gerrit.plugins.reviewersbyblame.ReviewersByBlameModule',
   ],
 )
diff --git a/VERSION b/VERSION
index 920fe49..55773d3 100644
--- a/VERSION
+++ b/VERSION
@@ -1,5 +1,5 @@
 # Used by BUCK to include "Implementation-Version" in plugin Manifest.
 # If this file doesn't exist the output of 'git describe' is used
 # instead.
-PLUGIN_VERSION = '2.11'
+PLUGIN_VERSION = '2.11.1'
 
diff --git a/lib/gerrit/BUCK b/lib/gerrit/BUCK
index 31c52aa..c86049a 100644
--- a/lib/gerrit/BUCK
+++ b/lib/gerrit/BUCK
@@ -1,6 +1,6 @@
 include_defs('//bucklets/maven_jar.bucklet')
 
-VER = '2.11'
+VER = '2.11.1'
 REPO = MAVEN_CENTRAL
 
 maven_jar(
diff --git a/src/main/java/com/googlesource/gerrit/plugins/reviewersbyblame/ChangeUpdatedListener.java b/src/main/java/com/googlesource/gerrit/plugins/reviewersbyblame/ChangeUpdatedListener.java
index 59bb3b4..d21d5c3 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/reviewersbyblame/ChangeUpdatedListener.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/reviewersbyblame/ChangeUpdatedListener.java
@@ -191,7 +191,7 @@
     } catch (OrmException x) {
       log.error(x.getMessage(), x);
     } finally {
-      rw.release();
+      rw.close();
       git.close();
     }
   }