We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a1e7a9 commit 0eb0ca7Copy full SHA for 0eb0ca7
at-gradle/src/main/java/net/minecraftforge/accesstransformers/gradle/ArtifactAccessTransformer.java
@@ -205,7 +205,12 @@ private void exec(TransformOutputs outputs) throws Exception {
205
206
// inputs
207
var inJar = this.getInputArtifact().get().getAsFile();
208
- var atFile = parameters.getConfig().map(RegularFile::getAsFile).get();
+ var atFile = parameters.getConfig().getAsFile().getOrNull();
209
+ if (atFile == null) {
210
+ // No config so just return the input file
211
+ outputs.file(inJar);
212
+ return;
213
+ }
214
215
// outputs
216
var outJarName = inJar.getName().replace(".jar", "-at.jar");
0 commit comments