Skip to content

Commit

Permalink
Merge pull request #42017 from gsmet/mailer-java-17
Browse files Browse the repository at this point in the history
Simplify mailer test setup now that we are Java 17+
  • Loading branch information
gsmet authored Jul 20, 2024
2 parents 6ece690 + b5e5cd4 commit 92d9a4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 38 deletions.
37 changes: 0 additions & 37 deletions extensions/mailer/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,42 +60,5 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>java-17</id>
<activation>
<jdk>[17,)</jdk>
</activation>

<properties>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.release>17</maven.compiler.release>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-java17-directory</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/test/java17</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

import jakarta.inject.Inject;

import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
Expand All @@ -10,7 +12,6 @@
import io.quarkus.qute.CheckedTemplate;
import io.quarkus.test.QuarkusUnitTest;
import io.vertx.ext.mail.MailMessage;
import jakarta.inject.Inject;

public class MailTemplateRecordTest {

Expand Down

0 comments on commit 92d9a4e

Please sign in to comment.