Youssef Shoaib [MOD]
01/15/2021, 12:34 AMUnresolvedGivenCallSite
errors all over my code. I tried everything including creating a new test project and deleting my gradle caches. Here's a very minimal reproducing sample:
import arrow.Given
import arrow.given
interface Test
class TestImpl: Test
@Given val test: Test = TestImpl()
fun main() {
println(given<Test>())
}
build.gradle.kts:
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.4.10"
}
buildscript {
repositories {
maven("<https://oss.jfrog.org/artifactory/oss-snapshot-local/>")
}
dependencies {
classpath("io.arrow-kt:gradle-plugin:1.4.10-SNAPSHOT")
}
}
apply(plugin = "io.arrow-kt.arrow")
repositories {
mavenCentral()
maven(url = "<https://oss.jfrog.org/artifactory/oss-snapshot-local/>")
}
dependencies {
implementation("io.arrow-kt:arrow-meta-prelude:1.4.10-SNAPSHOT")
testImplementation(kotlin("test-junit"))
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
I followed the tutorial on the Arrow Meta website but nothing is working still