Skip to content

Commit

Permalink
feat: add maven profil
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey committed Jul 2, 2024
1 parent c082ea4 commit a957ae2
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 7 deletions.
51 changes: 45 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,46 @@
</developers>


<profiles>
<profile>
<id>test-containers</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/testcontainers/**/*Test.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/testcontainers/**/*Test.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<properties>
<java.version>21</java.version>

<springdoc.version>2.3.0</springdoc.version>
<rdf4j.version>4.3.9</rdf4j.version>
<xdocreport.version>2.0.4</xdocreport.version>
Expand Down Expand Up @@ -68,11 +105,6 @@
</properties>

<dependencies>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<version>1.17.5</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand Down Expand Up @@ -218,6 +250,12 @@
<artifactId>flexmark-html2md-converter</artifactId>
<version>${flexmark.version}</version>
</dependency>

<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<version>1.17.5</version>
</dependency>
</dependencies>

<build>
Expand Down Expand Up @@ -257,6 +295,7 @@
</executions>
</plugin>


<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;

@SpringBootTest
public class OperationFamily extends WithGraphDBContainer{
public class OperationFamilyTest extends WithGraphDBContainer{

@Autowired
OperationsService operationService;
Expand Down

0 comments on commit a957ae2

Please sign in to comment.