Skip to content

Commit e6523a2

Browse files
committed
Fix build error caused by outdated jacoco gradle plugin. Upgrade Java to 17
1 parent 6cb6348 commit e6523a2

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.github/workflows/gradle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest, macos-latest, windows-latest]
14-
java: [11, 17]
14+
java: [17]
1515
runs-on: ${{ matrix.os }}
1616
steps:
1717
- uses: actions/checkout@v3

app/build.gradle

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apply plugin: 'com.android.application'
2-
apply plugin: 'com.dicedmelon.gradle.jacoco-android'
2+
apply plugin: 'com.mxalbert.gradle.jacoco-android'
33

44
jacoco {
5-
toolVersion = "0.8.4"
5+
toolVersion = "0.8.10"
66
}
77

88
android {
@@ -20,8 +20,8 @@ android {
2020
}
2121

2222
compileOptions {
23-
sourceCompatibility JavaVersion.VERSION_11
24-
targetCompatibility JavaVersion.VERSION_11
23+
sourceCompatibility JavaVersion.VERSION_17
24+
targetCompatibility JavaVersion.VERSION_17
2525
}
2626

2727
buildTypes {
@@ -47,6 +47,10 @@ android {
4747
buildConfigField("String", "ANALYTICS_APPLICATION_ID", '"ai.elimu.analytics"')
4848
}
4949
}
50+
51+
buildFeatures {
52+
buildConfig = true
53+
}
5054
}
5155

5256
dependencies {

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ buildscript {
99
}
1010
}
1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:7.4.2'
13-
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.5'
12+
classpath 'com.android.tools.build:gradle:8.0.2'
13+
classpath 'com.mxalbert.gradle:jacoco-android:0.2.1'
1414

1515
// NOTE: Do not place your application dependencies here; they belong
1616
// in the individual module build.gradle files
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Fri Feb 25 16:17:50 PST 2022
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)