File tree Expand file tree Collapse file tree 5 files changed +54
-8
lines changed Expand file tree Collapse file tree 5 files changed +54
-8
lines changed Original file line number Diff line number Diff line change 9
9
10
10
steps :
11
11
- uses : actions/checkout@v1
12
+
13
+ - name : set up JDK 17
14
+ uses : actions/setup-java@v3
15
+ with :
16
+ java-version : ' 17'
17
+ distribution : ' temurin'
18
+ cache : gradle
19
+
12
20
- name : Run tests
13
21
run : ./gradlew lint test
Original file line number Diff line number Diff line change 1
1
buildscript {
2
2
repositories {
3
- jcenter ()
3
+ mavenCentral ()
4
4
google()
5
5
}
6
6
dependencies {
7
- classpath ' com.android.tools.build:gradle:4.1.3 '
7
+ classpath ' com.android.tools.build:gradle:8.2.2 '
8
8
}
9
9
}
10
10
11
11
repositories {
12
- jcenter ()
12
+ mavenCentral ()
13
13
google()
14
14
}
15
15
16
16
apply plugin : ' com.android.library'
17
+ apply plugin : ' maven-publish'
17
18
18
19
android {
19
- compileSdkVersion 30
20
+ compileSdk 34
20
21
21
22
defaultConfig {
22
23
minSdkVersion 15
23
24
consumerProguardFiles ' proguard-rules.pro'
24
25
}
26
+ namespace " com.thegrizzlylabs.sardineandroid"
27
+
28
+ def javaVersion = JavaVersion . VERSION_17
29
+ compileOptions {
30
+ sourceCompatibility javaVersion
31
+ targetCompatibility javaVersion
32
+ }
33
+ publishing {
34
+ singleVariant(" release" ) {
35
+ withSourcesJar()
36
+ }
37
+ }
25
38
}
26
39
27
40
dependencies {
28
- api ' com.squareup.okhttp3:okhttp:4.9 .0'
41
+ api ' com.squareup.okhttp3:okhttp:4.12 .0'
29
42
30
- implementation (' org.simpleframework:simple-xml:2.7.1' ) {
43
+ implementation(' org.simpleframework:simple-xml:2.7.1' ) {
31
44
exclude module : ' stax'
32
45
exclude module : ' stax-api'
33
46
exclude module : ' xpp3'
34
47
}
35
48
36
- testImplementation ' junit:junit:4.13'
49
+ testImplementation ' junit:junit:4.13.2 '
37
50
}
51
+ // fixme uncomment this for print deprecation info
52
+ // tasks.withType(JavaCompile) {
53
+ // options.compilerArgs =
54
+ // options.compilerArgs + ["-Xlint:deprecation", "-Xlint:unchecked"]
55
+ // }
56
+ afterEvaluate {
57
+ publishing {
58
+ publications {
59
+ release(MavenPublication ) {
60
+ afterEvaluate {
61
+ from components. release
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-6.5 -bin.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.4 -bin.zip
Original file line number Diff line number Diff line change
1
+ jdk :
2
+ - openjdk17
Original file line number Diff line number Diff line change 12
12
13
13
## OkHTTP
14
14
-dontwarn okhttp3.internal.platform.ConscryptPlatform
15
+
16
+ -dontwarn org.simpleframework.xml.Element
17
+ -dontwarn org.simpleframework.xml.ElementList
18
+ -dontwarn org.simpleframework.xml.ElementListUnion
19
+ -dontwarn org.simpleframework.xml.Namespace
20
+ -dontwarn org.simpleframework.xml.Root
21
+ -dontwarn org.simpleframework.xml.convert.Converter
You can’t perform that action at this time.
0 commit comments