1616
1717plugins {
1818 id ' com.android.library'
19- id ' com.dicedmelon .gradle.jacoco-android'
19+ id ' com.mxalbert .gradle.jacoco-android'
2020 id ' maven-publish'
2121 id ' signing'
2222}
@@ -58,9 +58,15 @@ task generateAttrsMarkdown(type: AttrMarkdown) {
5858}
5959
6060android {
61- compileSdkVersion theCompileSdkVersion
61+
62+ compileOptions {
63+ sourceCompatibility JavaVersion . VERSION_17
64+ targetCompatibility JavaVersion . VERSION_17
65+ }
66+
6267
6368 defaultConfig {
69+ compileSdk theCompileSdkVersion
6470 minSdkVersion theMinSdkVersion
6571 targetSdkVersion theTargetSdkVersion
6672 testApplicationId " com.androidplot.test"
@@ -90,9 +96,9 @@ def gitUrl = 'https://github.com/halfhp/androidplot.git'
9096dependencies {
9197
9298 implementation ' com.halfhp.fig:figlib:1.0.11'
93- implementation ' androidx.annotation:annotation:1.4.0 '
99+ implementation ' androidx.annotation:annotation:1.8.2 '
94100
95- testImplementation " org.mockito:mockito-core:4.0 .0"
101+ testImplementation " org.mockito:mockito-core:5.7 .0"
96102 testImplementation group : ' junit' , name : ' junit' , version : ' 4.13.2'
97103 testImplementation " org.robolectric:robolectric:4.7.3"
98104}
@@ -110,12 +116,12 @@ task javadoc(type: Javadoc) {
110116}
111117
112118task javadocJar (type : Jar , dependsOn : javadoc) {
113- classifier = ' javadoc'
119+ archiveClassifier . set( ' javadoc' )
114120 from javadoc. destinationDir
115121}
116122
117123task sourcesJar (type : Jar ) {
118- classifier = ' sources'
124+ archiveClassifier . set( ' sources' )
119125 from android. sourceSets. main. java. srcDirs
120126}
121127
@@ -137,9 +143,11 @@ afterEvaluate {
137143 }
138144
139145 publications {
140- release(MavenPublication ) {
141146
142- from components. release
147+ publications. withType(MavenPublication ) {
148+ // release(MavenPublication) {
149+ //
150+ // from components.release
143151
144152 // You can then customize attributes of the publication as shown below.
145153 groupId = ' com.androidplot'
@@ -176,13 +184,11 @@ afterEvaluate {
176184 }
177185}
178186
179- afterEvaluate {
180- signing {
181- def signingKey = System . getenv(" SIGNING_KEY" )
182- def signingPassword = System . getenv(" SIGNING_PASSWORD" )
183- useInMemoryPgpKeys(signingKey, signingPassword)
184- sign publishing. publications. release
185- }
187+ signing {
188+ def signingKey = System . getenv(" SIGNING_KEY" )
189+ def signingPassword = System . getenv(" SIGNING_PASSWORD" )
190+ useInMemoryPgpKeys(signingKey, signingPassword)
191+ sign publishing. publications
186192}
187193
188194artifacts {
0 commit comments