-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
Last commit published: 9f3be3e805818a31a66de9019f941eb14c9c74d8. PR PublishingThe artifacts published by this PR:
Repository DeclarationIn 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')
}
}
} |
src/main/java/net/neoforged/moddevgradle/dsl/NeoForgeExtension.java
Outdated
Show resolved
Hide resolved
src/main/java/net/neoforged/moddevgradle/internal/utils/IdeDetection.java
Outdated
Show resolved
Hide resolved
src/main/java/net/neoforged/moddevgradle/internal/utils/IdeDetection.java
Show resolved
Hide resolved
* 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"; |
There was a problem hiding this comment.
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)); |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
No description provided.