Skip to content

Conversation

timtebeek
Copy link
Member

@timtebeek timtebeek commented Sep 29, 2025

We didn't yet support type tables for JavaSourceSet, meaning I could not do the following:

    SourceSpecs junit6Source =
      java(
        """
          import org.junit.jupiter.api.Test;
          class TestWith5 {
            @Test
            void test() {
            }
          }
          """,
        """
          import org.junit.jupiter.api.Test;
          class TestWith5 {
            /*~~>*/@Test
            void test() {
            }
          }
          """,
        spec -> spec.markers(
          JavaSourceSet.build("test", JavaParser.dependenciesFromResources(new InMemoryExecutionContext(), "junit-jupiter-api"))));

Where the dependency is provided by

recipeDependencies {
    testParserClasspath("org.junit.jupiter:junit-jupiter-api:6.0.0-RC3")
}

@timtebeek timtebeek added the enhancement New feature or request label Sep 29, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Ready to Review in OpenRewrite Sep 29, 2025
@sambsnyd sambsnyd merged commit 63f6075 into main Sep 29, 2025
2 checks passed
@sambsnyd sambsnyd deleted the get-gav-coordinates-for-type-table-entries branch September 29, 2025 21:21
@github-project-automation github-project-automation bot moved this from Ready to Review to Done in OpenRewrite Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants