Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: gradle convention plugin #150

Merged
merged 1 commit into from
Jul 8, 2024
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
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
Loading