Skip to content

Instantly share code, notes, and snippets.

@sleicht
Last active March 24, 2023 09:17
Show Gist options
  • Save sleicht/ce3c0110e52e95f728500dc2d33261d9 to your computer and use it in GitHub Desktop.
Save sleicht/ce3c0110e52e95f728500dc2d33261d9 to your computer and use it in GitHub Desktop.
Small workaround to be able to import integration test folder into IntelliJ
Subject: [PATCH] #1924 integrationtest
---
Index: integrationtest/src/test/resources/pom.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/integrationtest/src/test/resources/pom.xml b/integrationtest/src/test/resources/pom.xml
--- a/integrationtest/src/test/resources/pom.xml (revision ed826f39550db8a442305adae2922f99c3a512e1)
+++ b/integrationtest/src/test/resources/pom.xml (date 1679649298985)
@@ -13,7 +13,7 @@
<parent>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-parent</artifactId>
- <version>${mapstruct.version}</version>
+ <version>1.6.0-SNAPSHOT</version>
<relativePath>../../../../parent/pom.xml</relativePath>
</parent>
@@ -23,9 +23,9 @@
<name>MapStruct Integration Test Parent</name>
<properties>
- <mapstruct.version>${mapstruct.version}</mapstruct.version>
+ <mapstruct.version>1.6.0-SNAPSHOT</mapstruct.version>
<compiler-id></compiler-id>
- <compiler-source-target-version></compiler-source-target-version>
+ <compiler-source-target-version>1.8</compiler-source-target-version>
<!-- As Mapstruct has java 6 requirement we need to use AssertJ 1.x which is compatible with java 6 -->
<assertj.version>1.7.1</assertj.version>
</properties>
@@ -44,7 +44,7 @@
<configuration>
<compilerArgument
combine.self="override"></compilerArgument>
- <compilerId>\${compiler-id}</compilerId>
+ <compilerId>${compiler-id}</compilerId>
</configuration>
<dependencies>
<dependency>
@@ -60,7 +60,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mapstruct-processor</artifactId>
- <version>${mapstruct.version}</version>
+ <version>1.6.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
@@ -77,12 +77,12 @@
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgument combine.self="override"></compilerArgument>
- <compilerId>\${compiler-id}</compilerId>
+ <compilerId>${compiler-id}</compilerId>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>${project.groupId}</groupId>
<artifactId>mapstruct-processor</artifactId>
- <version>${mapstruct.version}</version>
+ <version>1.6.0-SNAPSHOT</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
@@ -127,7 +127,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mapstruct-processor</artifactId>
- <version>${mapstruct.version}</version>
+ <version>1.6.0-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
@@ -168,7 +168,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mapstruct</artifactId>
- <version>${mapstruct.version}</version>
+ <version>1.6.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
@@ -191,8 +191,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <source>\${compiler-source-target-version}</source>
- <target>\${compiler-source-target-version}</target>
+ <source>${compiler-source-target-version}</source>
+ <target>${compiler-source-target-version}</target>
</configuration>
</plugin>
<plugin>
Index: integrationtest/src/test/resources/immutablesBuilderTest/extras/pom.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/integrationtest/src/test/resources/immutablesBuilderTest/extras/pom.xml b/integrationtest/src/test/resources/immutablesBuilderTest/extras/pom.xml
--- a/integrationtest/src/test/resources/immutablesBuilderTest/extras/pom.xml (revision ed826f39550db8a442305adae2922f99c3a512e1)
+++ b/integrationtest/src/test/resources/immutablesBuilderTest/extras/pom.xml (date 1679648374492)
@@ -23,9 +23,9 @@
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
- <version>${mapstruct.version}</version>
+ <version>1.6.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
-</project>
\ No newline at end of file
+</project>
Index: integrationtest/src/test/resources/immutablesBuilderTest/mapper/pom.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/integrationtest/src/test/resources/immutablesBuilderTest/mapper/pom.xml b/integrationtest/src/test/resources/immutablesBuilderTest/mapper/pom.xml
--- a/integrationtest/src/test/resources/immutablesBuilderTest/mapper/pom.xml (revision ed826f39550db8a442305adae2922f99c3a512e1)
+++ b/integrationtest/src/test/resources/immutablesBuilderTest/mapper/pom.xml (date 1679648374478)
@@ -24,6 +24,7 @@
<dependency>
<groupId>org.immutables</groupId>
<artifactId>value</artifactId>
+ <version>2.5.6</version>
<scope>provided</scope>
</dependency>
<dependency>
@@ -32,4 +33,4 @@
<version>1.0.0</version>
</dependency>
</dependencies>
-</project>
\ No newline at end of file
+</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment