Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 4 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ jobs:
distribution: 'zulu'
java-version: 21

- name: Grant execute permission for compile/gradlew
working-directory: ./compile
run: chmod +x gradlew
- name: Set up Gradle
uses: gradle/actions/[email protected]

- name: Build compile-plugin
working-directory: ./compile
run: ./gradlew build

- name: Test
- name: Build plugin
run: ./gradlew build

- name: Set version
Expand All @@ -39,6 +34,5 @@ jobs:
run: echo ${{ steps.set-version.outputs.version }}

- name: Publish plugin
working-directory: ./compile
if: github.event_name == 'push' && endsWith(steps.set-version.outputs.version, 'SNAPSHOT') == false
run: ./gradlew publishPlugins -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}
run: ./gradlew :compile:publishPlugins -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}
14 changes: 2 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,8 @@ jobs:
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Cache Gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up Gradle
uses: gradle/actions/[email protected]

- name: Release ${{ env.RELEASE_VERSION }}
run: |
Expand Down
23 changes: 11 additions & 12 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@ The Doma Compile Plugin is a Gradle plugin that allows annotation processors to

### Building the Plugin
```bash
cd compile && ./gradlew build && cd ..
./gradlew build
```

### Running Tests
The plugin has three test suites:
```bash
# Build the all test projects
./gradlew build
# Run all tests
./gradlew test

# Run specific module tests
./gradlew :compile:test
./gradlew :compile-java-test:test
./gradlew :compile-kotlin-test:test
./gradlew :compile-mix-test:test
```

### Code Formatting
Expand All @@ -26,19 +31,13 @@ The plugin has three test suites:
./gradlew spotlessApply
```

### Running a Single Test
```bash
# With any test project (compile-java-test, compile-kotlin-test, or compile-mix-test)
./gradlew :compile-java-test:test --tests "example.GenerationTest"
```

### Publishing (for maintainers)
```bash
# Release a new version (from master branch only)
cd compile && ./gradlew release && cd ..
./gradlew release

# Publish to Gradle Plugin Portal (handled by CI for non-SNAPSHOT versions)
cd compile && ./gradlew publishPlugins -Pgradle.publish.key=<key> -Pgradle.publish.secret=<secret> && cd..
./gradlew :compile:publishPlugins -Pgradle.publish.key=<key> -Pgradle.publish.secret=<secret>
```

## Architecture
Expand Down
9 changes: 0 additions & 9 deletions compile-java-test/settings.gradle.kts

This file was deleted.

9 changes: 0 additions & 9 deletions compile-kotlin-test/settings.gradle.kts

This file was deleted.

9 changes: 0 additions & 9 deletions compile-mix-test/settings.gradle.kts

This file was deleted.

Binary file removed compile/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 0 additions & 6 deletions compile/gradle/wrapper/gradle-wrapper.properties

This file was deleted.

172 changes: 0 additions & 172 deletions compile/gradlew

This file was deleted.

84 changes: 0 additions & 84 deletions compile/gradlew.bat

This file was deleted.