Incremental compilation always recompiles all
See original GitHub issueI always get this:
Pruning sources from previous analysis, due to incompatible CompileSetup.
and a full recompile.
My pom.xml is:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>${build.jdk.version}</source>
<target>${build.jdk.version}</target>
<encoding>UTF-8</encoding>
<compilerArgs>
<arg>--add-modules</arg><arg>ALL-SYSTEM</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>${version.scala-maven-plugin}</version>
<configuration>
<compilerPlugins>
<compilerPlugin>
<groupId>com.artima.supersafe</groupId>
<artifactId>supersafe_${version.scalalibs}</artifactId>
<version>${version.supersafe}</version>
</compilerPlugin>
</compilerPlugins>
<jvmArgs>
<jvmArg>-Xms64m</jvmArg>
<jvmArg>-Xss4m</jvmArg>
<jvmArg>-Xmx2g</jvmArg>
</jvmArgs>
<args>
<arg>-release</arg>
<arg>${build.jdk.version}</arg>
</args>
<scalaVersion>${version.scalalibs}</scalaVersion>
<recompileMode>incremental</recompileMode>
</configuration>
</plugin>
version.scalalibs=2.12.7 build.jdk.version=10 version.supersafe=1.1.7 version.scala-maven-plugin=3.4.4
Any hints?
Issue Analytics
- State:
- Created 5 years ago
- Comments:34 (9 by maintainers)
Top Results From Across the Web
MCUX 11.0.1 - Incremental build recompiles everything always
Solved: So this has started happening to me in just the past week, with one of my longstanding projects, and I have no...
Read more >Understanding Incremental Recompilation - SBT
The incremental compiler extracts all Symbols given compilation unit depends on (refers to) and then tries to map them back to corresponding source/class...
Read more >Maven compiler recompile all files instead modified
Keep in mind that with this setting it does the simple incremental compilation, but it is not very usefull since it doesn't recompile...
Read more >Incremental compilation in Gradle 4 vs. 5 - Help/Discuss
Incremental compilation correctly realized that no other file needed to be compiled. However in 5.3, Gradle appears to recompile all classes ...
Read more >A New Approach to Incremental Compilation in Kotlin
All of these advancements decrease the number of necessary full-module and file recompilations, making the overall compilation time faster.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
if you participate in Scala OSS and watch conference talks, it’s easy to get the impression that sbt use is near-universal.
but if you talk to people who are just quietly using Scala at work, you get a different impression: Maven and Gradle use seems rather common, especially at big companies. (in a Java shop, it can be easier to get a new language in the door than it is to convince co-workers to switch build tools.)
@jvican
Yes, it depends of the time window (I’m in France, and Friday is often a better day for a call with me, less constraint). FYI Scala, is no longer my daily job or my favorite language.