Skip to content

Commit

Permalink
Kotlin 1.8.22 support
Browse files Browse the repository at this point in the history
  • Loading branch information
jeppeman committed Jul 3, 2023
1 parent 03dd9f0 commit b1bd94e
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
java-version: 17
- name: Run tests
run: ./gradlew -p mockposable test

Expand Down
30 changes: 30 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,36 @@ buildscript {
}
}

allprojects {
repositories {
mavenCentral()
google()
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "17"
}
}

tasks.withType(Test::class.java).configureEach {
testLogging {
exceptionFormat = TestExceptionFormat.FULL
showCauses = true
showExceptions = true
showStackTraces = true
showStandardStreams = true
events = setOf(
TestLogEvent.PASSED,
TestLogEvent.SKIPPED,
TestLogEvent.FAILED,
TestLogEvent.STANDARD_OUT,
TestLogEvent.STANDARD_ERROR
)
}
}
}

@Suppress("DSL_SCOPE_VIOLATION")
plugins {
kotlin("jvm") version libs.versions.kotlin.get() apply false
Expand Down
8 changes: 4 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[versions]
kotlin = '1.8.21'
kotlin = '1.8.22'
compose-ui = '1.4.3'
compose-compiler = '1.4.7'
google-ksp = '1.8.21-1.0.11'
compose-compiler = '1.4.8'
google-ksp = '1.8.22-1.0.11'
activity = '1.6.1'
espresso = '3.4.0'
hamcrest = '2.2'
Expand All @@ -23,7 +23,7 @@ androidx-test-espresso-core = { module = 'androidx.test.espresso:espresso-core',
androidx-fragment-testing = { module = 'androidx.fragment:fragment-testing', version = '1.5.4' }

compose-compiler = { module = 'androidx.compose.compiler:compiler', version.ref = 'compose-compiler' }
compose-runtime = { module = 'org.jetbrains.compose.runtime:runtime', version = '1.4.0' }
compose-runtime = { module = 'org.jetbrains.compose.runtime:runtime', version = '1.4.1' }
compose-ui = { module = 'androidx.compose.ui:ui', version.ref = 'compose-ui' }
compose-material = { module = 'androidx.compose.material:material', version = '1.4.0' }
compose-foundation = { module = 'androidx.compose.foundation:foundation', version = '1.4.0' }
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ android {
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}

Expand Down
2 changes: 1 addition & 1 deletion mockposable/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ allprojects {

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "11"
jvmTarget = "17"
}
}

Expand Down
2 changes: 1 addition & 1 deletion mockposable/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=0.5-SNAPSHOT
VERSION_NAME=0.6-SNAPSHOT
GROUP=com.jeppeman.mockposable

POM_DESCRIPTION=A tool that enables stubbing and verification of @Composable-annotated functions
Expand Down
4 changes: 2 additions & 2 deletions mockposable/mockposable-compiler/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ plugins {
}

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ android {
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}

Expand Down

0 comments on commit b1bd94e

Please sign in to comment.