-
Notifications
You must be signed in to change notification settings - Fork 71
/
build.gradle
66 lines (58 loc) · 1.37 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
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.2.2'
}
}
repositories {
mavenCentral()
google()
}
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
android {
compileSdk 34
defaultConfig {
minSdkVersion 15
consumerProguardFiles 'proguard-rules.pro'
}
namespace "com.thegrizzlylabs.sardineandroid"
def javaVersion = JavaVersion.VERSION_17
compileOptions {
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
publishing {
singleVariant("release") {
withSourcesJar()
}
}
}
dependencies {
api 'com.squareup.okhttp3:okhttp:4.12.0'
implementation('org.simpleframework:simple-xml:2.7.1') {
exclude module: 'stax'
exclude module: 'stax-api'
exclude module: 'xpp3'
}
testImplementation 'junit:junit:4.13.2'
}
//fixme uncomment this for print deprecation info
//tasks.withType(JavaCompile) {
// options.compilerArgs =
// options.compilerArgs + ["-Xlint:deprecation", "-Xlint:unchecked"]
//}
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
afterEvaluate {
from components.release
}
}
}
}
}