forked from tinkoff-mobile-tech/tinkoff-asdk-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (44 loc) · 1.24 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
buildscript {
apply from: 'gradle/versions.gradle'
repositories {
google()
jcenter()
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath "com.android.tools.build:gradle:${gradlePluginVersion}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion"
}
}
plugins {
id 'org.ajoberstar.grgit' version '5.0.0'
}
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.dokka'
apply from: 'gradle/versions.gradle'
allprojects {
repositories {
google()
mavenCentral()
maven { url "https://maven.google.com" }
tasks.withType(Javadoc) {
options.addStringOption('encoding', 'UTF-8')
}
}
}
tasks.register("realeaseNotes") {
doLast {
def branch = grgit.branch.current().fullName
def log = grgit
.log { range branch, diffWithOrigin }
.findAll { !it.shortMessage.startsWith("Merge") }
.collect { it.shortMessage }
.join("\n\n")
print log
}
}
dokkaHtmlMultiModule.configure {
outputDirectory.set(new File("$buildDir/dokka"))
}