Fix loom.accessWidener being a read-only property in Kotlin (#447)

* Re-enable Kotlin test because the related bug has been fixed

* Fix loom.accessWidener being a read-only property in Kotlin

* Remove Kotlin test exclusions
This commit is contained in:
Juuxel
2021-07-26 14:14:31 +03:00
committed by GitHub
parent ef2816b0d0
commit b558ee1a46
5 changed files with 5 additions and 12 deletions

View File

@@ -44,7 +44,7 @@ import net.fabricmc.loom.configuration.providers.mappings.LayeredMappingSpecBuil
public interface LoomGradleExtensionAPI {
File getAccessWidener();
void setAccessWidener(Object file);
void setAccessWidener(File file);
void setShareCaches(boolean shareCaches);

View File

@@ -74,9 +74,9 @@ public abstract class LoomGradleExtensionApiImpl implements LoomGradleExtensionA
}
@Override
public void setAccessWidener(Object file) {
public void setAccessWidener(File file) {
Objects.requireNonNull(file, "Access widener file cannot be null");
this.accessWidener = getProject().file(file);
this.accessWidener = file;
}
@Override