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

Reproducer for 'tycho-compiler-jdt unable to compile test code when module-info.java is present' / Issue 230 #809

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>tycho-its-project.compiler.mavenCompilerPlugin.moduleWithTests</groupId>
<artifactId>c.m.m</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<compilerId>jdt</compilerId>
<source>17</source>
<target>17</target>
</configuration>
<dependencies>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-jdt</artifactId>
<version>${tycho-version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package ex;
public class A {}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module ex {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package ex;
class ATest {}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ public void testJDTCompilerId() throws Exception {
verifier.verifyTextInLog("field Foo.unused is not used");
}

@Test
public void testMavenCompilerPluginModuleWithTests() throws Exception {
Verifier verifier = getVerifier("compiler.mavenCompilerPlugin.moduleWithTests", false);
verifier.executeGoal("verify");
verifier.verifyErrorFreeLog();
}

@Test
public void testAdditionalBundles() throws Exception {
Verifier verifier = getVerifier("compiler.additional.bundles", true);
Expand Down
Loading