-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
88 lines (79 loc) · 2.61 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
apply plugin: 'idea'
idea.module {
excludeDirs += file('out')
}
buildscript {
apply from: 'api/manifest.gradle'
ext.kotlinVersion = '1.7.10'
repositories {
mavenCentral()
google()
// In case newly published library not yet synced with maven central
maven {
url("https://s01.oss.sonatype.org/content/repositories/releases/")
content {
includeGroup("dev.rikka.tools.refine")
includeGroup("dev.rikka.tools.autoresconfig")
includeGroup("dev.rikka.tools.materialthemebuilder")
}
}
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.20.0'
classpath 'dev.rikka.tools.refine:gradle-plugin:3.1.1'
classpath 'dev.rikka.tools.autoresconfig:gradle-plugin:1.2.1'
classpath 'dev.rikka.tools.materialthemebuilder:gradle-plugin:1.3.3'
}
}
allprojects {
repositories {
mavenCentral()
google()
// In case newly published library not yet synced with maven central
maven {
url("https://s01.oss.sonatype.org/content/repositories/releases/")
content {
includeGroupByRegex("dev.rikka.*")
includeGroup("org.lsposed.hiddenapibypass")
}
}
mavenLocal()
}
tasks.withType(Javadoc) {
failOnError false
options.addStringOption('Xdoclint:none', '-quiet')
}
}
subprojects {
afterEvaluate {
if (plugins.hasPlugin("com.android.library") ||
plugins.hasPlugin("com.android.application")) {
android {
compileSdkVersion(33)
defaultConfig {
minSdkVersion(23)
targetSdkVersion(32)
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
def gitCommitId = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
def gitCommitCount = Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim())
def baseVersionName = "${api_version_major}.13.0"
ext {
minSdkVersion = 23
targetSdkVersion = 32
versionCode = gitCommitCount
versionName = "${baseVersionName}.r${gitCommitCount}.${gitCommitId}"
}