-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
72 lines (62 loc) · 1.87 KB
/
Copy pathbuild.gradle
File metadata and controls
72 lines (62 loc) · 1.87 KB
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
buildscript {
ext.agp_version = '8.9.1'
repositories {
mavenLocal()
mavenCentral()
google()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.android.tools.build:gradle:$agp_version"
classpath "io.spring.gradle:dependency-management-plugin:1.1.0"
classpath "io.github.gradle-nexus:publish-plugin:1.1.0"
classpath 'org.jreleaser:jreleaser-gradle-plugin:1.18.0'
}
}
// Java version compatibility
ext {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
subprojects {
// Common configurations for all subprojects
ext {
android_minSdkVersion = 21
android_targetSdkVersion = 35
android_compileSdkVersion = 35
android_buildToolsVersion = "35.0.0"
}
repositories {
mavenLocal()
mavenCentral()
google()
maven {
url "https://plugins.gradle.org/m2/"
}
}
// Encoding settings for Java
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
}
// Function to update Maven POM files
/*def updatePom(pom, gradleProject) {
pom.withXml { xml ->
def root = xml.asNode()
// Inject dependencies
def dependencies = root.appendNode('dependencies')
gradleProject.configurations.compile.allDependencies.each {
def dependency = dependencies.appendNode('dependency')
dependency.appendNode('groupId', it.group)
dependency.appendNode('artifactId', it.name)
if (it.version != null) {
dependency.appendNode('version', it.version)
}
}
// Inject name and description
root.appendNode('name', gradleProject.name)
root.appendNode('description', gradleProject.description)
}
}//*/