From 07b37d922ca5abad4dcee1ed6498e9f72116e5e0 Mon Sep 17 00:00:00 2001 From: Steve Hill Date: Wed, 3 Oct 2018 10:39:06 -0700 Subject: [PATCH] Include dependency constraint on jgit jgit is currently throwing a No signature of method: org.eclipse.jgit.internal.storage.file.FileRepository.getRef() in some scenarios, but upgrading to the latest fixes this problem --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index 70a2d3a..6d3deb7 100644 --- a/build.gradle +++ b/build.gradle @@ -31,6 +31,11 @@ contacts { } dependencies { + constraints { + compile('org.eclipse.jgit:org.eclipse.jgit:5.1.1.201809181055-r') { + because "Release plugin's call to `git.branch.current` throws MissingMethodException with transitive of grgit-core" + } + } compile ('org.ajoberstar.grgit:grgit-core:3.0.0-beta.1') { exclude group: 'org.codehaus.groovy', module: 'groovy' }