|
47 | 47 | <version>1.8.1</version>
|
48 | 48 | <scope>test</scope>
|
49 | 49 | </dependency>
|
| 50 | + <dependency> |
| 51 | + <groupId>org.jetbrains.kotlinx</groupId> |
| 52 | + <artifactId>atomicfu</artifactId> |
| 53 | + <version>${atomicfu.version}</version> |
| 54 | + <scope>provided</scope> |
| 55 | + </dependency> |
50 | 56 | </dependencies>
|
51 | 57 |
|
52 | 58 | <build>
|
53 | 59 | <sourceDirectory>src/main/kotlin</sourceDirectory>
|
54 | 60 | <testSourceDirectory>src/test/kotlin</testSourceDirectory>
|
55 | 61 |
|
56 |
| - |
57 | 62 | <plugins>
|
| 63 | + <!-- compile Kotlin files to staging directory --> |
| 64 | + <plugin> |
| 65 | + <groupId>org.jetbrains.kotlin</groupId> |
| 66 | + <artifactId>kotlin-maven-plugin</artifactId> |
| 67 | + <version>${kotlin.version}</version> |
| 68 | + <executions> |
| 69 | + <execution> |
| 70 | + <id>compile</id> |
| 71 | + <phase>compile</phase> |
| 72 | + <goals> |
| 73 | + <goal>compile</goal> |
| 74 | + </goals> |
| 75 | + <configuration> |
| 76 | + <output>${project.build.directory}/classes-atomicfu</output> |
| 77 | + </configuration> |
| 78 | + </execution> |
| 79 | + </executions> |
| 80 | + </plugin> |
| 81 | + <!-- transform classes with AtomicFU plugin --> |
| 82 | + <plugin> |
| 83 | + <groupId>org.jetbrains.kotlinx</groupId> |
| 84 | + <artifactId>atomicfu-maven-plugin</artifactId> |
| 85 | + <version>${atomicfu.version}</version> |
| 86 | + <executions> |
| 87 | + <execution> |
| 88 | + <goals> |
| 89 | + <goal>transform</goal> |
| 90 | + </goals> |
| 91 | + <configuration> |
| 92 | + <verbose>true</verbose> |
| 93 | + <input>${project.build.directory}/classes-atomicfu</input> |
| 94 | + </configuration> |
| 95 | + </execution> |
| 96 | + </executions> |
| 97 | + </plugin> |
| 98 | + <!-- additional configuration for tests --> |
58 | 99 | <plugin>
|
59 | 100 | <artifactId>maven-surefire-plugin</artifactId>
|
60 | 101 | <executions>
|
61 | 102 | <!-- fork tests under jdk 1.6 as an additional execution -->
|
62 | 103 | <execution>
|
63 | 104 | <id>jdk16-test</id>
|
64 | 105 | <phase>test</phase>
|
65 |
| - <goals><goal>test</goal></goals> |
| 106 | + <goals> |
| 107 | + <goal>test</goal> |
| 108 | + </goals> |
66 | 109 | <configuration>
|
67 | 110 | <forkMode>once</forkMode>
|
68 | 111 | <jvm>${env.JDK_16}/bin/java</jvm>
|
69 | 112 | <argLine>-ea -Xmx1g -Xms1g -Djava.security.manager=kotlinx.coroutines.experimental.TestSecurityManager</argLine>
|
70 | 113 | <excludes>
|
71 | 114 | <exclude>**/*LinearizabilityTest.*</exclude>
|
| 115 | + <exclude>**/*LFTest.java</exclude> |
72 | 116 | </excludes>
|
73 | 117 | </configuration>
|
74 | 118 | </execution>
|
| 119 | + <!-- test lock-freedom on un-processed files --> |
| 120 | + <execution> |
| 121 | + <id>lockfreedom-test</id> |
| 122 | + <phase>test</phase> |
| 123 | + <goals> |
| 124 | + <goal>test</goal> |
| 125 | + </goals> |
| 126 | + <configuration> |
| 127 | + <forkMode>once</forkMode> |
| 128 | + <classesDirectory>${project.build.directory}/classes-atomicfu</classesDirectory> |
| 129 | + <includes> |
| 130 | + <include>**/*LFTest.java</include> |
| 131 | + </includes> |
| 132 | + </configuration> |
| 133 | + </execution> |
75 | 134 | </executions>
|
76 | 135 | </plugin>
|
77 | 136 | <plugin>
|
|
0 commit comments