-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle.kts
33 lines (29 loc) · 1.01 KB
/
build.gradle.kts
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven("https://mirrors.tencent.com/nexus/repository/maven-public/")
}
dependencies {
classpath("com.android.tools.build:gradle:4.0.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.30")
classpath("com.vanniktech:gradle-maven-publish-plugin:0.14.2")
// For Kotlin projects, you need to add Dokka.
classpath("org.jetbrains.dokka:dokka-gradle-plugin:0.10.1")
}
}
subprojects {
repositories {
maven("https://mirrors.tencent.com/nexus/repository/maven-public/")
}
afterEvaluate {
if(plugins.hasPlugin("com.android.library") || plugins.hasPlugin("java-library")) {
group = "com.bennyhuo"
version = "1.0"
apply(plugin = "com.vanniktech.maven.publish")
}
}
}
tasks.register<Delete>(name = "clean") {
group = "build"
delete(rootProject.buildDir)
}