aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle25
1 files changed, 24 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index d2011ba6..f0daea0d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,11 +4,16 @@ buildscript {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
+ maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${KOTLIN}"
classpath 'io.fabric.tools:gradle:1.+'
+ classpath 'com.github.triplet.gradle:play-publisher:1.2.0'
+ classpath "gradle.plugin.com.zoltu.gradle.plugin:git-versioning:3.0.3"
+//https://mvnrepository.com/artifact/org.eclipse.jgit/org.eclipse.jgit
+// classpath 'org.eclipse.jgit:org.eclipse.jgit:4.8.0.201706111038-r'
}
}
@@ -32,4 +37,22 @@ task generateChangelogMd() {
}
def changelogMd = new File("$project.rootDir/docs/Changelog.md")
changelogMd.write(sw.toString())
-} \ No newline at end of file
+}
+
+//ext.commitCount = { ->
+// def repo
+// def count = 0
+// try {
+// repo = new FileRepositoryBuilder()
+// .readEnvironment()
+// .findGitDir(project.projectDir)
+// .build()
+// } catch (IllegalArgumentException ignore) {
+// // No repo found
+// return count
+// }
+//
+// def git = Git.wrap(repo)
+// def commits = git.log().call()
+// return commits.size()
+//} \ No newline at end of file