Skip to content

Commit

Permalink
use java 11 (#7)
Browse files Browse the repository at this point in the history
min sdk require: Java 11
  • Loading branch information
cpacm authored Jun 25, 2023
1 parent b4a708b commit ee85fac
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 36 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up JDK 1.8
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 8
java-version: 11

# Gradle 缓存配置
- name: Cache Gradle packages
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/publish_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ jobs:
# main 分支的发布请走正式流程,手动仅能发布其他分支的beta版本,用于测试
if: ${{ github.ref != 'refs/heads/master' }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'temurin'
java-version: 11


# Gradle 缓存配置
- name: Cache Gradle packages
Expand Down
8 changes: 3 additions & 5 deletions app-saas/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ plugins {
}

android {
compileSdkVersion rootProject.ext.android.compileSdkVersion

defaultConfig {
applicationId "com.growingio.saas"
minSdkVersion 21
Expand All @@ -27,11 +25,11 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '11'
}
}

Expand Down
8 changes: 3 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ plugins {
}

android {
compileSdkVersion rootProject.ext.android.compileSdkVersion

defaultConfig {
applicationId rootProject.ext.android.applicationId + ".v3"
minSdkVersion 21
Expand All @@ -26,11 +24,11 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '11'
}
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildscript {
apply from: "config.gradle"
ext {
kotlin_version = "1.7.10"
agp_version = System.getenv('AGP_VERSION') ?: "7.3.0"
agp_version = System.getenv('AGP_VERSION') ?: "7.4.2"
}
}

Expand Down
4 changes: 2 additions & 2 deletions config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ ext {
compileSdkVersion : 32,
applicationId : "com.growingio.giokit",
minSdkVersion : 17,
targetSdkVersion : 30,
targetSdkVersion : 32,
//app版本号
versionCode : 14,
versionName : "1.4.0",

kotlin_version : "1.7.10",
kotlinx_coroutines_version: "1.6.2",
gradle_plugin_version : "4.2.2",
giokit_plugin_version : "7.2.2",
giokit_plugin_version : "7.4.2",
okhttp_v3 : "3.14.7",
okhttp_v4 : "4.7.0",

Expand Down
8 changes: 3 additions & 5 deletions giokit-no-op/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ plugins {
id 'kotlin-kapt'
}
android {
compileSdkVersion rootProject.ext.android.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.ext.android.minSdkVersion
targetSdkVersion rootProject.ext.android.targetSdkVersion
Expand All @@ -23,11 +21,11 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '11'
}
}

Expand Down
6 changes: 3 additions & 3 deletions giokit-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = "1.6.21"
agp_version = System.getenv('AGP_VERSION') ?: "7.2.1"
kotlin_version = "1.7.10"
agp_version = System.getenv('AGP_VERSION') ?: "7.4.2"
}
}

Expand All @@ -28,7 +28,7 @@ gradlePlugin{
}

dependencies{
implementation "com.growingio.android:growingio-plugin-library:3.4.6"
implementation "com.growingio.android:growingio-plugin-library:3.5.0"
implementation gradleApi()
compileOnly "com.android.tools.build:gradle:$agp_version"
compileOnly "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
Expand Down
7 changes: 3 additions & 4 deletions giokit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ plugins {
}

android {
compileSdkVersion rootProject.ext.android.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.ext.android.minSdkVersion
Expand All @@ -24,11 +23,11 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '11'
}
}

Expand Down
1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ pluginManagement {
dependencyResolutionManagement {
//repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
jcenter()
mavenLocal()
maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots/" }
google()
Expand Down
6 changes: 2 additions & 4 deletions uikit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ plugins {
}

android {
compileSdkVersion rootProject.ext.android.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.ext.android.minSdkVersion
targetSdkVersion rootProject.ext.android.targetSdkVersion
Expand All @@ -22,8 +20,8 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}

Expand Down

0 comments on commit ee85fac

Please sign in to comment.