This repository was archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.gradle
95 lines (80 loc) · 2.3 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
buildscript {
repositories {
if (rootProject.ext.publishToMavenLocal) {
mavenLocal()
}
}
}
apply plugin: 'com.android.library'
if (rootProject.ext.publishToMavenLocal)
{
apply plugin: 'maven-publish'
}
else
{
apply plugin: 'com.github.dcendents.android-maven'
}
archivesBaseName="AndroidMySQLConnector"
version '0.47'
group 'com.BoardiesITSolutions'
android {
compileSdkVersion 30
defaultConfig {
//applicationId "com.BoardiesITSolutions.AndroidMySQLConnector"
minSdkVersion 19
targetSdkVersion 30
versionCode 35
versionName "0.47"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
if (rootProject.ext.publishToMavenLocal) {
android.libraryVariants
publishing {
publications {
maven(MavenPublication)
{
artifact getArtifactFullPath()
}
}
}
libraryVariants.all { variant ->
variant.outputs.all { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.aar')) {
def fileName = "${archivesBaseName}-${version}.aar"
//def fileName = "${archivesBaseName}-debug.aar"
//output.outputFile = new File(outputFile.parent, fileName)
outputFileName = fileName
}
}
}
}
repositories {
if (rootProject.ext.publishToMavenLocal)
{
mavenLocal()
}
jcenter()
maven {
url "https://maven.google.com"
}
}
}
def getArtifactFullPath() {
return ".//build/outputs/aar/${archivesBaseName}-${project.version}.aar"
//return ".//build/outputs/aar/${archivesBaseName}-debug.aar"
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation("com.google.guava:guava:28.2-android")
}