diff --git a/.github/workflows/Android-CI-release.yml b/.github/workflows/Android-CI-release.yml index 4919316..bc74fa6 100644 --- a/.github/workflows/Android-CI-release.yml +++ b/.github/workflows/Android-CI-release.yml @@ -18,7 +18,7 @@ jobs: uses: actions/setup-java@v3 with: distribution: 'adopt' - java-version: 11 + java-version: 17 - name: Install Android SDK uses: malinskiy/action-android/install-sdk@release/0.1.4 diff --git a/.github/workflows/Android-CI.yml b/.github/workflows/Android-CI.yml index ab670f6..d0e6d55 100644 --- a/.github/workflows/Android-CI.yml +++ b/.github/workflows/Android-CI.yml @@ -14,7 +14,7 @@ jobs: runs-on: macOS-latest strategy: matrix: - java_version: [ 11 ] + java_version: [ 17 ] steps: - name: Checkout uses: actions/checkout@v4 @@ -35,7 +35,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java_version: [ 11 ] + java_version: [ 17 ] steps: - name: Checkout uses: actions/checkout@v4 diff --git a/jitpack.yml b/jitpack.yml index 35b65d4..5aa39b3 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -1,5 +1,5 @@ jdk: - - openjdk11 + - openjdk17 install: - ./gradlew :library:build :library:publishToMavenLocal -x :library:test - find . -name "*.aar" diff --git a/library/build.gradle b/library/build.gradle index 4d2007a..10058b1 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -16,6 +16,10 @@ android { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } + compileOptions { + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 + } namespace 'com.dd.circular.progress.button' } diff --git a/sample/build.gradle b/sample/build.gradle index 1d8c34d..da98db5 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -15,8 +15,11 @@ android { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } + compileOptions { + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 + } namespace 'com.dd.sample' - } dependencies {