<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guess-market/lib, branch 4.0</title>
<subtitle>definitely not polymarket
</subtitle>
<id>https://git.sartin.in/guess-market/atom?h=4.0</id>
<link rel='self' href='https://git.sartin.in/guess-market/atom?h=4.0'/>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/'/>
<updated>2026-10-09T09:55:40Z</updated>
<entry>
<title>server: add Tomcat webapp module with shared engine and CORS</title>
<updated>2026-10-09T09:55:40Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-10-09T09:55:16Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=9a62e94261e6531c6b60d296322e0cef2a5b21e1'/>
<id>urn:sha1:9a62e94261e6531c6b60d296322e0cef2a5b21e1</id>
<content type='text'>

Exercise 3 moves the market behind a Tomcat server that the desktop
and browser clients share. Add a server module, registered in the
build scripts, holding the pieces every later endpoint builds on:

- ServerEngine wires one in-memory market (repositories, ledger,
  trading pipeline, v3 upload loader) and lives in the servlet context
  for the webapp's lifetime. Its catalog refuses path-based loading,
  so events can only arrive through uploaded streams and the server
  never reads or writes files.
- EngineBootstrap builds that engine when the webapp deploys.
- CorsFilter answers preflights and echoes the caller's Origin with
  Allow-Credentials, which the browser client needs to send its
  session cookie from another origin. With usernames as the only
  login, echoing any origin exposes nothing a page couldn't get by
  logging in itself.
- /api/health reports that the engine is up.

Vendor tomcat-juli 10.1.26 next to the other Tomcat jars. It ships in
Tomcat's bin/ rather than lib/, and embedded Tomcat cannot start
without it. A test deploys the module into embedded Tomcat, so
annotation scanning, the health check and CORS are checked against a
real container.


</content>
</entry>
<entry>
<title>openjfx: ship native libraries so the desktop UI can launch on Windows</title>
<updated>2026-08-23T15:10:32Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-08-23T15:10:32Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=c0dde6531e831730c25230097fd85a8a38214101'/>
<id>urn:sha1:c0dde6531e831730c25230097fd85a8a38214101</id>
<content type='text'>
lib/openjfx held only the JavaFX API jars, with no Prism/Glass native
libraries backing them. At startup JavaFX tried the d3d then sw
rendering pipelines and both failed to load, since NativeLibLoader had
no native code to find, crashing before any window opened.

Bump the jars to 25.0.4 to match the target JDK and add the matching
native DLLs alongside them. Drop the web/media/swt/swing jars and
their natives (including the 92MB jfxwebkit.dll) since ui-desktop
never references those modules.

Update package.sh to also stage *.dll files when copying runtime libs
into build/dist, and point java.library.path at lib/openjfx in the
generated run-*.bat so the natives are found at launch.
</content>
</entry>
<entry>
<title>Add MapStruct jars to service module</title>
<updated>2026-08-20T08:27:49Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-08-20T08:27:49Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=5f5236af81b4a9f286e927bc9e36226e1ba05b70'/>
<id>urn:sha1:5f5236af81b4a9f286e927bc9e36226e1ba05b70</id>
<content type='text'>
lib/*/*.jar is auto-globbed onto the build classpath, so this makes
mapstruct available for future DTO&lt;-&gt;domain mappers without any build
script changes.
</content>
</entry>
<entry>
<title>Add JaCoCo coverage reporting to test.sh</title>
<updated>2026-08-20T07:24:22Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-08-20T07:24:22Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=8089a72ef6065a2a01304aa1cc251d9950731527'/>
<id>urn:sha1:8089a72ef6065a2a01304aa1cc251d9950731527</id>
<content type='text'>
Vendor jacocoagent.jar/jacococli.jar under lib/jacoco/ (excluded from
the shipped classpath), attach the agent during test runs, and
generate an HTML+XML report into build/coverage after tests pass.
</content>
</entry>
<entry>
<title>Vendor Mockito 5.23.0 dependencies</title>
<updated>2026-08-13T14:02:56Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-08-13T14:02:56Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=c58e65ad4fba4b964d26dcf11d6163465fc3cfd3'/>
<id>urn:sha1:c58e65ad4fba4b964d26dcf11d6163465fc3cfd3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move engine contracts to api module, add I/O provider abstraction and PicoContainer wiring</title>
<updated>2026-08-10T20:21:55Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-08-10T20:21:55Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=9d19a3187789f01d6dbbc73d14c7f90df3e67560'/>
<id>urn:sha1:9d19a3187789f01d6dbbc73d14c7f90df3e67560</id>
<content type='text'>
Relocates GuessMarketEngine/GuessMarketContext into market.guess.api so
engine and ui-console depend on a shared contract instead of engine
internals, and makes context loading async (CompletableFuture). Adds
InputProvider/OutputProvider interfaces with console implementations,
wires the console app's Menu through a PicoContainer, and adds the
generated model classes plus vendored picocontainer jar needed to build it.
</content>
</entry>
<entry>
<title>flatten modules to repo root, vendor deps, repair Eclipse build paths</title>
<updated>2026-08-09T11:46:25Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-08-09T11:46:25Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=34deee1c5ef2df5ba2514f77ec4dfd4a684a9d13'/>
<id>urn:sha1:34deee1c5ef2df5ba2514f77ec4dfd4a684a9d13</id>
<content type='text'>
Move api, engine, ui-console and ui-desktop out of modules/ up to the
repo root and drop the empty exception project (GuessMarketException now
lives in api).

Vendor gson, jaxb, okhttp, openjfx and tomcat under lib/, and group the
JUnit standalone jar into lib/junit/ alongside them.

Rewrite every .classpath: drop the copy-pasted optional="true" that was
masking real build path errors, point the library entries at ../lib/,
and put the JUnit jar on the test source folders so the placeholder
AppTest classes compile.

ui-desktop: take the JavaFX jars off the modulepath (there is no
module-info.java, so module="true" left the packages unresolvable) and
add a Launcher that calls Application.launch, avoiding the "JavaFX
runtime components are missing" check without VM arguments.

engine: add LocalGuessMarketService and the GuessMarketContext provider
interface, and give GuessMarketException the no-arg and cause
constructors they need.
</content>
</entry>
<entry>
<title>template initial commit</title>
<updated>2026-08-06T14:42:43Z</updated>
<author>
<name>Kostya</name>
<email>mail@sartin.in</email>
</author>
<published>2026-08-06T14:42:43Z</published>
<link rel='alternate' type='text/html' href='https://git.sartin.in/guess-market/commit/?id=c3946151d543f568983f1ba16a963ea7dd4b9055'/>
<id>urn:sha1:c3946151d543f568983f1ba16a963ea7dd4b9055</id>
<content type='text'>
</content>
</entry>
</feed>
