Move jgit version declaration to scriptDepVersions.

This commit is contained in:
Dawid Weiss 2020-02-20 13:54:07 +01:00
parent 2fdd3b02bb
commit 7604639b59
2 changed files with 5 additions and 6 deletions

View File

@ -37,13 +37,14 @@ ext {
buildTime = DateTimeFormatter.ofPattern("HH:mm:ss").format(tstamp)
buildYear = DateTimeFormatter.ofPattern("yyyy").format(tstamp)
// Workaround for this one, for now:
// https://github.com/palantir/gradle-consistent-versions/issues/383
// Declare script dependency versions outside of palantir's
// version unification control. These are not our main dependencies.
scriptDepVersions = [
"apache-rat": "0.11",
"ecj": "3.19.0",
"javacc": "5.0",
"jflex": "1.7.0",
"ecj": "3.19.0"
"jgit": "5.3.0.201903130848-r",
]
}

View File

@ -21,15 +21,13 @@ import org.eclipse.jgit.api.*;
import org.eclipse.jgit.storage.file.FileRepositoryBuilder;
import org.eclipse.jgit.errors.*;
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.eclipse.jgit:org.eclipse.jgit:5.3.0.201903130848-r'
classpath 'commons-codec:commons-codec:1.6'
classpath "org.eclipse.jgit:org.eclipse.jgit:${scriptDepVersions['jgit']}"
}
}