File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import java.nio.file.StandardCopyOption
8
8
import org.gradle.api.DefaultTask
9
9
import org.gradle.api.Project
10
10
import org.gradle.api.plugins.BasePluginExtension
11
+ import org.gradle.kotlin.dsl.TaskContainerScope
11
12
import org.gradle.kotlin.dsl.apply
12
13
import org.gradle.kotlin.dsl.configure
13
14
import org.gradle.kotlin.dsl.extra
@@ -88,8 +89,7 @@ fun Project.configureDistribution() {
88
89
val jar = getJarTask().archiveFileName.get()
89
90
resources.computeIfAbsent(
90
91
if (extra.has(" bootstrap" ) && extra.get(" bootstrap" ) as Boolean ) " addons/bootstrap"
91
- else " addons"
92
- ) { ArrayList () }.add(jar)
92
+ else " addons" ) { ArrayList () }.add(jar)
93
93
}
94
94
95
95
val options = DumperOptions ()
@@ -106,7 +106,9 @@ fun Project.configureDistribution() {
106
106
107
107
if (manifest.exists()) manifest.delete()
108
108
manifest.createNewFile()
109
- yaml.dump(resources, FileWriter (manifest))
109
+ FileWriter (manifest).use {
110
+ yaml.dump(resources, it)
111
+ }
110
112
}
111
113
}
112
114
Original file line number Diff line number Diff line change @@ -8,12 +8,5 @@ terra.license=MIT
8
8
# Gradle options
9
9
org.gradle.jvmargs =-Xmx4096M -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC
10
10
org.gradle.warning.mode =all
11
-
12
- # EVIL stuff that BREAKS THINGS, DO NOT USE!
13
-
14
- # org.gradle.vfs.watch=true
15
- # kapt.use.worker.api=true
16
- # kapt.include.compile.classpath=false
17
- # org.gradle.parallel=true
18
- # org.gradle.caching=true
11
+ org.gradle.parallel =true
19
12
You can’t perform that action at this time.
0 commit comments