import org.gradle.api.tasks.testing.logging.TestExceptionFormat import org.jetbrains.kotlin.gradle.dsl.JvmTarget import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") id("java-gradle-plugin") } repositories { google() mavenCentral() } dependencies { implementation(project(":expo-autolinking-plugin-shared")) implementation(gradleApi()) compileOnly("com.android.tools.build:gradle:9.2.1") // Only used to ask the Kotlin Gradle plugin loaded by the app for its version - the app provides it at runtime. compileOnly(kotlin("gradle-plugin")) testImplementation("junit:junit:4.13.2") testImplementation("com.google.truth:truth:1.1.2") } java { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 } tasks.withType { compilerOptions { jvmTarget.set(JvmTarget.JVM_11) } } group = "expo.modules" gradlePlugin { plugins { create("expoAutolinkingPlugin") { id = "expo-autolinking" implementationClass = "expo.modules.plugin.ExpoAutolinkingPlugin" } create("expoRootProjectPlugin") { id = "expo-root-project" implementationClass = "expo.modules.plugin.ExpoRootProjectPlugin" } } } tasks.withType().configureEach { testLogging { exceptionFormat = TestExceptionFormat.FULL showExceptions = true showCauses = true showStackTraces = true } }