Skip to content

Prevent leaking top-level #300

@stuebingerb

Description

@stuebingerb

aPureBase/KGraphQL#17

Prevent that top-level declarations (like fun Collection<*>.toJsonElement()) leak unintentionally outside the library.

Maybe use https://github.com/Kotlin/KEEP/blob/master/proposals/explicit-api-mode.md (maybe start with explicitApiWarning()) in combination with #210

 kotlin {
+    explicitApi()
     jvmToolchain(17)
     compilerOptions {
         apiVersion.set(KotlinVersion.KOTLIN_2_1)
         languageVersion.set(KotlinVersion.KOTLIN_2_1)
     }
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions