|
1 |
| -<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
3 |
| - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
4 | 4 |
|
5 | 5 | <modelVersion>4.0.0</modelVersion>
|
6 | 6 |
|
|
15 | 15 | <name>openHAB Add-ons :: Bundles :: Automation :: Python Scripting</name>
|
16 | 16 |
|
17 | 17 | <properties>
|
18 |
| - <bnd.importpackage> |
19 |
| - !sun.misc.*, |
| 18 | + <bnd.importpackage>!sun.misc.*, |
20 | 19 | !sun.reflect.*,
|
21 | 20 | !com.sun.management.*,
|
22 | 21 | !jdk.internal.reflect.*,
|
23 |
| - !jdk.vm.ci.services |
24 |
| - </bnd.importpackage> |
| 22 | + !jdk.vm.ci.services</bnd.importpackage> |
25 | 23 |
|
26 | 24 | <graalpy.version>24.1.2</graalpy.version>
|
27 | 25 | </properties>
|
28 | 26 |
|
| 27 | + <dependencies> |
| 28 | + <!-- Graal Polyglot Framework --> |
| 29 | + <dependency> |
| 30 | + <groupId>org.graalvm.polyglot</groupId> |
| 31 | + <artifactId>polyglot</artifactId> |
| 32 | + <version>${graalpy.version}</version> |
| 33 | + </dependency> |
| 34 | + <!-- Graal TRegex engine (internally used by Graal Python engine) --> |
| 35 | + <dependency> |
| 36 | + <groupId>org.graalvm.regex</groupId> |
| 37 | + <artifactId>regex</artifactId> |
| 38 | + <version>${graalpy.version}</version> |
| 39 | + </dependency> |
| 40 | + <!-- Graal Python engine (depends on Graal TRegex engine, must be added after it) --> |
| 41 | + <dependency> |
| 42 | + <groupId>org.graalvm.polyglot</groupId> |
| 43 | + <artifactId>python-community</artifactId> |
| 44 | + <version>${graalpy.version}</version> |
| 45 | + <type>pom</type> |
| 46 | + </dependency> |
| 47 | + </dependencies> |
| 48 | + |
29 | 49 | <build>
|
30 | 50 | <plugins>
|
31 | 51 | <plugin>
|
|
78 | 98 | <executions>
|
79 | 99 | <execution>
|
80 | 100 | <id>copy-openhab-python</id>
|
81 |
| - <phase>process-resources</phase> |
82 | 101 | <goals>
|
83 | 102 | <goal>copy-resources</goal>
|
84 | 103 | </goals>
|
| 104 | + <phase>process-resources</phase> |
85 | 105 | <configuration>
|
86 | 106 | <outputDirectory>${project.build.directory}/classes/lib/openhab/</outputDirectory>
|
87 | 107 | <resources>
|
|
100 | 120 | <version>3.6.0</version>
|
101 | 121 | <executions>
|
102 | 122 | <execution>
|
103 |
| - <phase>package</phase> |
104 | 123 | <goals>
|
105 | 124 | <goal>shade</goal>
|
106 | 125 | </goals>
|
| 126 | + <phase>package</phase> |
107 | 127 | <configuration>
|
108 | 128 | <artifactSet>
|
109 | 129 | <excludes>
|
|
123 | 143 | <transformers>
|
124 | 144 | <!-- Transformer to merge module-info.class
|
125 | 145 | files, if needed -->
|
126 |
| - <transformer |
127 |
| - implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| 146 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
128 | 147 | </transformers>
|
129 | 148 | </configuration>
|
130 | 149 | </execution>
|
|
141 | 160 | </plugins>
|
142 | 161 | </build>
|
143 | 162 |
|
144 |
| - <dependencies> |
145 |
| - <!-- Graal Polyglot Framework --> |
146 |
| - <dependency> |
147 |
| - <groupId>org.graalvm.polyglot</groupId> |
148 |
| - <artifactId>polyglot</artifactId> |
149 |
| - <version>${graalpy.version}</version> |
150 |
| - </dependency> |
151 |
| - <!-- Graal TRegex engine (internally used by Graal Python engine) --> |
152 |
| - <dependency> |
153 |
| - <groupId>org.graalvm.regex</groupId> |
154 |
| - <artifactId>regex</artifactId> |
155 |
| - <version>${graalpy.version}</version> |
156 |
| - </dependency> |
157 |
| - <!-- Graal Python engine (depends on Graal TRegex engine, must be added after it) --> |
158 |
| - <dependency> |
159 |
| - <groupId>org.graalvm.polyglot</groupId> |
160 |
| - <artifactId>python-community</artifactId> |
161 |
| - <version>${graalpy.version}</version> |
162 |
| - <type>pom</type> |
163 |
| - </dependency> |
164 |
| - </dependencies> |
165 |
| - |
166 | 163 | <!--
|
167 | 164 | <dependencies>
|
168 | 165 | <dependency>
|
|
0 commit comments