-
Notifications
You must be signed in to change notification settings - Fork 67
Apply kotlin-dsl plugin
#125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- bump Gradle Plugin Publish Plugin version - build script updates & improvements - use Java Toolchains to set Java version - use jvm-test-fixtures plugin for functionalTest sources
- create convention plugins for common and java-specific config - add Gradle version catalog - simplify some build config
- signatures-generator contains the JVM code, and is built using the standard KGP - gradle-plugin contains only the Gradle Plugin code, and is built using Gradle's embedded-Kotlin - Configuration between the two projects is shared using convention-plugins - refactored Maven publication build config
# Conflicts: # modules/gradle-plugin/src/functionalTest/kotlin/test/MixedMarkersTest.kt # modules/gradle-plugin/src/functionalTest/kotlin/test/PublicMarkersTest.kt # modules/signatures-generator/src/functionalTest/resources/examples/classes/ClassInPublicPackage.kt # modules/signatures-generator/src/functionalTest/resources/examples/classes/ClassWithPublicMarkers.dump # modules/signatures-generator/src/functionalTest/resources/examples/classes/ClassWithPublicMarkers.kt # modules/signatures-generator/src/functionalTest/resources/examples/classes/MixedAnnotations.dump # modules/signatures-generator/src/functionalTest/resources/examples/classes/MixedAnnotations.kt # modules/signatures-generator/src/functionalTest/resources/examples/gradle/configuration/publicMarkers/markers.gradle.kts # modules/signatures-generator/src/functionalTest/resources/examples/gradle/configuration/publicMarkers/mixedMarkers.gradle.kts
…ate tasks as cacheable
d48c01a to
4dde5b8
Compare
# Conflicts: # gradle.properties
# Conflicts: # gradle.properties
# Conflicts: # build.gradle.kts
# Conflicts: # gradle.properties
faffe33 to
89c81c6
Compare
b5e0510 to
3bec20a
Compare
| .retainExplicitlyIncludedIfDeclared(publicPackages, publicClasses, publicMarkers) | ||
| .filterOutNonPublic(ignoredPackages, ignoredClasses) | ||
| .filterOutAnnotated(nonPublicMarkers.map(::replaceDots).toSet()) | ||
| .filterOutAnnotated(nonPublicMarkers.map { it.replace(".", "/") }.toSet()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot access 'replaceDots': it is internal in 'kotlinx.validation.api'
replaceDots() is now in a separate subproject. Perhaps replaceDots() needs a @RequiresOptIn annotation?
As a quick fix I copied the actual implementation.
|
I'm marking this as a draft - I'll come back to it once the required branches have been merged. |
14bd77c to
3d46759
Compare
Apply the
kotlin-dslplugin in the BCV Gradle project.This helps align the published plugin with the embedded Kotlin version. It also aids development, as it applies the SAM-with-receiver plugin, so the plugin code more closely resembles the syntax in
*.gradle.ktsfiles.There should be no functional changes as a result of this PR.
Depends on