-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
66 lines (56 loc) · 1.92 KB
/
Copy pathbuild.gradle
File metadata and controls
66 lines (56 loc) · 1.92 KB
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
57
58
59
60
61
62
63
64
65
66
apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply plugin: 'org.jetbrains.dokka'
buildscript {
apply from: 'common.gradle'
apply from: rootProject.file("versions.gradle")
repositories {
mavenCentral()
google()
maven { url "https://jitpack.io" }
mavenLocal()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "com.android.tools.build:gradle:$versions.androidgradleplugin"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
classpath "io.github.gradle-nexus:publish-plugin:$versions.nexusPublish"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$versions.dokka"
}
}
allprojects {
repositories {
google()
}
apply from: rootProject.file("versions.gradle")
afterEvaluate {
// Common library module configurations
if (plugins.hasPlugin("com.android.library") || plugins.hasPlugin("com.android.application")) {
android.compileSdkVersion = versions.compileSdkVersion
android {
defaultConfig {
minSdkVersion versions.minSdkVersion
targetSdkVersion versions.targetSdkVersion
vectorDrawables.useSupportLibrary = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}
// Include sources in the jar
publishing {
singleVariant("release") {
withSourcesJar()
withJavadocJar()
}
}
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apply from: "${rootDir}/publish-root.gradle"