Skip to content

Commit e71b1fa

Browse files
authored
Merge pull request #427 from magnusja/gradle-8-9
update shittons of stufff
2 parents 500376e + fd3d0bb commit e71b1fa

File tree

13 files changed

+70
-35
lines changed

13 files changed

+70
-35
lines changed

.github/workflows/android.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v1
12-
- name: set up JDK 1.11
13-
uses: actions/setup-java@v1
12+
- name: set up JDK 21
13+
uses: actions/setup-java@v4
1414
with:
15-
java-version: 1.11
15+
distribution: 'oracle'
16+
java-version: '21'
1617
- name: install libusb
1718
run: wget https://github.com/libusb/libusb/archive/v1.0.26.zip && unzip v1.0.26.zip
1819
- name: write local properties

androidtests/build.gradle

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@ apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
33

44
android {
5-
compileSdkVersion 32
6-
buildToolsVersion "30.0.3"
5+
kotlinOptions {
6+
jvmTarget = '21'
7+
}
8+
compileOptions {
9+
sourceCompatibility JavaVersion.VERSION_21
10+
targetCompatibility JavaVersion.VERSION_21
11+
}
712

813
defaultConfig {
914
testInstrumentationRunnerArguments
1015
minSdkVersion 15
11-
targetSdkVersion 32
16+
targetSdkVersion 33
17+
compileSdk 33
1218

1319
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1420
testInstrumentationRunnerArguments.package = 'me.jahnen.libaums.androidtests'

app/build.gradle

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
apply plugin: 'com.android.application'
22
apply plugin: 'kotlin-android'
33

4-
android {
5-
compileSdkVersion 33
6-
buildToolsVersion '30.0.3'
74

5+
android {
6+
kotlinOptions {
7+
jvmTarget = '21'
8+
}
9+
compileOptions {
10+
sourceCompatibility JavaVersion.VERSION_21
11+
targetCompatibility JavaVersion.VERSION_21
12+
}
813
defaultConfig {
914
applicationId "com.github.mjdev.usbfileman"
1015
minSdkVersion 16
1116
targetSdkVersion 33
17+
compileSdk 33
1218
versionCode 1
1319
versionName "1.0"
1420
multiDexEnabled true

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
ext.kotlin_version = '1.8.0'
4+
ext.kotlin_version = '2.0.20'
55
repositories {
66
mavenCentral()
77
maven { url "https://plugins.gradle.org/m2/" }
88
google()
99
}
1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:7.4.2'
11+
classpath 'com.android.tools.build:gradle:8.7.2'
1212

1313
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1414

1515
classpath 'org.codehaus.groovy:groovy-all:2.4.15'
1616
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1717

1818
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.8.10"
19-
classpath "org.jacoco:org.jacoco.core:0.8.8"
20-
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.5'
19+
classpath "org.jacoco:org.jacoco.core:0.8.11"
20+
classpath 'com.mxalbert.gradle.jacoco-android:com.mxalbert.gradle.jacoco-android.gradle.plugin:0.2.1'
2121
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
2222
// NOTE: Do not place your application dependencies here; they belong
2323
// in the individual module build.gradle files

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
# This option should only be used with decoupled projects. More details, visit
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1818
# org.gradle.parallel=true
19+
android.defaults.buildfeatures.buildconfig=true
1920
android.enableJetifier=true
21+
android.nonFinalResIds=false
22+
android.nonTransitiveRClass=false
2023
android.useAndroidX=true
2124

2225
org.gradle.jvmargs=-Xmx4096M
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Tue Nov 22 10:59:55 CET 2022
1+
#Tue Nov 05 15:02:06 CET 2024
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
43
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
65
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

httpserver/build.gradle

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,18 @@ configurations {
1717
}
1818

1919
android {
20-
compileSdkVersion 32
21-
buildToolsVersion '30.0.3'
20+
kotlinOptions {
21+
jvmTarget = '21'
22+
}
23+
compileOptions {
24+
sourceCompatibility JavaVersion.VERSION_21
25+
targetCompatibility JavaVersion.VERSION_21
26+
}
2227

2328
defaultConfig {
2429
minSdkVersion 16
25-
targetSdkVersion 32
30+
targetSdkVersion 33
31+
compileSdk 33
2632
}
2733
buildTypes {
2834
release {
@@ -48,7 +54,7 @@ dependencies {
4854
api 'androidx.core:core:1.2.0-rc01'
4955
api project(':libaums')
5056
api "androidx.core:core-ktx:1.1.0"
51-
api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
57+
api "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
5258
}
5359

5460
repositories {

javafs/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 32
5-
buildToolsVersion '30.0.3'
64

75
defaultConfig {
86
minSdkVersion 15
9-
targetSdkVersion 32
7+
targetSdkVersion 33
8+
compileSdk 33
109

1110
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1211

@@ -21,6 +20,7 @@ android {
2120
abortOnError false
2221
}
2322
namespace 'me.jahnen.libaums.javafs'
23+
compileSdk 34
2424
}
2525

2626
dependencies {

libaums/build.gradle

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
33
apply plugin: 'org.jetbrains.dokka'
4-
apply plugin: 'com.dicedmelon.gradle.jacoco-android'
4+
apply plugin: 'com.mxalbert.gradle.jacoco-android'
55

66
jacoco {
7-
toolVersion = "0.8.7"
7+
toolVersion = "0.8.11"
88
}
99

1010
ext {
@@ -20,12 +20,18 @@ configurations {
2020
}
2121

2222
android {
23-
compileSdkVersion 33
24-
buildToolsVersion '30.0.3'
23+
kotlinOptions {
24+
jvmTarget = '21'
25+
}
26+
compileOptions {
27+
sourceCompatibility JavaVersion.VERSION_21
28+
targetCompatibility JavaVersion.VERSION_21
29+
}
2530

2631
defaultConfig {
2732
minSdkVersion 15
2833
targetSdkVersion 33
34+
compileSdk 33
2935

3036
externalNativeBuild {
3137
cmake {
@@ -38,10 +44,11 @@ android {
3844
minifyEnabled false
3945
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
4046
}
41-
4247
debug {
43-
testCoverageEnabled true
48+
enableUnitTestCoverage true
49+
enableAndroidTestCoverage true
4450
}
51+
4552
}
4653

4754

libusbcommunication/build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,18 @@ ext {
1515
apply from: "${rootProject.projectDir}/publish-module.gradle"
1616

1717
android {
18-
compileSdkVersion 33
18+
kotlinOptions {
19+
jvmTarget = '21'
20+
}
21+
compileOptions {
22+
sourceCompatibility JavaVersion.VERSION_21
23+
targetCompatibility JavaVersion.VERSION_21
24+
}
1925

2026
defaultConfig {
2127
minSdkVersion 15
2228
targetSdkVersion 33
29+
compileSdk 33
2330

2431
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2532
consumerProguardFiles 'consumer-rules.pro'

0 commit comments

Comments
 (0)