|
24 | 24 | <maven.compiler.source>1.8</maven.compiler.source>
|
25 | 25 | <maven.compiler.testSource>1.8</maven.compiler.testSource>
|
26 | 26 | <maven.compiler.testTarget>1.8</maven.compiler.testTarget>
|
| 27 | + <shade.classifier>bin</shade.classifier> |
27 | 28 | </properties>
|
28 | 29 |
|
| 30 | + <profiles> |
| 31 | + <profile> |
| 32 | + <id>jvmci</id> |
| 33 | + <activation> |
| 34 | + <property> |
| 35 | + <name>env.JVMCI</name> |
| 36 | + </property> |
| 37 | + </activation> |
| 38 | + <properties> |
| 39 | + <shade.classifier>bin-jvmci</shade.classifier> |
| 40 | + </properties> |
| 41 | + <dependencies> |
| 42 | + <!-- GraalVM runtime --> |
| 43 | + <dependency> |
| 44 | + <groupId>org.graalvm.truffle</groupId> |
| 45 | + <artifactId>truffle-api</artifactId> |
| 46 | + <version>[{{graalVersion}},)</version> |
| 47 | + <scope>runtime</scope> |
| 48 | + </dependency> |
| 49 | + <dependency> |
| 50 | + <groupId>org.graalvm.js</groupId> |
| 51 | + <artifactId>js</artifactId> |
| 52 | + <version>[{{graalVersion}},)</version> |
| 53 | + <scope>runtime</scope> |
| 54 | + </dependency> |
| 55 | + <dependency> |
| 56 | + <groupId>org.graalvm.tools</groupId> |
| 57 | + <artifactId>profiler</artifactId> |
| 58 | + <version>[{{graalVersion}},)</version> |
| 59 | + <scope>runtime</scope> |
| 60 | + </dependency> |
| 61 | + <dependency> |
| 62 | + <groupId>org.graalvm.tools</groupId> |
| 63 | + <artifactId>chromeinspector</artifactId> |
| 64 | + <version>[{{graalVersion}},)</version> |
| 65 | + <scope>runtime</scope> |
| 66 | + </dependency> |
| 67 | + </dependencies> |
| 68 | + <build> |
| 69 | + <plugins> |
| 70 | + <plugin> |
| 71 | + <groupId>org.apache.maven.plugins</groupId> |
| 72 | + <artifactId>maven-dependency-plugin</artifactId> |
| 73 | + <executions> |
| 74 | + <execution> |
| 75 | + <id>copy-graalvm-compiler</id> |
| 76 | + <phase>initialize</phase> |
| 77 | + <goals> |
| 78 | + <goal>copy</goal> |
| 79 | + </goals> |
| 80 | + <configuration> |
| 81 | + <artifactItems> |
| 82 | + <artifactItem> |
| 83 | + <groupId>org.graalvm.compiler</groupId> |
| 84 | + <artifactId>compiler</artifactId> |
| 85 | + <version>{{graalVersion}}</version> |
| 86 | + <type>jar</type> |
| 87 | + <destFileName>compiler.jar</destFileName> |
| 88 | + </artifactItem> |
| 89 | + <artifactItem> |
| 90 | + <groupId>org.graalvm.truffle</groupId> |
| 91 | + <artifactId>truffle-api</artifactId> |
| 92 | + <version>{{graalVersion}}</version> |
| 93 | + <type>jar</type> |
| 94 | + <destFileName>truffle-api.jar</destFileName> |
| 95 | + </artifactItem> |
| 96 | + <artifactItem> |
| 97 | + <groupId>org.graalvm.sdk</groupId> |
| 98 | + <artifactId>graal-sdk</artifactId> |
| 99 | + <version>{{graalVersion}}</version> |
| 100 | + <type>jar</type> |
| 101 | + <destFileName>graal-sdk.jar</destFileName> |
| 102 | + </artifactItem> |
| 103 | + </artifactItems> |
| 104 | + <outputDirectory>target/compiler</outputDirectory> |
| 105 | + </configuration> |
| 106 | + </execution> |
| 107 | + </executions> |
| 108 | + </plugin> |
| 109 | + </plugins> |
| 110 | + </build> |
| 111 | + </profile> |
| 112 | + </profiles> |
| 113 | + |
29 | 114 | <dependencies>
|
30 | 115 | {{#dependencies}}
|
31 | 116 | <dependency>
|
|
117 | 202 | <exclude>META-INF/*.SF</exclude>
|
118 | 203 | <exclude>META-INF/*.DSA</exclude>
|
119 | 204 | <exclude>META-INF/*.RSA</exclude>
|
| 205 | + <exclude>**/module-info.class</exclude> |
120 | 206 | </excludes>
|
121 | 207 | </filter>
|
122 | 208 | </filters>
|
|
133 | 219 | </transformers>
|
134 | 220 | <artifactSet>
|
135 | 221 | </artifactSet>
|
136 |
| - <outputFile>${project.build.directory}/${project.artifactId}-${project.version}-fat.jar</outputFile> |
| 222 | + <outputFile>${project.build.directory}/${project.artifactId}-${project.version}-${shade.classifier}.jar</outputFile> |
137 | 223 | </configuration>
|
138 | 224 | </execution>
|
139 | 225 | </executions>
|
|
0 commit comments