Skip to content

Commit

Permalink
Merge pull request #150 from refinedmods/feat/GH-137/convention
Browse files Browse the repository at this point in the history
feat: gradle convention plugin
  • Loading branch information
raoulvdberge authored Jul 8, 2024
2 parents 3dd0432 + b10934d commit 90f92cb
Show file tree
Hide file tree
Showing 23 changed files with 538 additions and 391 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Build and test
run: ./gradlew build codeCoverageReport
run: ./gradlew build codeCoverageReportAggregate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Gametests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
- name: Setup Java
uses: refinedmods/refinedarchitect/.github/actions/setup-java@develop
- name: Build documentation
run: ./gradlew allJavadoc
run: ./gradlew javadocAggregate
- name: Publish documentation
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- Replaced the `helper.gradle` file with a Gradle convention plugin.
- Support for Parchment.

## [0.15.3] - 2024-07-06

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Refined Architect is a project that is used by all the mods of Refined Mods.

It contains GitHub workflows, version management and Gradle helpers to help making (cross-platform) mods easier.
It contains GitHub workflows, version management and a Gradle convention plugin to help making (cross-platform) mods easier.

See [refinedarchitect-template](https://github.com/refinedmods/refinedarchitect-template) for an example.

Expand Down
5 changes: 0 additions & 5 deletions build.gradle

This file was deleted.

19 changes: 19 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
subprojects {
group = "com.refinedmods.refinedarchitect"
}

allprojects {
version = "0.0.0"

if (System.getenv("GITHUB_SHA") != null) {
version = "0.0.0+" + System.getenv("GITHUB_SHA").substring(0, 7)
}

if (System.getenv("RELEASE_VERSION") != null) {
version = System.getenv("RELEASE_VERSION")
}
}

tasks.register("codeCoverageReportAggregate") {
// no op
}
Loading

0 comments on commit 90f92cb

Please sign in to comment.