Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Automate CodeNarc build from Maven's initialize #103

Merged
merged 1 commit into from
Jun 3, 2022
Merged

Automate CodeNarc build from Maven's initialize #103

merged 1 commit into from
Jun 3, 2022

Conversation

cyChop
Copy link
Collaborator

@cyChop cyChop commented Jun 2, 2022

mvn initialize will now call the gradle build for CodeNarc, thus reducing the number of necessary steps to start working on the project.

The initialize can be run on the root project. The only side-effect is that it will start two jacoco-maven-plugin:prepare-agent. Those don't affect the build, but they could be avoided by changing their execution phase (maybe a phase that would execute it only if tests are run?).

.gradle has been added to the root .gitignore (since the command is not run from the same place and results in a .gradle folder that is not ignored), and comments and a new rule have been added.

This proposal aims to relieve the complexity highlighted in #47 .

A possible enhancement would be to make it so those steps only happen when manually called. A solution for that would be to extract those steps in a build-codenarc profile that could only be activated manually (mvn initialize -Pbuild-codenarc).

`mvn initialize` will now call the gradle build for CodeNarc, thus
reducing the number of necessary steps to start working on the project.

The initialize can be run on the root project. The only side-effect is
that it will start two jacoco-maven-plugin:prepare-agent. Those don't
affect the build, but they could be avoided by changing their execution
phase (maybe a phase that would execute it only if tests are run?).

.gradle has been added to the root .gitignore (since the command is not
run from the same place and results in a .gradle folder that is not
ignored), and comments and a new rule have been added.
@jhertout jhertout merged commit 2fc6c14 into cnumr:main Jun 3, 2022
@cyChop cyChop deleted the feature/one-step-codenarc-build branch June 3, 2022 12:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants