Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7c43f8d
Propose collapsing the repo into a single native ict binary
benfortuna Sep 5, 2026
e56a952
Record native spike findings and complete task 0.1
benfortuna Sep 5, 2026
0c1968d
Record tracing-agent findings and complete task 0.2
benfortuna Sep 5, 2026
3fa269d
Record per-dependency native costs and complete task 0.3
benfortuna Sep 5, 2026
9370351
Decide on plain GraalVM and complete task 0.4
benfortuna Sep 5, 2026
ce50bdb
Remove the mcp, agent and MCP sample modules
benfortuna Sep 5, 2026
50f60bf
Fold the core vocabulary module into the cli as the vocab package
benfortuna Sep 5, 2026
af54fba
Collapse the cli module into a single root project named ict
benfortuna Sep 5, 2026
28fdc29
Drop the module descriptor and OSGi packaging
benfortuna Sep 5, 2026
70da472
Replace log4j with slf4j-simple on stderr
benfortuna Sep 5, 2026
b6f352b
Quarantine the hand-written command tree under src/legacy
benfortuna Sep 5, 2026
4ca7b6e
Map every quarantined command to its registry tuple
benfortuna Sep 5, 2026
1920491
Define the operation registry types
benfortuna Sep 5, 2026
0af43eb
Add the operation Registry
benfortuna Sep 5, 2026
ce42739
Build the handler Context from CommandConfig
benfortuna Sep 5, 2026
5b8d944
Enforce the admission bar with a registry conformance spec
benfortuna Sep 6, 2026
a7f4259
Admit the first cohort of operations to the registry
benfortuna Sep 6, 2026
c028566
Add the surface-neutral Renderer
benfortuna Sep 6, 2026
0deea54
Derive the ict command line from the operation registry
benfortuna Oct 11, 2026
e4a9af4
Serve the registry as MCP tools with `ict mcp`
benfortuna Oct 11, 2026
50e7d74
Build ict as a single native executable, checked by a smoke suite
benfortuna Oct 11, 2026
7cefb57
Release native executables from ict-* tags
benfortuna Oct 11, 2026
0b84d62
Rewrite the README and protocol docs around the registry
benfortuna Oct 11, 2026
437b2b7
Archive the single-native-binary change
benfortuna Oct 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,3 @@ CHANGELOG_START_TAG=ical4j-command-0.1.0
CHANGELOG_END_TAG=HEAD

GRADLE_VERSION=8.4

# Cloudflare R2
AWS_PROFILE?=r2
AWS_ENDPOINT?=https://595c17c39386dfc0d142476ebc3798e0.r2.cloudflarestorage.com
DIST_BUCKET=s3://ical4j-files
59 changes: 42 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,51 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
# JVM tests on every push and pull request, plus one native smoke run on linux x64. The full
# native matrix runs only on release tags (release.yml), since native builds are slow.

name: Java CI with Gradle
name: Build

on: [push]
on:
push:
pull_request:

permissions: read-all

jobs:
build:

test:
name: JVM tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Full history + tags so axion-release resolves the version.
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v4

- name: Test and JVM smoke run
run: ./gradlew build jvmSmoke

native-smoke:
name: Native smoke (linux x64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 17
# - name: Grant execute permission for gradlew
# run: chmod +x gradlew
- name: Build with Gradle
# run: ./gradlew build
uses: eskatos/gradle-command-action@v1
with:
arguments: build
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: graalvm/setup-graalvm@v1
with:
java-version: '25'
distribution: graalvm-community
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: gradle/actions/setup-gradle@v4

- name: Build native executable
run: ./gradlew nativeCompile --no-configuration-cache

- name: Smoke suite
run: ./gradlew nativeSmoke --no-configuration-cache

- name: Startup time
run: ./gradlew nativeStartup --no-configuration-cache
22 changes: 17 additions & 5 deletions .github/workflows/publish-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,24 @@ on:

permissions:
contents: read
checks: write
pull-requests: write

jobs:
test:
uses: ical4j/ical4j/.github/workflows/test.yml@develop
name: Test
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v4
- name: Test and JVM smoke run
run: ./gradlew check jvmSmoke

publish:
name: Publish Artifact
Expand All @@ -31,9 +43,9 @@ jobs:
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- uses: gradle/actions/setup-gradle@v4

# The single org.ical4j:ict jar; the native executables are released from tags only.
- name: Publish snapshot to Central Portal
run: ./gradlew publishToMavenCentral --no-configuration-cache
env:
Expand Down
94 changes: 94 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# On an `ict-<version>` tag: build and smoke-test the native executable on each platform, attach
# them with SHA-256 checksums to a GitHub Release, and publish the jar to Maven Central.

name: Release

on:
push:
tags:
- 'ict-*'

permissions:
contents: read

jobs:
native:
name: Native ${{ matrix.os }}-${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
include:
- { runner: ubuntu-latest, os: linux, arch: x64, ext: '' }
- { runner: ubuntu-24.04-arm, os: linux, arch: arm64, ext: '' }
- { runner: macos-latest, os: macos, arch: arm64, ext: '' }
- { runner: windows-latest, os: windows, arch: x64, ext: '.exe' }
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: graalvm/setup-graalvm@v1
with:
java-version: '25'
distribution: graalvm-community
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: gradle/actions/setup-gradle@v4

- name: Build and smoke-test the native executable
run: ./gradlew nativeCompile nativeSmoke --no-configuration-cache

- name: Name the executable for the release
shell: bash
run: |
version="${GITHUB_REF_NAME#ict-}"
mkdir dist
cp "build/native/nativeCompile/ict${{ matrix.ext }}" "dist/ict-${version}-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.ext }}"

- uses: actions/upload-artifact@v4
with:
name: ict-${{ matrix.os }}-${{ matrix.arch }}
path: dist/*
if-no-files-found: error

github-release:
name: GitHub Release
needs: native
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true

- name: Checksums
working-directory: dist
run: sha256sum ict-* > "ict-${GITHUB_REF_NAME#ict-}-checksums.sha256"

- name: Create the release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create "$GITHUB_REF_NAME" dist/* --repo "$GITHUB_REPOSITORY" --title "ict ${GITHUB_REF_NAME#ict-}" --generate-notes

maven-central:
name: Publish to Maven Central
needs: native
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v4

- name: Publish release to Central Portal
run: ./gradlew publishToMavenCentral --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.CENTRAL_PORTAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.CENTRAL_PORTAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_SIGNING_PASSWORD }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ gradle-app.setting
*.iml

# Spring AI weather demo build artifacts
**/model-context-protocol/**/target/

# Claude Code workspace files
.claude/
# particulars workspace pointer (machine-specific)
.dkf
22 changes: 15 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
SHELL:=/bin/bash
include .env
# Optional local settings (GRADLE_VERSION, GRAALVM_HOME, SDKROOT, ...).
-include .env
export GRAALVM_HOME SDKROOT

NEXT_VERSION=$(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
CHANGE_JUSTIFICATION=$(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))

.PHONY: all gradlew clean check build changelog currentVersion markNextVersion tag push run \
verify release publish
.PHONY: all gradlew clean check test build installDist dist native smoke changelog currentVersion \
markNextVersion install verify release publish

all: check

Expand All @@ -30,9 +32,13 @@ installDist:
dist:
./gradlew distZip

uploadDist: dist
AWS_PROFILE=$(AWS_PROFILE) aws s3 sync --endpoint=$(AWS_ENDPOINT) --acl public-read --exclude "*" --include "*.zip" \
build/distributions $(DIST_BUCKET)/releases
# Native executable at build/native/nativeCompile/ict. Needs GRAALVM_HOME (GraalVM CE for JDK 25+).
native:
$(if $(GRAALVM_HOME),JAVA_HOME=$(GRAALVM_HOME)) ./gradlew nativeCompile --no-configuration-cache

# Smoke suite and startup time against the native executable built by `make native`.
smoke: native
./gradlew nativeSmoke nativeStartup -PictBinary=build/native/nativeCompile/ict

changelog:
git log "$(CHANGELOG_START_TAG)...$(CHANGELOG_END_TAG)" \
Expand All @@ -48,8 +54,10 @@ install:
./gradlew publishToMavenLocal

verify:
./gradlew verify
./gradlew check jvmSmoke

# Tags ict-<version> and pushes it; release.yml then builds and smoke-tests the native
# executables on each platform, attaches them to a GitHub Release and publishes the jar.
release: verify
./gradlew release

Expand Down
Loading
Loading