Kafkatorio/modules
Lazzexus 509832d26d Fix kxs-ts-gen-core dependency resolution and unblocked compile bugs
The version catalog pointed kxs-ts-gen-core at a JitPack coordinate
(com.github.adamko-dev.kotlinx-serialization-typescript-generator) that
no longer serves real artifacts there, despite JitPack's build-status
API still reporting it as built. The library is properly published to
Maven Central under dev.adamko.kxstsgen - a commented-out line with
that exact coordinate was already sitting in the catalog. Swapping to
it fixes dependency resolution for every module depending on
versions-platform (which previously blocked any Gradle task touching
events-library, including all of its tests).

That unblocked two more pre-existing, unrelated bugs that had never
been caught because this module never previously compiled:

- LuaJsonList<T> : List<T> by list triggered a longstanding Kotlin
  compiler bug (KT-3546, "accidental override" on generic toArray)
  specific to delegating java.util.List via `by`. Replaced with a
  hand-written Collection<T> implementation (no delegation codegen,
  no bug), which still satisfies Kotest's forOne/forAll inspectors -
  the only thing any code actually needs from it.
- The kxs-ts-gen Kotlin->TypeScript generator (kt2ts2.kt) still emitted
  the pre-2.0 bare `uint`/`int` names and no import statement, since it
  predates typed-factorio's move to virtual modules. Updated its
  primitive-type mappings to uint32/int32 and added the "factorio:runtime"
  import to its generated header, so the regenerated schema matches what
  the rest of events-mod now expects.

Verified via real Gradle tasks (not just manual tooling): events-library
compiles and all tests pass; events-mod's full build - Kotlin schema
generation, npm install, tstl compile, and info.json generation (with
factorio_version "2.0" and the space-exploration/Krastorio2 optional
dependencies) - succeeds end-to-end.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-12 15:40:33 +02:00
..
events-library Fix kxs-ts-gen-core dependency resolution and unblocked compile bugs 2026-10-12 15:40:33 +02:00
events-mod Fix kxs-ts-gen-core dependency resolution and unblocked compile bugs 2026-10-12 15:40:33 +02:00
events-processor-core fix bootstrap server, remove http:// 2022-10-23 21:54:38 +02:00
events-processors big ol' refactor of the Gradle Factorio Mod 2022-12-18 01:41:14 +01:00
events-server [docker-files] remove user config 2022-10-22 23:36:00 +02:00
events-server-syslog [docker-files] remove user config 2022-10-22 23:36:00 +02:00
events-server-web [docker-files] remove user config 2022-10-22 23:36:00 +02:00
infra-factorio-client tidy up after refactoring Gradle Factorio plugin 2022-12-19 16:53:18 +01:00
infra-factorio-server Port events-mod to Factorio 2.0.77, declare SE/Krastorio 2 compatibility 2026-10-12 15:06:30 +02:00
infra-kafka-cluster adjust geedeecee config, so images can be built 2022-10-05 00:06:46 +02:00
infra-kafka-pipe update dockerfiles 2022-10-22 19:55:02 +02:00
kt-rcon migrate buildSrc plugins to includedBuild plugins 2022-09-18 20:49:32 +02:00
versions-platform adjust geedeecee config, so images can be built 2022-10-05 00:06:46 +02:00
web-map version bumps 2022-12-06 00:23:52 +01:00
modules.md big ol' refactor to split up the events-server and events-processors 2022-09-13 17:56:57 +02:00