Skip to content

About

No description, website, or topics provided.

Resources

Stars

24 stars

Watchers

9 watching

Forks

Latest commit

 

History

2,906 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SIARD Suite 2.2

CI License: CDDL-1.0 GitHub release

About

SIARD Suite is a comprehensive toolset for archiving relational databases in the SIARD (Software-Independent Archival of Relational Databases) format. The suite ensures long-term preservation and accessibility of database contents, independent of the original database management system.

Learn more about the project:

Experimental: Understand Anything

Understand Anything is a project that helps understand what the code really does. This projects knowledge graph is commited and you can view it locally, either using your coding agent or just using npx.

First install the plugin and then run the dashboard:

mise install
GRAPH_DIR="$PWD" pnpm -C ~/.understand-anything-plugin/packages/dashboard exec vite --host 127.0.0.1 

or use the provided skill using your coding agent:

/understand-dashboard 

Declaration

Contributions to the codebase have been and will be made with the support of AI-assisted coding tools. All contributions are reviewed by human maintainers before merging, and contributors remain responsible for the code they submit.

When AI tools meaningfully contribute to a change, this is should be disclosed via a Co-Authored-By: or Assisted-By: trailer in the commit message.

Developer Setup

Install everything with mise:

mise install

You'll also need Docker

If you dont want to use mise, install:

Running the Application

Note: There is a justfile that provides convenient aliases for common tasks.

GUI Application:

./gradlew :siard-suite-app:run

Command-Line Interface:

The siard CLI is distributed separately as siard-cli — releases ship native installers (.msi/.exe, .deb/.rpm, .dmg) and runtime-bundled image zips per OS. It is not included in the SIARD Suite installer.

For development, build the plain distribution (requires Java 21):

./gradlew :siard-cmd:installDist

Then run the CLI:

# Download database to SIARD archive
./siard-cmd/build/install/siard/bin/siard archive --jdbc-url=<url> --user=<user> --password=<password> --siard-file=<file>

# Upload SIARD archive to database
./siard-cmd/build/install/siard/bin/siard restore --jdbc-url=<url> --user=<user> --password=<password> --siard-file=<file>

Or build a runtime-bundled image (no Java needed to run):

./gradlew :siard-cmd:runtimeZip
# unzip siard-cmd/build/image-zip/siard-cli-*.zip and run bin/siard

Building the Project

Build all modules:

./gradlew clean build -x test

Note: running all tests takes quite long!

Build specific module:

./gradlew :module-name:build

The build creates distributions in build/distributions/ with executable scripts and all dependencies.

Running Tests

Run all tests:

./gradlew test

Run tests for a specific module:

./gradlew :module-name:test

Examples:

./gradlew :siard-api:test           # Core API tests
./gradlew :jdbc-postgres:test       # PostgreSQL wrapper tests
./gradlew :siard-cmd:test           # CLI tests

Integration tests (siard-cmd):

./gradlew :siard-cmd:integrationTest                    # All integration tests
./gradlew :siard-cmd:integrationTestPostgres            # PostgreSQL only
./gradlew :siard-cmd:integrationTestMysql               # MySQL only

Note: all tests require Docker to be running (uses Testcontainers).

Spec-Driven Development (OpenSpec)

OpenSpec (https://openspec.dev/) has been set up for Devin and claude code.
Install it following https://openspec.dev/docs/installation.

If you are using another AI, add it following https://openspec.dev/docs/setup. Note that the optional skills new, continue, ff and verify should be added. Verify is required for this project.

How to use:

Ask for OpenSpec skills in plain language from your AI chat. To make sure the right skill runs, call it by name, e.g. in Claude Code:

/openspec-explore How could rate limiting work in this app?

Workflow

  1. Explore: think the idea through with your agent.
  2. Propose: the agent writes the plan to openspec/changes/<change-name>/: proposal.md, specs/, tasks.md, and optionally design.md. Review it before applying. Edit the files directly or ask the agent to revise them. To build the plan step by step instead: new (empty scaffold), continue (next artifact), ff (generate the rest).
  3. Apply: the agent works through tasks.md, checking off tasks as it goes, then runs verify automatically.
  4. Archive: the agent merges the change's specs into openspec/specs/ (asks for your approval first) and moves the change to the archive. It also records gaps in our agent setup in openspec/agent-guidance-suggestions.md. Review them and promote useful ones into AGENTS.md or openspec/config.yaml.

Dependency Analysis

The project uses the Dependency Analysis Gradle Plugin to detect dependency issues.

Analyze all dependencies:

./gradlew buildHealth

This generates a report showing:

  • Unused dependencies: Dependencies declared but not actually used in code
  • Used transitive dependencies: Dependencies used in code but not explicitly declared
  • Misused dependencies: Dependencies that should use a different configuration (e.g., api instead of implementation)

View the report:

# Console output shows summary
./gradlew buildHealth

# Detailed HTML report
open build/reports/dependency-analysis/build-health-report.html

Fix issues automatically (where possible):

./gradlew buildHealth --auto-correct

Analyze a specific module:

./gradlew :module-name:buildHealth

Note: The plugin may suggest removing dependencies that are actually needed as transitive dependencies. Always verify suggestions before applying them.

Creating Platform-Specific Packages

Create application image:

./gradlew jpackageImage

The image will be available at ./build/jpackage/siard-suite (OS-specific). The CLI image is built with :siard-cmd:jpackageImage (or :siard-cmd:runtimeZip for the zipped image).

Create installer:

./gradlew jpackage

Creates platform-specific installers for both SIARD Suite and the siard CLI (siard-cli-<version>-<os>.dmg/.msi/.deb, …). On Windows and Linux a second CLI installer type is produced with:

./gradlew :siard-cmd:jpackage -PinstallerType=exe   # Windows (default: msi)
./gradlew :siard-cmd:jpackage -PinstallerType=rpm   # Linux (default: deb, needs rpmbuild)

Ubuntu users: Install rpm (provides rpmbuild) to build RPM installers:

sudo apt install rpm

Versioning and Releases

⚠️ Read the release guide before creating releases!

Versions follow the SIARD format version (2.2.x) and are managed with the Axion Release Plugin.

Check current version:

./gradlew currentVersion

Create a release:

./gradlew release

This creates a tag and pushes it to remote, triggering GitHub Actions to build deliverables.

Note: Official GitHub releases must be created manually by BAR.

Documentation

Documentation is written in AsciiDoc and bundled with the application.

Generate PDF documentation:

./gradlew :siard-suite-app:asciidoctorPdf

Code Formatting & Git Blame

We recently performed a bulk reformatting of the entire Java codebase to standardize our style. To avoid seeing "style-only" changes when using git blame, we use a .git-blame-ignore-revs file. This file contains the commit hashes of the formatting commits. Github will automatically use this file and does not show the formatting commits in the blame.

To ignore these formatting commits in your local terminal or IDE, run the following command once in the project root:

git config blame.ignoreRevsFile .git-blame-ignore-revs

About

No description, website, or topics provided.

Resources

Stars

24 stars

Watchers

9 watching

Forks

Releases

Packages

Used by

Contributors

Languages