|
69 | 69 | <plugin>
|
70 | 70 | <groupId>org.apache.maven.plugins</groupId>
|
71 | 71 | <artifactId>maven-compiler-plugin</artifactId>
|
72 |
| - <version>3.11.0</version> |
73 |
| - <configuration> |
74 |
| - <compilerArgs> |
75 |
| - <arg>-h</arg> |
76 |
| - <arg>src/main/cpp</arg> |
77 |
| - </compilerArgs> |
78 |
| - </configuration> |
| 72 | + <version>3.13.0</version> |
| 73 | + <executions> |
| 74 | + <!-- We have to perform a separate build pass for cuda classifier --> |
| 75 | + <execution> |
| 76 | + <id>gpu</id> |
| 77 | + <phase>compile</phase> |
| 78 | + <goals><goal>compile</goal></goals> |
| 79 | + <configuration> |
| 80 | + <compilerArgs> |
| 81 | + <arg>-h</arg> |
| 82 | + <arg>src/main/cpp</arg> |
| 83 | + </compilerArgs> |
| 84 | + <outputDirectory>${project.build.outputDirectory}_cuda</outputDirectory> |
| 85 | + </configuration> |
| 86 | + </execution> |
| 87 | + </executions> |
| 88 | + </plugin> |
| 89 | + <plugin> |
| 90 | + <artifactId>maven-resources-plugin</artifactId> |
| 91 | + <version>3.3.1</version> |
| 92 | + <executions> |
| 93 | + <!-- Copy custom cuda libs to the output directory --> |
| 94 | + <execution> |
| 95 | + <id>copy-resources</id> |
| 96 | + <phase>process-classes</phase> |
| 97 | + <goals> |
| 98 | + <goal>copy-resources</goal> |
| 99 | + </goals> |
| 100 | + <configuration> |
| 101 | + <outputDirectory>${project.build.outputDirectory}_cuda</outputDirectory> |
| 102 | + <resources> |
| 103 | + <resource> |
| 104 | + <directory>${basedir}/src/main/resources_cuda_linux/</directory> |
| 105 | + <includes> |
| 106 | + <include>**/*.*</include> |
| 107 | + </includes> |
| 108 | + </resource> |
| 109 | + </resources> |
| 110 | + </configuration> |
| 111 | + </execution> |
| 112 | + </executions> |
79 | 113 | </plugin>
|
80 | 114 |
|
81 | 115 | </plugins>
|
|
139 | 173 | </plugin>
|
140 | 174 | <plugin>
|
141 | 175 | <groupId>org.apache.maven.plugins</groupId>
|
142 |
| - <artifactId>maven-assembly-plugin</artifactId> |
143 |
| - <version>3.3.0</version> |
| 176 | + <artifactId>maven-jar-plugin</artifactId> |
| 177 | + <version>3.4.2</version> |
144 | 178 | <executions>
|
| 179 | + <!-- Pick class files AND libs from custom output directory --> |
145 | 180 | <execution>
|
146 |
| - <id>cuda-linux</id> |
| 181 | + <id>cuda</id> |
147 | 182 | <phase>package</phase>
|
148 | 183 | <goals>
|
149 |
| - <goal>single</goal> |
| 184 | + <goal>jar</goal> |
150 | 185 | </goals>
|
151 | 186 | <configuration>
|
152 |
| - <descriptors> |
153 |
| - <descriptor>src/main/assembly/cuda-linux.xml</descriptor> |
154 |
| - </descriptors> |
155 |
| - <appendAssemblyId>false</appendAssemblyId> |
156 |
| - <finalName>${project.artifactId}-${project.version}-cuda12-linux-x86_64</finalName> |
157 |
| - <attach>true</attach> |
158 |
| - <classifier>cuda12-linux-x86_64</classifier> |
| 187 | + <classifier>cuda12-linux-x86-64</classifier> |
| 188 | + <classesDirectory>${project.build.outputDirectory}_cuda</classesDirectory> |
159 | 189 | </configuration>
|
160 | 190 | </execution>
|
161 | 191 | </executions>
|
|
0 commit comments