Skip to content

docs: add AGENTS.md agent guide for the plugin monorepo#1227

Merged
jamesfredley merged 1 commit into
8.0.xfrom
docs/agents-md-8.0.x
May 31, 2026
Merged

docs: add AGENTS.md agent guide for the plugin monorepo#1227
jamesfredley merged 1 commit into
8.0.xfrom
docs/agents-md-8.0.x

Conversation

@jamesfredley
Copy link
Copy Markdown
Contributor

What

Adds an AGENTS.md to the repository root - a guide for AI coding agents (and human contributors) working in this multi-module Grails Spring Security plugin monorepo.

Why

The repository had no AGENTS.md. This adapts the grails-core AGENTS.md and customizes it for this plugin repository, so agents understand the build, module layout, and conventions specific to grails-spring-security rather than treating it as a Grails application.

Contents

  • Quick-reference build/test commands: the gradle-bootstrap step, ./gradlew build [-PskipTests], single-module (:core-plugin:build) and single-test (--tests) invocations, publishToMavenLocal, and the RAT audit (./gradlew rat).
  • Critical rules: jakarta.* over javax.*, @GrailsCompileStatic, Apache license headers (RAT-enforced), no wildcard imports, and grails.plugin.springsecurity.* as the authoritative configuration namespace.
  • Module/directory map derived from settings.gradle (core, acl, cas, ldap, oauth2, rest + token-storage backends, ui, compat, docs, examples).
  • Core plugin layout, Spock testing notes, and the functional-test TESTCONFIG matrix.
  • CI gates (gradle.yml, rat.yml), branch structure, PR guidelines, and pointers to SECURITY.md / THREAT_MODEL.md.

Notes

  • SECURITY.md already exists on 8.0.x and is more detailed and repo-tailored than grails-core's minimal version (it references THREAT_MODEL.md, supported versions, and scope). This PR intentionally leaves it unchanged and adds only AGENTS.md.
  • The new file carries the Apache license header and passes ./gradlew rat locally.

Verification

  • ./gradlew rat - BUILD SUCCESSFUL

Add an AGENTS.md tailored to this multi-module Grails Spring Security
plugin repository, adapted from the grails-core AGENTS.md.

It documents the build/test commands (the gradle-bootstrap step,
single-module and single-test invocations, publishToMavenLocal, and the
RAT license audit), the module/directory map from settings.gradle, the
core plugin layout, Spock testing with the functional-test TESTCONFIG
matrix, CI gates, branch structure, PR guidelines, and pointers to
SECURITY.md and THREAT_MODEL.md.

Carries the Apache license header so it passes `./gradlew rat`.

Assisted-by: claude-code:claude-4.8-opus
Copilot AI review requested due to automatic review settings May 31, 2026 01:03
@jamesfredley jamesfredley merged commit 559ba24 into 8.0.x May 31, 2026
12 of 13 checks passed
@jamesfredley jamesfredley deleted the docs/agents-md-8.0.x branch May 31, 2026 01:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants