Skip to content
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

[Fix]: Make runs entirely lazily, adding back support for handling VersionCatalogues #230

Merged
merged 5 commits into from
Jul 24, 2024

Conversation

marchermans
Copy link
Contributor

With the final and full fix for the whenObjectAdded replacement, lazy dependencies are not fully realised in time for replacement and run creation.

So runs invoked where not realised and it was not possible to configure them with data from their SDK types.

This PR changes this by making runs fully lazy, loading their data from the CP if needbe and configuring them completely internally.

I wished that that I could make it fully lazy but that requires some further modifications to the internal spec, and this suffices for now.

When using a version library you will need to create the runs manually, as gradle actually realises the dependency way to late for us to register a run.

@neoforged-pr-publishing
Copy link

neoforged-pr-publishing bot commented Jul 23, 2024

  • Publish PR to GitHub Packages

Last commit published: dfa0ec8c9f9b8f9847f0ad8c7c35766571582420.

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 #230' // https://github.com/neoforged/NeoGradle/pull/230
        url 'https://prmaven.neoforged.net/NeoGradle/pr230'
        content {
            includeModule('net.neoforged.gradle', 'common')
            includeModule('net.neoforged.gradle.common', 'net.neoforged.gradle.common.gradle.plugin')
            includeModule('net.neoforged.gradle.platform', 'net.neoforged.gradle.platform.gradle.plugin')
            includeModule('net.neoforged.gradle', 'dsl-common')
            includeModule('net.neoforged.gradle', 'dsl-vanilla')
            includeModule('net.neoforged.gradle', 'dsl-mixin')
            includeModule('net.neoforged.gradle', 'dsl-platform')
            includeModule('net.neoforged.gradle', 'dsl-userdev')
            includeModule('net.neoforged.gradle.neoform', 'net.neoforged.gradle.neoform.gradle.plugin')
            includeModule('net.neoforged.gradle', 'neoform')
            includeModule('net.neoforged.gradle', 'mixin')
            includeModule('net.neoforged.gradle', 'test-utils')
            includeModule('net.neoforged.gradle', 'userdev')
            includeModule('net.neoforged.gradle', 'vanilla')
            includeModule('net.neoforged.gradle.vanilla', 'net.neoforged.gradle.vanilla.gradle.plugin')
            includeModule('net.neoforged.gradle.mixin', 'net.neoforged.gradle.mixin.gradle.plugin')
            includeModule('net.neoforged.gradle', 'utils')
            includeModule('net.neoforged.gradle.userdev', 'net.neoforged.gradle.userdev.gradle.plugin')
            includeModule('net.neoforged.gradle', 'platform')
            includeModule('net.neoforged.gradle', 'dsl-neoform')
        }
    }
}

@marchermans marchermans merged commit ed5a151 into NG_7.0 Jul 24, 2024
105 checks passed
@marchermans marchermans deleted the fix/version-lin-provider branch July 24, 2024 12:12
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.

1 participant