aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-02 17:24:17 -0700
committerAllan Wang <me@allanwang.ca>2017-07-02 17:24:17 -0700
commit4a07d2ed10741e08895c9e9f03738656ddfc33f9 (patch)
tree274a086986ef50d5f48ef3320cd397dcabce1fad /build.gradle
parentb9aab92aee334acdffc6c0fde32101bb72be9a5e (diff)
downloadfrost-4a07d2ed10741e08895c9e9f03738656ddfc33f9.tar.gz
frost-4a07d2ed10741e08895c9e9f03738656ddfc33f9.tar.bz2
frost-4a07d2ed10741e08895c9e9f03738656ddfc33f9.zip
Adding auto uploads
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