Skip to content

Commit ea488cf

Browse files
committed
Microfix #8
1 parent 273ac14 commit ea488cf

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

buildSrc/src/main/kotlin/PropertiesUpdater.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()) {

resource-server/build.gradle.kts

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff 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

9091
tasks.withType<KotlinCompile> {

0 commit comments

Comments
 (0)