Skip to content

Commit 8e567e9

Browse files
committed
Fix plugin validation
IntelliJ didn't save these files so it wasn't picked up by lazygit :P `validatePlugins` ensures the proper usage of task annotations, and it seems like I misused Gradle's `@Internal` annotation for these properties.
1 parent d04992f commit 8e567e9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/main/groovy/net/minecraftforge/gradleutils/shared/EnhancedTask.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ default Provider<RegularFile> getDefaultOutputFile() {
4949
///
5050
/// @param ext The extension to use for the file
5151
/// @return A provider for the file
52-
@Internal
5352
default Provider<RegularFile> getDefaultOutputFile(String ext) {
5453
return this.getPlugin().getLocalCaches().file("%s/output.%s".formatted(this.getName(), ext)).map(this.getPlugin().getProblemsInternal().ensureFileLocation());
5554
}

src/main/groovy/net/minecraftforge/gradleutils/shared/ToolExecBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
public abstract class ToolExecBase<P extends EnhancedProblems> extends JavaExec {
3030
private final P problems;
3131
/// The default tool directory (usage is not required).
32-
protected final @Internal DirectoryProperty defaultToolDir;
32+
protected final DirectoryProperty defaultToolDir;
3333

3434
/**
3535
* @see <a href="https://docs.gradle.org/current/userguide/service_injection.html#sec:projectlayout">ProjectLayout

0 commit comments

Comments
 (0)