[
https://issues.apache.org/jira/browse/FINERACT-1198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17227926#comment-17227926
]
Petri Tuomola commented on FINERACT-1198:
-----------------------------------------
Some observations on this when I was working on something else:
* Our addition of running spotlessApply automatically every time breaks the
incremental build: after spotlessApply, every build is considered full even if
there are no changes made. In my view we should revert this and just run
spotlessCheck - people can then run spotlessApply manually as required.
* RAT considers the build incremental because the Swagger API yaml files have
been modified. Not sure if this will be a problem as long as it doesn't also
trigger Java compile.
* Full Java compile is triggered because the output files have been modified
by OpenJPA resolve task. I think this is the main issue. Not sure how to work
around it... doubt OpenJPA plugin has a mode to work on changed files only -
and we don't want to make running this one manual.
> Gradle incremental build is broken
> ----------------------------------
>
> Key: FINERACT-1198
> URL: https://issues.apache.org/jira/browse/FINERACT-1198
> Project: Apache Fineract
> Issue Type: Bug
> Components: Build
> Reporter: Michael Vorburger
> Priority: Blocker
>
> One of the reasons why Gradle is (supposedly) so much cooler than e.g. Maven
> is that it can be really support and support very fast "incremental" builds
> (only rebuild what has changed).
> I have the impression that doesn't really work in Fineract, and suppose
> that's not really Gradle's (core) fault, but some plugin which screws this
> up? OpenJPA Enhancer, SpotBugs... presumably they all have to "play along"
> for this to work perfectly?
> My Gradle foo isn't (nearly) good enough to know if it would be possible to
> "fix" this, and how hard this may be, but filing an issue is perhaps a start
> for getting input from people more knowledgeable about this.
> [~aleks] and/or [~ptuomola] perhaps you have ideas about this.
> [~aalmiray] as per chat during ApacheCon, not sure if this is the kind of
> thing you may enjoy helping with?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)