Skip to content

Conversation

@aSemy
Copy link
Contributor

@aSemy aSemy commented Mar 1, 2023

Apply the kotlin-dsl plugin 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.kts files.

There should be no functional changes as a result of this PR.

Depends on

aSemy added 4 commits March 1, 2023 11:17
- 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
@aSemy aSemy changed the base branch from master to bcv-gradle-rework March 3, 2023 13:49
aSemy added 5 commits March 3, 2023 17:00
# 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
@aSemy aSemy force-pushed the feat/use_kotlin-dsl_plugin branch from d48c01a to 4dde5b8 Compare March 3, 2023 17:11
@aSemy aSemy marked this pull request as ready for review April 27, 2023 08:30
@aSemy aSemy force-pushed the feat/use_kotlin-dsl_plugin branch from faffe33 to 89c81c6 Compare April 27, 2023 08:32
@qwwdfsad qwwdfsad force-pushed the bcv-gradle-rework branch from b5e0510 to 3bec20a Compare May 1, 2023 15:50
.retainExplicitlyIncludedIfDeclared(publicPackages, publicClasses, publicMarkers)
.filterOutNonPublic(ignoredPackages, ignoredClasses)
.filterOutAnnotated(nonPublicMarkers.map(::replaceDots).toSet())
.filterOutAnnotated(nonPublicMarkers.map { it.replace(".", "/") }.toSet())
Copy link
Contributor Author

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.

@aSemy aSemy marked this pull request as draft May 1, 2023 18:49
@aSemy
Copy link
Contributor Author

aSemy commented May 1, 2023

I'm marking this as a draft - I'll come back to it once the required branches have been merged.

@qwwdfsad qwwdfsad deleted the branch Kotlin:bcv-gradle-rework January 12, 2024 14:22
@qwwdfsad qwwdfsad closed this Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants