📦 Common 6b6t code we reuse across our plugins
  • Java 95.3%
  • Python 4.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-24 20:18:32 +00:00
.forgejo chore: move CODEOWNERS to .forgejo and convert to Forgejo syntax [skip ci] 2026-11-24 20:18:32 +00:00
.github chore: move CODEOWNERS to .forgejo and convert to Forgejo syntax [skip ci] 2026-11-24 20:18:32 +00:00
.idea chore: add logo 2026-01-04 18:56:07 +01:00
buildSrc build(deps): update JUnit to 6 2026-11-13 23:47:50 +01:00
commons-commands-core style: apply spotless and openrewrite 2026-02-02 15:42:35 +01:00
commons-config chore(deps): update dependency com.diffplug.spotless:spotless-plugin-gradle to v8 2026-11-13 20:30:45 +01:00
commons-core fix: move from substitution to enf 2026-02-08 10:39:54 +01:00
commons-database-core style: apply spotless and openrewrite 2026-02-02 15:42:35 +01:00
commons-database-mariadb refactor: centralize annotation dependencies in base logic 2026-01-04 19:15:11 +01:00
commons-database-postgres refactor: centralize annotation dependencies in base logic 2026-01-04 19:15:11 +01:00
commons-database-redis style: apply spotless and openrewrite 2026-02-02 15:42:35 +01:00
commons-message fix(deps): update Adventure to v5 2026-11-13 22:31:04 +01:00
config/spotbugs fix: resolve build issues in migration framework 2025-12-31 21:09:29 +01:00
gradle build(deps): update MariaDB Connector/J to 4 2026-11-13 23:57:53 +01:00
scripts chore(hooks): run focused local checks with Lefthook 2026-11-12 10:56:05 +01:00
.editorconfig chore: add more config files 2025-12-27 14:12:15 +01:00
.gitattributes chore: add more config files 2025-12-27 14:12:15 +01:00
.gitignore chore(hooks): run focused local checks with Lefthook 2026-11-12 10:56:05 +01:00
AGENTS.md docs(agents): require verified Lefthook setup [no deploy] 2026-11-14 21:07:53 +01:00
build.gradle.kts chore(deps): update dependency com.diffplug.spotless:spotless-plugin-gradle to v8 2026-11-13 20:30:45 +01:00
CLAUDE.md docs: make CLAUDE.md a pointer to AGENTS.md 2026-09-21 21:47:22 +02:00
CONTRIBUTING.md build(java): track the latest Java LTS 2026-11-14 08:41:27 +01:00
gradle.properties chore: add more config files 2025-12-27 14:12:15 +01:00
gradlew fix(deps): update all non-major dependencies (#13) 2026-09-13 19:46:52 +00:00
gradlew.bat fix(deps): update all non-major dependencies (#13) 2026-09-13 19:46:52 +00:00
jitpack.yml chore: use java 25 in jitpack 2025-12-31 20:53:00 +01:00
lefthook.yml chore(hooks): run focused local checks with Lefthook 2026-11-12 10:56:05 +01:00
LICENSE Initial commit 2025-12-27 12:05:54 +01:00
lombok.config chore: update style 2026-01-01 21:45:25 +01:00
README.md docs: remove GitHub move notice [skip ci] 2026-11-24 20:00:10 +00:00
renovate.json build(java): track the latest Java LTS 2026-11-14 08:41:27 +01:00
SECURITY.md docs: add security policy 2026-09-21 23:00:30 +02:00
settings.gradle.kts fix(deps): update all non-major dependencies (#19) 2026-11-12 20:30:10 +00:00

6b6t-commons

Common utilities and shared code for 6b6t Minecraft plugins.

Modules

Module Description Javadoc
commons-core Core utilities (time formatting, etc.) API Docs
commons-config ConfigLib YAML configuration utilities API Docs
commons-message MiniMessage formatting and messaging API Docs
commons-commands-core StrokkCommands core with Brigadier API Docs

Database Modules

Module Description Javadoc
commons-database-core Dialect-independent HikariCP connection pooling API Docs
commons-database-mariadb MariaDB/MySQL configuration and support API Docs
commons-database-postgres PostgreSQL configuration and support API Docs
commons-database-redis Redis connectivity with Jedis API Docs

Installation

Prerequisites

  • Latest Java LTS release (currently Java 25)
  • Gradle build tool

Maven Repository

Add the repository to your build.gradle.kts:

repositories {
    mavenCentral()
    maven("https://6b6t.github.io/6b6t-commons/maven")
    // Required for StrokkCommands
    maven("https://eldonexus.de/repository/maven-public/")
    maven("https://eldonexus.de/repository/maven-snapshots/")
}

Artifacts

All artifacts use group ID net.blockhost and version 1.1.0-SNAPSHOT.

dependencies {
    // Core utilities
    implementation("net.blockhost:commons-core:1.1.0-SNAPSHOT")

    // Configuration (ConfigLib)
    implementation("net.blockhost:commons-config:1.1.0-SNAPSHOT")

    // Messaging (MiniMessage)
    implementation("net.blockhost:commons-message:1.1.0-SNAPSHOT")

    // Database - MariaDB (includes core)
    implementation("net.blockhost:commons-database-mariadb:1.1.0-SNAPSHOT")

    // Database - PostgreSQL (includes core)
    implementation("net.blockhost:commons-database-postgres:1.1.0-SNAPSHOT")

    // Database - Redis
    implementation("net.blockhost:commons-database-redis:1.1.0-SNAPSHOT")
}

Documentation

API documentation with usage examples is available in the Javadoc:

Building from Source

git clone https://github.com/6b6t/6b6t-commons.git
cd 6b6t-commons
./gradlew build
./gradlew aggregateJavadoc

CI/CD

License

MIT License - see LICENSE for details.

Local Git checks

Install Lefthook 1.13.6 or newer and Python 3.10 or newer. Run this command once in each clone or linked worktree:

lefthook install

The commit hook checks staged whitespace without changing files or staging content. Before a push, the hook reads Git's exact ref updates and selects checks from the changed paths, including deleted files. New refs and unavailable remote baselines check the complete tree. Check out the commit that you push. Commit or stash tracked and untracked changes first so that checks use the pushed code. Deletion-only pushes do not run code checks. Hook regression tests run for every push with changed files. Documentation-only changes do not compile the application. CI remains enabled.

Use the Java toolchain selected by Gradle. Java, Gradle, and analysis configuration changes run ./gradlew check spotlessCheck --max-workers=6 --no-configuration-cache. These checks compile code, run tests, and run static analysis without publishing artifacts.

Preview all local checks and their selected paths:

python3 scripts/check-push.py --all --dry-run --verbose

Run all checks against the current working tree before committing:

python3 scripts/check-push.py --all

The --all command checks working files directly. It does not require a clean tree. Normal Git pushes require a clean tree and reject a ref that points to another commit.

Renovate groups Java workflow, daemon, and compiler updates and limits them to LTS releases. Run ./gradlew updateDaemonJvm when updating the daemon version to refresh its download URLs.