File tree Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ abstract class ComposeWasmPropertiesUpdater : DefaultTask() {
2626
2727 @TaskAction
2828 fun updateProperties () {
29- val file = File (propertiesPath .get())
29+ val file = updatedPropertiesFile .get().asFile
3030
3131 propertiesMap.get().let {
3232 if (it.isNotEmpty()) {
Original file line number Diff line number Diff line change @@ -71,20 +71,21 @@ val composeWasmPropertiesUpdater by tasks.registering(ComposeWasmPropertiesUpdat
7171 propertiesMap.put(" skiko.version" , libs.versions.skiko.get())
7272
7373 val applicationPropertiesPath = projectDir.resolve(" src/main/resources/application.properties" )
74-
75- if (! applicationPropertiesPath.exists()) {
74+ //
75+ // if (!applicationPropertiesPath.exists()) {
76+ // applicationPropertiesPath.parentFile.mkdirs()
7677// applicationPropertiesPath.createNewFile()
77- }
78+ // }
7879
79- // propertiesPath.set(applicationPropertiesPath.normalize().absolutePath)
80- //
81- // val composeWasmStdlibTypeInfo: FileCollection = kotlinComposeWasmStdlibTypeInfo
82- //
83- // typeInfoFile.fileProvider(
84- // provider {
85- // composeWasmStdlibTypeInfo.singleFile
86- // }
87- // )
80+ propertiesPath.set(applicationPropertiesPath.normalize().absolutePath)
81+
82+ val composeWasmStdlibTypeInfo: FileCollection = kotlinComposeWasmStdlibTypeInfo
83+
84+ typeInfoFile.fileProvider(
85+ provider {
86+ composeWasmStdlibTypeInfo.singleFile
87+ }
88+ )
8889}
8990
9091tasks.withType<KotlinCompile > {
You can’t perform that action at this time.
0 commit comments