This repository has been archived by the owner on Jun 26, 2024. It is now read-only.
forked from shwenzhang/AndResGuard
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
53 lines (53 loc) · 1.72 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
//像这样配置插件也可以
//buildscript {
// repositories {
// mavenCentral()
// google()
// }
// dependencies {
// classpath "cn.lalaki.AndResGuard:cn.lalaki.AndResGuard.gradle.plugin:1.5.1-final"
// }
//}
plugins {
id "cn.lalaki.AndResGuard" version "1.5.0-final" apply false
//noinspection GradlePluginVersion
id "com.android.application" version "${ANDROID_GRADLE_PLUGIN}" 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/22/docs/api/"
}
}
}
if (hasProperty('buildScan')) {
develocity.buildScan.termsOfUseAgree = "yes"
develocity.buildScan.termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
}
def localOutput = new File(rootProject.layout.projectDirectory.asFile.absolutePath, "build")
tasks.register('clean', Delete) {
delete(localOutput)
delete(localRepo)
}
ext {
javaVersion = JavaVersion.VERSION_20
POM_PACKAGING = "pom"
POM_DESCRIPTION = "AndResGuard Unofficial"
versionName = ANDRESGUARD_VERSION
groupID = "cn.lalaki.AndResGuard"
localPath = localOutput.absolutePath
localRepo = "D:\\repo\\"
}
//by lalaki.cn