Skip to content

Commit 944a094

Browse files
committed
Fix #6
1 parent 8b09af5 commit 944a094

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ This project is licensed under [GNU GPL v3](/LICENSE).
1515
## Version Compatibility
1616
| `Mindustry`/`Arc` | `EntityAnno` |
1717
|-------------------|--------------|
18-
| `v146` | `v146.0.10` |
18+
| `v146` | `v146.0.11` |
1919
| `v145` | `1.1.2` |
2020
| `v144.3` | `1.0.0` |

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ arcVersion = v146
55
# Javapoet classpath version, for class file generation.
66
javapoetVersion = 1.13.0
77
# Kotlin KAPT/JVM version.
8-
kotlinVersion = 2.1.0
8+
kotlinVersion = 2.1.20
99

1010
# Enable parallel compilation.
1111
org.gradle.parallel = true

src/ent/EntityAnnoPlugin.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void apply(Project project){
4343
ext.getIsJitpack().convention(false);
4444

4545
var fetchDir = project.getLayout().getBuildDirectory().dir("fetched");
46-
var fetchComps = tasks.create("fetchComps", t -> {
46+
var fetchComps = tasks.register("fetchComps", t -> {
4747
t.getInputs().property("version", project.provider(ext.getMindustryVersion()::get));
4848
t.getOutputs().dir(fetchDir);
4949

@@ -109,7 +109,7 @@ public void apply(Project project){
109109
});
110110
});
111111

112-
tasks.create("procComps", t -> t.doFirst(tt -> {
112+
tasks.register("procComps", t -> t.doFirst(tt -> {
113113
var fetchPackage = ext.getFetchPackage().get();
114114
var files = new Fi(new File(fetchDir.get().getAsFile(), fetchPackage.replace('.', '/'))).list();
115115
for(var file : files){
@@ -157,7 +157,11 @@ public void apply(Project project){
157157
});
158158

159159
// Prevent running these tasks to speed up compile-time.
160-
tasks.getByPath("checkKotlinGradlePluginConfigurationErrors").onlyIf(spec -> false);
160+
var conf = tasks.findByPath("checkKotlinGradlePluginConfigurationErrors");
161+
if(conf != null) {
162+
conf.onlyIf(spec -> false);
163+
}
164+
161165
tasks.withType(KotlinCompile.class, t -> t.onlyIf(spec -> false));
162166
});
163167
}

0 commit comments

Comments
 (0)