Files
back/AGENTS.md
T
2026-09-29 23:18:55 +03:00

1.7 KiB

AGENTS.md

Backend service of the gorodar project (group ru.gorodar, version 0.0.1-SNAPSHOT). Early-stage skeleton: Gradle build is configured, but src/ does not exist yet — expect to create the standard Spring Boot layout (src/main/java, src/main/resources, src/test/java).

Stack

  • Java 25 (Gradle toolchain; auto-downloaded if not installed locally)
  • Spring Boot 4.1.1, Gradle 9.6.0 wrapper
  • Spring Web MVC, Data JPA, Liquibase, OAuth2 client security, Actuator
  • springdoc-openapi (Swagger UI), Lombok

Commands

./gradlew build      # full build incl. tests
./gradlew test       # tests only (JUnit 5 via useJUnitPlatform)
./gradlew bootRun    # run the application

On Windows, gradlew.bat is equivalent (it is git-ignored but present locally).

Conventions and gotchas

  • Spring Boot 4 starter names: spring-boot-starter-webmvc, spring-boot-starter-security-oauth2-client, and matching *-test starters. Do not "fix" them to Boot 3 names (spring-boot-starter-web, spring-boot-starter-oauth2-client) — those do not exist in Boot 4.
  • Lombok: declared as compileOnly + annotationProcessor (plus test variants). Keep this pattern when adding modules; plain implementation breaks annotation processing.
  • Liquibase: schema changes go through Liquibase changelogs under src/main/resources (default db/changelog), not ad-hoc DDL.
  • No settings.gradle: single-project build; the project name falls back to the directory name (back). Add one only if the build becomes multi-module.
  • Line endings (.gitattributes): gradlew is forced to LF, *.bat to CRLF, *.jar is binary. Preserve this when adding scripts.
  • .idea/ and gradlew.bat are git-ignored; do not commit them.