Skip to content

Commit

Permalink
Do not require Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
findjigar committed Sep 22, 2023
1 parent 1939098 commit 9cac667
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: "adopt"
java-version: "17"
java-version: "11"
- name: Install msys2
if: matrix.os == 'windows-latest'
uses: msys2/setup-msys2@v2
Expand Down Expand Up @@ -73,4 +73,4 @@ jobs:
shell: bash

env:
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: "adopt"
java-version: "17"
java-version: "11"
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Cache gradle
Expand Down Expand Up @@ -41,4 +41,4 @@ jobs:
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}

env:
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: "adopt"
java-version: "17"
java-version: "11"
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Cache gradle
Expand Down Expand Up @@ -56,4 +56,4 @@ jobs:
tag: ${{ steps.version-name.outputs.propVal }}

env:
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
8 changes: 4 additions & 4 deletions .github/workflows/websitedeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: "adopt"
java-version: "17"
java-version: "11"

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
Expand All @@ -26,12 +26,12 @@ jobs:
- name: Build Docusaurus
run: ./gradlew replaceValuesDocusaurus -PLATEST_GITHUB_VERSION=${{ steps.last_release.outputs.tag_name }} --no-daemon --stacktrace
env:
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"

- name: Build Dokka
run: ./gradlew dokkaHtmlMultiModule --no-daemon --stacktrace
env:
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"

- name: Copy Dokka
run: |
Expand All @@ -43,4 +43,4 @@ jobs:
git config --global user.name "Kevin Galligan"
cd website
npm install
GIT_USER=ciuser GIT_PASS=${{ secrets.GITHUB_TOKEN }} yarn deploy
GIT_USER=ciuser GIT_PASS=${{ secrets.GITHUB_TOKEN }} yarn deploy
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ org.gradle.jvmargs=-Xmx4g
SONATYPE_HOST=DEFAULT
RELEASE_SIGNING_ENABLED=true
GROUP=co.touchlab
VERSION_NAME=2.0.0
VERSION_NAME=2.0.1

POM_NAME=Kermit
POM_DESCRIPTION=Kermit The Log
Expand Down
10 changes: 6 additions & 4 deletions kermit-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ plugins {
}

kotlin {
@Suppress("OPT_IN_USAGE")
targetHierarchy.default()
androidTarget {
publishAllLibraryVariants()
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
jvm()
js {
Expand Down Expand Up @@ -147,8 +153,4 @@ android {
defaultConfig {
minSdk = libs.versions.minSdk.get().toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
1 change: 1 addition & 0 deletions kermit-simple/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ plugins {
}

kotlin {
@Suppress("OPT_IN_USAGE")
targetHierarchy.default()
js {
browser()
Expand Down
10 changes: 6 additions & 4 deletions kermit-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ plugins {
}

kotlin {
@Suppress("OPT_IN_USAGE")
targetHierarchy.default()
androidTarget {
publishAllLibraryVariants()
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
jvm()
js {
Expand Down Expand Up @@ -68,8 +74,4 @@ android {
defaultConfig {
minSdk = libs.versions.minSdk.get().toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
10 changes: 6 additions & 4 deletions kermit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ plugins {
}

kotlin {
@Suppress("OPT_IN_USAGE")
targetHierarchy.default()
androidTarget {
publishAllLibraryVariants()
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
jvm()
js {
Expand Down Expand Up @@ -116,8 +122,4 @@ android {
defaultConfig {
minSdk = libs.versions.minSdk.get().toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
5 changes: 2 additions & 3 deletions samples/sample-production/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ android {
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
kotlinOptions {
jvmTarget = "1.8"
}
buildFeatures {
viewBinding = true
Expand Down
13 changes: 8 additions & 5 deletions samples/sample-production/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,22 @@ android {
defaultConfig {
minSdk = libs.versions.minSdk.get().toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}

val KERMIT_VERSION: String by project

version = "0.0.1"

kotlin {
@Suppress("OPT_IN_USAGE")
targetHierarchy.default()
androidTarget()
androidTarget {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
ios()
iosSimulatorArm64()

Expand Down
5 changes: 2 additions & 3 deletions samples/sample/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ android {
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
kotlinOptions {
jvmTarget = "1.8"
}
buildFeatures {
viewBinding = true
Expand Down
13 changes: 8 additions & 5 deletions samples/sample/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,22 @@ android {
defaultConfig {
minSdk = libs.versions.minSdk.get().toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}

val KERMIT_VERSION: String by project

version = "0.0.1"

kotlin {
@Suppress("OPT_IN_USAGE")
targetHierarchy.default()
androidTarget()
androidTarget {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
ios()
iosSimulatorArm64()
js {
Expand Down

0 comments on commit 9cac667

Please sign in to comment.