一键导入
gradle-build
Gradle build configuration for Xeres including build commands, version management, module structure, and key plugins.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Gradle build configuration for Xeres including build commands, version management, module structure, and key plugins.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
JUnit 6 testing patterns for Xeres including Mockito with constructor injection, test fixtures via *Fakes.java classes, and AssertJ assertions.
ArchUnit architecture rules enforced in Xeres including common module rules (logging, utility classes), app module rules (no field injection, RsService naming), and UI module rules (WindowController naming).
Cryptography patterns for Xeres including PGP operations, key generation, and hash functions with best practices.
DTO and mapper patterns for Xeres using Java records, canonical constructors with validation, and static mapper utility classes.
Flyway SQL migration patterns for Xeres including naming conventions, H2 database patterns, enum types, foreign keys, and best practices.
Code style, naming conventions, license headers, and patterns for Xeres Java project. Covers Allman braces, utility classes, package structure, and field injection rules.
| name | gradle-build |
| description | Gradle build configuration for Xeres including build commands, version management, module structure, and key plugins. |
Multi-module Gradle project:
Xeres/
├── app/ - Spring Boot application
├── ui/ - JavaFX desktop UI
├── common/ - Shared code
├── build.gradle - Root configuration
└── settings.gradle
# Run the application
./gradlew bootRun
# Build without tests
./gradlew build -x test
# Run tests
./gradlew test
# Run UI tests specifically
./gradlew :ui:test
# Package application (MSI on Windows, .deb on Linux)
./gradlew :app:jpackage
# Create portable zip
./gradlew :app:jpackage -Pjpackage.portable=true
# Build Docker image
./gradlew :app:bootBuildImage
# Clean build
./gradlew clean
Versions are defined in gradle/libs.version.toml.
Never modify version numbers directly. Update in root libs.version.toml.
app → common
ui → common
app ✗→ ui (forbidden by archunit)
java - Java compilationapplication - Runnable applicationorg.springframework.boot - Spring Bootio.github.goooler.java - BOM managementjacoco - Code coverageorg.openjfx.javafxplugin - JavaFXSubprojects inherit a common configuration from root build.gradle. Module-specific settings go in app/build.gradle, ui/build.gradle, etc.
# Development mode
./gradlew bootRun
# With specific JVM args
./gradlew bootRun -PjvmArgs="-Xmx512m"