Skip to content

Commit

Permalink
Add ExperimentalPathApi annotations in tests
Browse files Browse the repository at this point in the history
This commit adds `@OptIn(ExperimentalPathApi::class)` annotations in `PackageSearchProjectServiceTest` to indicate use of experimental Kotlin API. Also commented out unnecessary code in `build.gradle.kts`.
  • Loading branch information
fscarponi committed Nov 6, 2024
1 parent 568e3cf commit e9159da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ tasks {
changeNotes = getenv("CHANGE_NOTES")
?.let { Parser.builder().build().parse(it) }
?.let { HtmlRenderer.builder().build().render(it) }
?.prefixIfNot("<![CDATA[")
// ?.prefixIfNot("<![CDATA[")
// ?.suffixIfNot("]]>")

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.jetbrains.packagesearch.plugin.tests.extractInto
import com.jetbrains.packagesearch.plugin.tests.getResourceAbsolutePath
import com.jetbrains.packagesearch.plugin.tests.verifyEnvironmentAndFiles
import java.nio.file.Path
import kotlin.io.path.ExperimentalPathApi
import kotlin.io.path.PathWalkOption
import kotlin.io.path.deleteRecursively
import kotlin.io.path.isDirectory
Expand All @@ -29,6 +30,7 @@ abstract class PackageSearchProjectServiceTest {

abstract val resourcePath: String

@OptIn(ExperimentalPathApi::class)
private fun getProjects() =
getResourceAbsolutePath(resourcePath)
?.walk(PathWalkOption.BREADTH_FIRST)
Expand All @@ -45,6 +47,7 @@ abstract class PackageSearchProjectServiceTest {
/**
* Cleanup data output dir from project's folders before artifact upload
*/
@OptIn(ExperimentalPathApi::class)
@AfterEach
fun `cleanup data outpdir from project's folders before artifact upload`() {
PKGS_TEST_DATA_OUTPUT_DIR.listDirectoryEntries()
Expand Down

0 comments on commit e9159da

Please sign in to comment.