Skip to content

Commit

Permalink
JDK17+ is now required to build the project
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin committed Jul 10, 2023
1 parent fed4619 commit bea2c80
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- uses: actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b #v3.9.0
with:
distribution: 'temurin'
java-version: 11 # Keep this one on an older JDK version to make sure we can still build with Java11
java-version: 17
- uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef #v2.3.3
with:
gradle-home-cache-cleanup: true
Expand Down
5 changes: 2 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ invite [here](https://slack.kotl.in/))

You will need:

* Java11+. The build uses [Gradle toolchains](https://docs.gradle.org/current/userguide/toolchains.html) to ensure
reproducibility of the generated bytecode, but you still need a JVM to run Gradle itself. We try to stick with the
latest versions of Java (19 currently) but you should be able to use versions down to 11.
* Java17+. The build uses [Gradle toolchains](https://docs.gradle.org/current/userguide/toolchains.html) to ensure
reproducibility of the generated bytecode, but you still need a JVM to run Gradle itself.
* A recent version of IntelliJ IDEA community. Android Studio might work too, but we find out the experience for
multiplatform code to be better with IntelliJ IDEA.
* MacOS and the Xcode developer tools for iOS/MacOS targets.
Expand Down
1 change: 1 addition & 0 deletions tests/pagination/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ kotlin {

findByName("commonTest")?.apply {
dependencies {
implementation(golatac.lib("atomicfu"))
implementation(golatac.lib("apollo.testingsupport"))
implementation(golatac.lib("apollo.normalizedcache.incubating"))
implementation(golatac.lib("apollo.normalizedcache.sqlite.incubating"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import com.apollographql.apollo3.cache.normalized.api.TypePolicyCacheKeyGenerato
import com.apollographql.apollo3.cache.normalized.api.internal.OptimisticCache
import com.apollographql.apollo3.cache.normalized.sql.SqlNormalizedCacheFactory
import com.apollographql.apollo3.testing.internal.runTest
import app.cash.sqldelight.internal.AtomicBoolean
import kotlinx.atomicfu.atomic
import pagination.type.buildUser
import pagination.type.buildUserPage
import kotlin.math.max
Expand Down Expand Up @@ -233,12 +233,12 @@ class OffsetBasedWithPagePaginationTest {
}

internal suspend fun assertChainedCachesAreEqual(apolloStore: ApolloStore) {
val hasNextCache = AtomicBoolean(false)
val hasNextCache = atomic(false)
apolloStore.accessCache { cache ->
// First cache is always OptimisticCache
hasNextCache.set(cache.nextCache!!.nextCache != null)
hasNextCache.value = cache.nextCache!!.nextCache != null
}
if (!hasNextCache.get()) return
if (!hasNextCache.value) return
val dump = apolloStore.dump().filterKeys { it != OptimisticCache::class }
val caches = dump.values.toList()
val cache1: Map<String, Record> = caches[0]
Expand Down

0 comments on commit bea2c80

Please sign in to comment.