forked from RikkaApps/Shizuku-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
66 lines (56 loc) · 1.78 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
57
58
59
60
61
62
63
64
65
66
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
apply from: 'manifest.gradle'
ext.kotlinVersion = '1.5.10'
repositories {
mavenCentral()
google()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.15.1'
}
}
allprojects {
repositories {
mavenCentral()
google()
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
plugins.withId("com.vanniktech.maven.publish") {
mavenPublish {
sonatypeHost = "S01"
}
}
}
subprojects {
afterEvaluate {
if (it.findProperty('publishLibrary') ?: false) {
plugins.apply('com.vanniktech.maven.publish')
version = android.defaultConfig.versionName
println("${it.displayName}: ${group}:${it.name}:${version}")
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
GROUP = "dev.rikka.shizuku"
POM_INCEPTION_YEAR = "2021"
POM_PACKAGING = "aar"
POM_URL = "https://github.com/RikkaApps/Shizuku-API"
POM_SCM_URL = "https://github.com/RikkaApps/Shizuku-API"
POM_SCM_CONNECTION = "scm:git@github.com:RikkaApps/Shizuku-API.git"
POM_SCM_DEV_CONNECTION = "scm:git@github.com:RikkaApps/Shizuku-API.git"
POM_LICENCE_NAME = "MIT License"
POM_LICENCE_URL = "https://github.com/RikkaApps/Shizuku-API/blob/master/LICENSE"
POM_LICENCE_DIST = "repo"
POM_DEVELOPER_ID = "rikka"
POM_DEVELOPER_NAME = "Rikka"
POM_DEVELOPER_URL = "https://github.com/RikkaW"
}