This repository was archived by the owner on Mar 11, 2025. It is now read-only.
forked from shwenzhang/AndResGuard
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
51 lines (51 loc) · 1.69 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
// 像这样配置插件也可以
//buildscript {
// repositories {
// mavenCentral()
// google()
// }
// dependencies {
// classpath "cn.lalaki.AndResGuard:cn.lalaki.AndResGuard.gradle.plugin:1.7.3-final"
// }
//}
plugins {
// AndResGuard 推荐这样配置
// id "cn.lalaki.AndResGuard" version "${ANDRESGUARD_VERSION}" apply false
alias(libs.plugins.lalaki.andresguard) apply false
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.lalaki.central) apply false
}
allprojects {
tasks.withType(JavaCompile).configureEach {
sourceCompatibility = rootProject.ext.javaVersion
targetCompatibility = rootProject.ext.javaVersion
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
tasks.withType(GroovyCompile) configureEach {
sourceCompatibility = rootProject.ext.javaVersion
targetCompatibility = rootProject.ext.javaVersion
}
tasks.withType(Javadoc).configureEach {
options {
addStringOption("Xdoclint:none", "-quiet")
encoding "UTF-8"
charSet "UTF-8"
links "https://docs.oracle.com/en/java/javase/${javaVersion}/docs/api/"
}
}
}
def outputDir = new File(rootProject.layout.projectDirectory.asFile.canonicalPath, "build")
tasks.register("clean", Delete) {
delete(outputDir)
}
ext {
POM_PACKAGING = "pom"
POM_DESCRIPTION = "AndResGuard Unofficial"
javaVersion = JavaVersion.VERSION_21
versionName = ANDRESGUARD_VERSION
groupID = "cn.lalaki.AndResGuard"
localPath = outputDir.canonicalPath
localRepo = "D:\\repo\\"
}
//by lalaki.cn