Skip to content

Commit

Permalink
[MCOMPILER-381] - Refactor incremental detection
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Solórzano <jorsol@gmail.com>
  • Loading branch information
jorsol committed Mar 3, 2023
1 parent b225b1c commit 2660e16
Show file tree
Hide file tree
Showing 4 changed files with 172 additions and 109 deletions.
16 changes: 6 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,6 @@ under the License.
<invoker.junitPackageName>org.apache.maven.plugins.compiler.its</invoker.junitPackageName>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<!-- to remove with plexus-java upgrade -->
<groupId>com.thoughtworks.qdox</groupId>
<artifactId>qdox</artifactId>
<version>2.0.3</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
Expand Down Expand Up @@ -123,6 +113,12 @@ under the License.
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-shared-utils</artifactId>
<version>3.3.4</version>
<exclusions>
<exclusion>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
Expand Down
2 changes: 1 addition & 1 deletion src/it/MCOMPILER-275_separate-moduleinfo/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def log = new File( basedir, 'build.log').text

assert log.count( "[INFO] Toolchain in maven-compiler-plugin: JDK" ) == 1

assert log.count( "[INFO] Changes detected - recompiling the module!" ) == 3
assert log.count( "[INFO] Changes detected - recompiling the module" ) == 3

// major_version: 52 = java8 -> execution id "base-compile"
assert new File( basedir, 'target/classes/com/foo/MyClass.class' ).bytes[7] == 52
Expand Down
2 changes: 1 addition & 1 deletion src/it/MCOMPILER-500-package-info-incr/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def logFile = new File( basedir, 'build.log' )
assert logFile.exists()
content = logFile.text

assert 1 == content.count( 'Changes detected - recompiling the module!' )
assert 1 == content.count( 'Changes detected - recompiling the module' )
assert 1 == content.count( 'Nothing to compile - all classes are up to date' )


0 comments on commit 2660e16

Please sign in to comment.