Commit Graph

3104 Commits

Author SHA1 Message Date
Michael Bayne 46507ae04a [maven-release-plugin] prepare release samskivert-1.10.1 2025-12-02 16:00:11 -08:00
Michael Bayne 65001875b5 Use the proper servlet classloader here.
Otherwise if samskivert.jar is loaded via the root classloader, this will fail
to find classes and resources in the servlet/webapp classloader. Let's not
require that samskivert.jar be duplicated into the webapp in cases where we're
doing complex things like hosting webapps inside larger app servers. That can
cause other fiddly problems with mismatched duplicate copies of classes.
2025-12-02 15:58:13 -08:00
Michael Bayne 1ddc109ed0 [maven-release-plugin] prepare for next development iteration 2025-07-03 13:08:21 -07:00
Michael Bayne 8a8390641e [maven-release-plugin] prepare release samskivert-1.10 2025-07-03 13:08:19 -07:00
Michael Bayne b592e7bca8 Release fixes.
- Nix attempts to link to ancient, no longer in existence, Oracle hosted
Javadocs.

- Manually include code to attach javadocs and source jars during release,
because we no longer get that from the OSS parent pom. We can't use the OSS
parent pom because it redirects release stuff to the ossrh Maven Central
servers that no longer exist. Would be nice if they made and published a new
OSS parent pom. Shrug.
2025-07-03 13:06:16 -07:00
Michael Bayne abfcfc9707 Javadoc fixes. 2025-07-03 13:06:05 -07:00
Michael Bayne 3e1598a82d Switching to new Maven Central publishing plugin. 2025-07-03 12:36:57 -07:00
Michael Bayne f413bac5fc Use result index instead of name.
For whatever reason name is not working. But we only get back one value, so we
can just get it by index (which used SQL's 1-based indexing, whee!).
2025-02-21 14:38:02 -08:00
Michael Bayne 5f4b9f699d Use DriverManager.getConnection().
This is the preferred way to obtain a JDBC connection in this millenium. No
longer does one manually instantiate the JDBC driver by name. The JDBC driver
jar file will have a mapping that indicates that it handles a particular type
of JDBC URL and the JDBC infrastructure will handle instantiating the driver.
2025-02-21 14:18:54 -08:00
Michael Bayne 87c68f2f1c Bump servlet-api to 3.1.0, make cookies http only.
This makes them invisible to JavaScript (which we don't use) to avoid the
danger of someone injecting JavaScript somehow and stealing auth cookies. It's
a dangerous world out there.
2025-02-20 11:41:00 -08:00
Michael Bayne a05da202af Add mechanism to get auto-generated key to JORA.
This assumes that the JDBC driver supports getGeneratedKeys(), which is a safe
bet in these rarified modern times.
2025-02-20 10:32:16 -08:00
Michael Bayne 6c479037e5 Target Java 10. 2025-02-05 11:12:42 -08:00
Michael Bayne e9efe7ca49 Use type parameters. 2025-01-30 13:52:22 -08:00
Michael Bayne d91abf6649 Auto-create the sites and domains tables. 2025-01-20 22:10:50 -08:00
Michael Bayne f18af0cfd0 Actually we do want a specific catalog.
The Connection will be connected to a particular "database" and we want to
restrict the metadata only to things in that database.
2025-01-20 22:10:36 -08:00
Michael Bayne fad635b54b Let's fix all these other spots too. 2025-01-20 14:55:46 -08:00
Michael Bayne 5396a98410 Don't narrow search by catalog or schema.
Apparently null is different from "" and that started to matter some time in
the last twenty five years.
2025-01-20 14:48:54 -08:00
Michael Bayne 26d9abeffc Bump source/target versions.
1.8 is the minimum supported these days.
2025-01-20 14:29:49 -08:00
Michael Bayne c490ad0bc1 Don't depend on hash ordering. 2025-01-20 14:29:41 -08:00
Michael Bayne a2cc8ec450 Use replacement for Class.newInstance().
It is deprecated as of Java 9, and the replacement is valid for older JVMs.
2019-03-18 19:30:04 -07:00
Michael Bayne faf94721fc Nix Ant build instructions. 2019-03-18 19:22:21 -07:00
Michael Bayne c8d062700d Remove ancient Ant build scripts. 2019-03-18 19:19:59 -07:00
Michael Bayne a64d9ef42b Update nexus plugin. 2016-11-28 21:50:46 -08:00
Michael Bayne b1a418eaa9 Fix some raw types. 2016-11-26 09:27:15 -08:00
Ray J. Greenwell 0436d95cea Logging improvements for WeakObserverList.
- De-static checkedApply(). It should be overrideable and know
  other things about the ObserverList that it belongs to.
- Created an overrideable observerForLog().
- Have the DerefOp include the original Op's toString() in its own.
2015-05-04 17:48:00 -07:00
Michael Bayne 3212061b2b Back to using script & repeating mvn command.
after_script runs *after* the cache update process, so it deletes the installed
artifacts too late. Bad Travis, no cookie.
2015-03-16 20:10:38 -07:00
Michael Bayne 2dc23c2b2e Use after_script to avoid overwriting script. 2015-03-16 20:05:12 -07:00
Michael Bayne 4db4804f07 Ah, we need to run Maven ourselves now. 2015-03-16 20:01:00 -07:00
Michael Bayne 18107f039f Cache the .m2 directory on Travis.
This should vastly speed up builds and download about a gajigabit less data.
2015-03-16 19:54:52 -07:00
Michael Bayne 1c341a3277 Add doclint config. 2015-03-14 10:11:15 -07:00
Michael Bayne 94f530642a Reference 1.9 release. 2015-03-12 08:42:41 -07:00
Michael Bayne 8b30369177 [maven-release-plugin] prepare for next development iteration 2015-03-12 08:39:48 -07:00
Michael Bayne fd730f2706 [maven-release-plugin] prepare release samskivert-1.9 2015-03-12 08:39:44 -07:00
Michael Bayne 258e27dac4 Get rid of TestUtil and related hackery.
The SiteResourceLoader is some ancient stuff that's not used anywhere any more,
and there's no use in keeping this crufty crap around to test it. I'd nix it
too but I don't want to cause yet more trouble.

TestUtil was weird and a bad idea and good riddance to it as well.
2014-11-17 14:23:41 -08:00
Michael Bayne c066cbf044 Specify test_dir in the unit test.
Now that it's consistent, we can avoid extra build shenanigans.
2014-11-17 14:07:38 -08:00
Michael Bayne 3cb7407643 Put Ant build results in the same place as Maven. 2014-11-17 14:07:38 -08:00
Jamie Doornbos 5c57d34d16 Minor javadoc fixes. 2014-11-17 12:33:57 -08:00
Jamie Doornbos 3809bec42e Profile for deploying to a directory. 2014-11-14 16:38:13 -08:00
Jamie Doornbos f4e1d367ba Move eclipse hackery into a profile. 2014-11-14 16:38:00 -08:00
Mark Johnson 4e9ef351ff Preparing for 1.9-SNAPSHOT development. 2014-10-14 14:18:32 -07:00
Mark Johnson 525948b651 Preparing for samskivert-1.8.3 release. 2014-10-14 14:15:11 -07:00
Michael Bayne d83760bb39 No auto-commit for tx connections. 2014-10-01 14:44:16 -07:00
Michael Bayne 1a822593fb Tx connections are always read-write. 2014-10-01 11:29:45 -07:00
Michael Bayne 90e45a4ad1 Some infrastructure for transaction support.
ConnectionProvider may normally return the same connection for a call to
getConnection(), so we add a separate getTxConnection() which is guaranteed to
always return a connection that's not in use by anyone else.

The DataSourceConnectionProvider already meets that requirement because it
returns connections from a pool, but the StaticConnectionProvider does not. In
the latter case, we just open a new connection to the database every time you
do a transaction. Since StaticConnectionProvider is only used for testing (in
conjunction with Depot anyway, Yohoho uses it in production IIRC), this is not
a big deal.
2014-10-01 10:36:33 -07:00
Michael Bayne fafb6c8fd6 Merge branch 'master' of https://github.com/threerings/samskivert 2014-09-30 15:37:06 -07:00
Michael Bayne 7c9d4456d6 Omit public from interface method decls. 2014-09-30 15:36:38 -07:00
Ray J. Greenwell a9dc20ce14 Stop supporting Invoker.setDefaultLongThreshold(). 2014-06-25 15:49:46 -07:00
Michael Bayne de41d0384a Let's have a Travis build.
I like Travis, he's a nice guy.
2014-06-25 15:11:32 -07:00
Michael Bayne 612430bdde [maven-release-plugin] prepare for next development iteration 2014-06-25 13:51:09 -07:00
Michael Bayne 27504ec816 [maven-release-plugin] prepare release samskivert-1.8.2 2014-06-25 13:50:47 -07:00