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 JIJ output location, add CoreMod to testproject for testing #18

Merged
merged 14 commits into from
Jun 15, 2024

Conversation

shartte
Copy link
Collaborator

@shartte shartte commented Jun 14, 2024

No description provided.

@neoforged-pr-publishing
Copy link

neoforged-pr-publishing bot commented Jun 14, 2024

  • Publish PR to GitHub Packages

Last commit published: 9f3be3e805818a31a66de9019f941eb14c9c74d8.

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 #18' // https://github.com/neoforged/ModDevGradle/pull/18
        url 'https://prmaven.neoforged.net/ModDevGradle/pr18'
        content {
            includeModule('net.neoforged.moddev', 'net.neoforged.moddev.gradle.plugin')
            includeModule('net.neoforged', 'moddev-gradle')
        }
    }
}

* This must be relative to the project directory since we can only set this to the same project-relative
* directory across all subprojects due to IntelliJ limitations.
*/
private static final String JUNIT_GAME_DIR = "build/minecraft-junit";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be using the project layout instead of hardcoding build/?

@@ -651,28 +661,48 @@ private void setupTesting(Project project,

project.afterEvaluate(p -> {
// Test tasks don't have a provider-based property for working directory, so we need to afterEvaluate it.
testTask.configure(task -> task.setWorkingDir(unitTest.getGameDirectory()));
testTask.configure(task -> task.setWorkingDir(gameDirectory));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this part can be removed from afterEvaluate.

testTask.configure(task -> task.setWorkingDir(unitTest.getGameDirectory()));
testTask.configure(task -> task.setWorkingDir(gameDirectory));

// Write out a separate file that has IDE specific VM args, which include the definition of the output directories.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move that to a task.

@shartte shartte merged commit d480632 into main Jun 15, 2024
4 checks passed
@shartte shartte deleted the jij-tests branch June 15, 2024 00: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.

3 participants