Files
compose-multiplatform/gradle-plugins/preview-rpc/build.gradle.kts
Alexey Tsvetkov 382ad5b78f Test Gradle plugin on relevant PRs (#2509)
* Update Gradle used in tooling subprojects

* Update Kotlin in Compose Gradle plugin

* Decrease verbosity of Gradle plugin tests

* Disable mac sign test

* Add workflow to test Gradle plugin

* Fix custom jdk tests on Linux

* Make Compose Gradle plugin build compatible with Configuration cache

* Print tests summary

* Remove unused code

* Refactor tests configuration

* Turn off parallel execution

* Try adding windows runner

* Turn off fail fast

* Fix Windows test issues

#2368

* Adjust default proguard rules

The following rule is needed to fix tests on Windows:
```
-dontwarn org.graalvm.compiler.core.aarch64.AArch64NodeMatchRules_MatchStatementSet*
```

Other rules are just to make builds less noisy.
Kotlin's `*.internal` packages often contain
bytecode, which triggers ProGuard's notes.
However, these notes are not actionable for
most users, so we can ignore notes by default.

#2393
2022-11-30 14:37:05 +01:00

36 lines
910 B
Kotlin

plugins {
kotlin("jvm")
id("maven-publish")
}
mavenPublicationConfig {
displayName = "Compose Preview RPC"
description = "Compose Preview RPC"
artifactId = "preview-rpc"
}
dependencies {
implementation(kotlin("stdlib"))
}
configureAllTests()
val serializeClasspath by tasks.registering(SerializeClasspathTask::class) {
val runtimeClasspath = configurations.runtimeClasspath
val jar = tasks.jar
dependsOn(runtimeClasspath, jar)
classpathFileCollection.from(jar.flatMap { it.archiveFile })
classpathFileCollection.from(runtimeClasspath)
outputFile.set(project.layout.buildDirectory.file("rpc.classpath.txt"))
}
tasks.test.configure {
configureJavaForComposeTest()
dependsOn(serializeClasspath)
systemProperty(
"org.jetbrains.compose.tests.rpc.classpath.file",
serializeClasspath.get().outputFile.get().asFile.absolutePath
)
}