Skip to content

Conversation

@Matyrobbrt
Copy link
Member

This PR adds an ImportHelper used to import classes inside the file when possible, to increase readability. This helper is API that can be used by plugins and is implemented as a PostProcessReplacer. This is a new API that can attach replacers that run after transformers have processed a file using a user-data backed map.

Interface injection is also switched to use the ImportHelper and import interface-injected classes when possible.

@Matyrobbrt Matyrobbrt added the enhancement New feature or request label Feb 27, 2025
@neoforged-pr-publishing
Copy link

neoforged-pr-publishing bot commented Feb 27, 2025

  • Publish PR to GitHub Packages

Last commit published: 8dbeb9f68f0c0e3be7ffea70fd81310369d48499.

PR Publishing

The artifacts published by this PR:

Repository Declaration

In order to use the artifacts published by the PR, add the following repository to your buildscript:

repositories {
    maven {
        name 'Maven for PR #47' // https://github.com/neoforged/JavaSourceTransformer/pull/47
        url 'https://prmaven.neoforged.net/JavaSourceTransformer/pr47'
        content {
            includeModule('net.neoforged.jst', 'jst-api')
            includeModule('net.neoforged.jst', 'jst-cli')
            includeModule('net.neoforged.jst', 'jst-cli-bundle')
        }
    }
}

@Matyrobbrt Matyrobbrt requested a review from shartte April 26, 2025 13:57
@shartte shartte merged commit aed6ed6 into main Apr 26, 2025
2 checks passed
@shartte shartte deleted the imports branch April 26, 2025 14:52
@neoforged-releases
Copy link

🚀 This PR has been released as JavaSourceTransformer version 1.0.71.

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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants