Skip to content
Merged
6 changes: 3 additions & 3 deletions gradle/libraries.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ javaPoet = "1.13.0"
jetbrains-annotations = "24.0.1"
junit = "4.13.2"
kotlin-plugin-min = "1.9.0"
kotlin-plugin = "2.1.10"
kotlin-plugin-max = "2.1.10"
kotlin-plugin = "2.1.20"
kotlin-plugin-max = "2.1.20"
kotlinx-coroutines = "1.9.0"
kotlinx-datetime = "0.5.0"
kotlinx-serialization-runtime = "1.6.2"
ksp = "2.1.10-1.0.29"
ksp = "2.1.20-1.0.31"
ktor = "3.0.0"
moshix = "0.14.1"
node-fetch = "2.7.0"
Expand Down
4 changes: 4 additions & 0 deletions intellij-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import org.jetbrains.intellij.platform.gradle.TestFrameworkType
import org.jetbrains.intellij.platform.gradle.tasks.VerifyPluginTask.FailureLevel.INTERNAL_API_USAGES
import org.jetbrains.intellij.platform.gradle.tasks.VerifyPluginTask.FailureLevel.INVALID_PLUGIN
import org.jetbrains.intellij.platform.gradle.tasks.VerifyPluginTask.FailureLevel.PLUGIN_STRUCTURE_WARNINGS
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
import java.net.URI
import java.text.SimpleDateFormat
import java.util.Date
Expand Down Expand Up @@ -55,6 +56,9 @@ kotlin {
}

val apolloDependencies = configurations.create("apolloDependencies").apply {
attributes {
attribute(KotlinPlatformType.attribute, KotlinPlatformType.jvm)
}
listOf(":apollo-annotations", ":apollo-api", ":apollo-runtime").forEach {
dependencies.add(project.dependencies.project(it, "jvmApiElements"))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ private fun GQLSelection.score(): String {
is GQLField -> "a$name"
is GQLFragmentSpread -> "b$name"
is GQLInlineFragment -> "c" // apollo-tooling doesn't sort inline fragments
else -> error("Cannot sort Selection '$this'")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ internal fun JsonElement.toAny(): Any? = when (this) {
else -> booleanOrNull ?: intOrNull ?: longOrNull ?: doubleOrNull ?: error("cannot decode $this")
}
}
else -> error("cannot convert $this to Any")
}

fun Any?.toJsonElement(): JsonElement = when (this) {
Expand All @@ -32,4 +31,4 @@ fun Any?.toJsonElement(): JsonElement = when (this) {
is String -> JsonPrimitive(this)
null -> JsonNull
else -> error("cannot convert $this to JsonElement")
}
}
Loading