forked from missioncommand/mil-sym-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
108 lines (93 loc) · 3.14 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
buildscript {
repositories {
mavenLocal()
mavenCentral()
google()
maven {
url "https://plugins.gradle.org/m2/"
}
//jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath "io.spring.gradle:dependency-management-plugin:1.0.9.RELEASE"
classpath 'io.github.gradle-nexus:publish-plugin:1.1.0'
}
}
apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply from: "${rootDir}/scripts/publish-root.gradle"
ext {
// bintrayUser = System.getenv("BINTRAY_USER") ?: project.hasProperty('bintrayUser') ? bintrayUser : ''
// bintrayKey = System.getenv('BINTRAY_KEY') ?: project.hasProperty('bintrayKey') ? bintrayKey : ''
//
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
//
// git = org.ajoberstar.grgit.Grgit.open(file('.')) // Open the Git repository in the current directory.
// revision = git.head().id // Get commitId of HEAD.
}
subprojects {
apply plugin: 'io.spring.dependency-management'
apply plugin: 'maven-publish'
ext {
android_minSdkVersion = 19//15
android_targetSdkVersion = 19//19
android_compileSdkVersion = 28//19
android_buildToolsVersion = "30.0.3"
}
group = "mil.army.missioncommand"
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
google() //for AAPT2
}
dependencyManagement {
dependencies {
dependency ("com.android.support:support-v4:28.0.0")
dependency ("com.android.support:support-annotations:28.0.0")
//dependency ("com.google.android.gms:play-services:12.0.1")
dependency ("com.google.android.gms:play-services:6.5.87")
/*dependency ("com.android.support:support-v4:25.3.1")
dependency ("com.android.support:support-annotations:25.3.1")
dependency ("com.google.android.gms:play-services:6.5.87")//*/
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
}
def updatePom(pom, gradleProject) {
pom.withXml { XmlProvider 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/description
*/
root.appendNode('name' , gradleProject.name)
root.appendNode('description', gradleProject.description)
}
}
/*task wrapper(type: Wrapper, description: "Generates gradlew[.bat] scripts") {
// gradleVersion = '6.5.1'
// gradleVersion = '3.4'
//gradleVersion = '4.10.3'
gradleVersion = '6.8.3'
}//*/
//wrapper{
// gradleVersion = '6.5.1'
// gradleVersion = '4.10.3'
//}