6464}
6565
6666
67- val kotlinComposeWasmStdlibTypeInfo : Configuration by configurations.creating {
67+ val kotlinComposeWasmStdlibWasmFile : Configuration by configurations.creating {
6868 isTransitive = false
6969 isCanBeResolved = true
7070 isCanBeConsumed = false
@@ -75,7 +75,7 @@ val kotlinComposeWasmStdlibTypeInfo: Configuration by configurations.creating {
7575 )
7676 attribute(
7777 CacheAttribute .cacheAttribute,
78- CacheAttribute .TYPEINFO
78+ CacheAttribute .WASM
7979 )
8080 }
8181}
@@ -106,7 +106,7 @@ dependencies {
106106 }
107107 testImplementation(libs.kotlinx.coroutines.test)
108108
109- kotlinComposeWasmStdlibTypeInfo (project(" :cache-maker" ))
109+ kotlinComposeWasmStdlibWasmFile (project(" :cache-maker" ))
110110}
111111
112112fun buildPropertyFile () {
@@ -131,17 +131,16 @@ fun generateProperties(prefix: String = "") = """
131131 libraries.folder.compose-wasm=${prefix + libComposeWasm}
132132 libraries.folder.compose-wasm-compiler-plugins=${prefix + libComposeWasmCompilerPlugins}
133133 libraries.folder.compiler-plugins=${prefix + compilerPluginsForJVM}
134- caches.folder.compose-wasm=${prefix + cachesComposeWasm}
135134 spring.mvc.pathmatch.matching-strategy=ant_path_matcher
136135 server.compression.enabled=true
137136 server.compression.mime-types=application/json,text/javascript,application/wasm
138137 skiko.version=${libs.versions.skiko.get()}
139138""" .trimIndent()
140139
141140val composeWasmPropertiesUpdater by tasks.registering(ComposeWasmPropertiesUpdater ::class ) {
142- dependsOn(kotlinComposeWasmStdlibTypeInfo )
141+ dependsOn(kotlinComposeWasmStdlibWasmFile )
143142 propertiesPath.set(rootDir.resolve(" src/main/resources/${propertyFile} " ).absolutePath)
144- typeInfoFile .set(kotlinComposeWasmStdlibTypeInfo .singleFile)
143+ hashableFile .set(kotlinComposeWasmStdlibWasmFile .singleFile)
145144}
146145
147146tasks.withType<KotlinCompile > {
@@ -150,7 +149,6 @@ tasks.withType<KotlinCompile> {
150149 }
151150 dependsOn(" :executors:jar" )
152151 dependsOn(" :indexation:run" )
153- dependsOn(kotlinComposeWasmStdlibTypeInfo)
154152 dependsOn(composeWasmPropertiesUpdater)
155153 buildPropertyFile()
156154}
@@ -187,15 +185,13 @@ val buildLambda by tasks.creating(Zip::class) {
187185 from(libJVMFolder) { into(libJVM) }
188186 from(compilerPluginsForJVMFolder) {into(compilerPluginsForJVM)}
189187 from(libComposeWasmCompilerPluginsFolder) { into(libComposeWasmCompilerPlugins) }
190- dependsOn(kotlinComposeWasmStdlibTypeInfo)
191- from(kotlinComposeWasmStdlibTypeInfo) { into(cachesComposeWasm) }
188+ dependsOn(kotlinComposeWasmStdlibWasmFile)
192189 into(" lib" ) {
193190 from(configurations.compileClasspath) { exclude(" tomcat-embed-*" ) }
194191 }
195192}
196193
197194tasks.named<Copy >(" processResources" ) {
198- dependsOn(kotlinComposeWasmStdlibTypeInfo)
199195 dependsOn(composeWasmPropertiesUpdater)
200196}
201197
0 commit comments