-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (45 loc) · 1.68 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
51
52
53
54
55
56
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.7.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// Bintray and Maven Gradle Classpaths
// classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4"
classpath "com.github.dcendents:android-maven-gradle-plugin:2.1"
//Dokka (gradlew :PayTheorySDK:dokka)
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.7.10"
//Jacoco
classpath "org.jacoco:org.jacoco.core:0.8.7"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
// Because the components are created only during the afterEvaluate phase, you must
// configure your publications using the afterEvaluate() lifecycle method.
}
// Maven publishing
plugins {
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
id("org.jetbrains.dokka") version "1.7.10"
id 'org.jetbrains.kotlin.android' version '1.7.10' apply false
}
allprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs += '-Xopt-in=kotlin.RequiresOptIn'
}
}
repositories {
google()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// Maven publishing
apply from: "${rootDir}/scripts/publish-root.gradle"