Split tests into sub-project and add multi-release example#83
Open
LexManos wants to merge 1 commit intoMinecraftForge:2.0from
Open
Split tests into sub-project and add multi-release example#83LexManos wants to merge 1 commit intoMinecraftForge:2.0from
LexManos wants to merge 1 commit intoMinecraftForge:2.0from
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is done as an example for paint
The basic concept when working with multi-projects is that they can only talk to eachother using exposed configurations.
By default gradle exposes the normal jar task as a configuration
I add a 'multirelease' config with a custom USAGE so that it can be identified by things that want to work with the full MR jar. In this case its just the test project. That way we can test running the junit tests with different java versions.
As for building the multi release jar itself. That is done simply by having each java version have its own sub-project.
Then the main project has a config for that version with one non-transitive dependency on the sub-project.
We can then work with that config as normal and gradle is happy.