Skip to content

Commit

Permalink
OSGi-ify GraalVM dependencies (#57)
Browse files Browse the repository at this point in the history
* OSGI-ify org.graalvm.sdk:*
* OSGI-ify org.graalvm.shadowed:icu4j
* OSGI-ify org.graalvm.truffle:truffle-compiler
* OSGI-ify org.graalvm.truffle:truffle-runtime

Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 authored Feb 4, 2025
1 parent 849d458 commit 6b43678
Show file tree
Hide file tree
Showing 22 changed files with 396 additions and 0 deletions.
20 changes: 20 additions & 0 deletions org.graalvm.sdk.collections/NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
This content is produced and maintained by the openHAB project.

* Project home: https://www.openhab.org

== Declared Project Licenses

This program and the accompanying materials are made available under the terms
of the Eclipse Public License 2.0 which is available at
https://www.eclipse.org/legal/epl-2.0/.

== Source Code

https://github.com/openhab/openhab-osgiify

== Third-party Content

polyglot
* License: Universal Permissive License, Version 1.0
* Project: http://www.graalvm.org
* Source: https://github.com/oracle/graal
12 changes: 12 additions & 0 deletions org.graalvm.sdk.collections/osgi.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Bundle-Description: OSGi-ified version of ${project.name}
Bundle-Name: ${project.name}
Bundle-License: Universal Permissive License, Version 1.0
Bundle-Version: ${project.version}
Import-Package: \
*
Export-Package: \
!NOTICE, \
*;version=${project.version}
-includeresource: \
NOTICE

22 changes: 22 additions & 0 deletions org.graalvm.sdk.collections/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.openhab.osgiify</groupId>
<artifactId>org.openhab.reactor.osgiify</artifactId>
<version>1.0.0</version>
</parent>

<artifactId>org.graalvm.sdk.collections</artifactId>
<version>${graalvm.version}</version>

<name>GraalVM :: SDK :: Collections</name>

<properties>
<origin.groupId>org.graalvm.sdk</origin.groupId>
<origin.artifactId>collections</origin.artifactId>
</properties>

</project>
20 changes: 20 additions & 0 deletions org.graalvm.sdk.jniutils/NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
This content is produced and maintained by the openHAB project.

* Project home: https://www.openhab.org

== Declared Project Licenses

This program and the accompanying materials are made available under the terms
of the Eclipse Public License 2.0 which is available at
https://www.eclipse.org/legal/epl-2.0/.

== Source Code

https://github.com/openhab/openhab-osgiify

== Third-party Content

polyglot
* License: Universal Permissive License, Version 1.0
* Project: http://www.graalvm.org
* Source: https://github.com/oracle/graal
14 changes: 14 additions & 0 deletions org.graalvm.sdk.jniutils/osgi.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Bundle-Description: OSGi-ified version of ${project.name}
Bundle-Name: ${project.name}
Bundle-License: Universal Permissive License, Version 1.0
Bundle-Version: ${project.version}
Import-Package: \
org.graalvm.collections.*;version=${project.version}, \
org.graalvm.nativeimage.*;version=${project.version}, \
*
Export-Package: \
!NOTICE, \
*;version=${project.version}
-includeresource: \
NOTICE

22 changes: 22 additions & 0 deletions org.graalvm.sdk.jniutils/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.openhab.osgiify</groupId>
<artifactId>org.openhab.reactor.osgiify</artifactId>
<version>1.0.0</version>
</parent>

<artifactId>org.graalvm.sdk.jniutils</artifactId>
<version>${graalvm.version}</version>

<name>GraalVM :: SDK :: JNI Utils</name>

<properties>
<origin.groupId>org.graalvm.sdk</origin.groupId>
<origin.artifactId>jniutils</origin.artifactId>
</properties>

</project>
20 changes: 20 additions & 0 deletions org.graalvm.sdk.nativeimage/NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
This content is produced and maintained by the openHAB project.

* Project home: https://www.openhab.org

== Declared Project Licenses

This program and the accompanying materials are made available under the terms
of the Eclipse Public License 2.0 which is available at
https://www.eclipse.org/legal/epl-2.0/.

== Source Code

https://github.com/openhab/openhab-osgiify

== Third-party Content

polyglot
* License: Universal Permissive License, Version 1.0
* Project: http://www.graalvm.org
* Source: https://github.com/oracle/graal
13 changes: 13 additions & 0 deletions org.graalvm.sdk.nativeimage/osgi.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Bundle-Description: OSGi-ified version of ${project.name}
Bundle-Name: ${project.name}
Bundle-License: Universal Permissive License, Version 1.0
Bundle-Version: ${project.version}
Import-Package: \
org.graalvm.word.*;version=${project.version}, \
*
Export-Package: \
!NOTICE, \
*;version=${project.version}
-includeresource: \
NOTICE

22 changes: 22 additions & 0 deletions org.graalvm.sdk.nativeimage/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.openhab.osgiify</groupId>
<artifactId>org.openhab.reactor.osgiify</artifactId>
<version>1.0.0</version>
</parent>

<artifactId>org.graalvm.sdk.nativeimage</artifactId>
<version>${graalvm.version}</version>

<name>GraalVM :: SDK :: Native Image</name>

<properties>
<origin.groupId>org.graalvm.sdk</origin.groupId>
<origin.artifactId>nativeimage</origin.artifactId>
</properties>

</project>
20 changes: 20 additions & 0 deletions org.graalvm.sdk.word/NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
This content is produced and maintained by the openHAB project.

* Project home: https://www.openhab.org

== Declared Project Licenses

This program and the accompanying materials are made available under the terms
of the Eclipse Public License 2.0 which is available at
https://www.eclipse.org/legal/epl-2.0/.

== Source Code

https://github.com/openhab/openhab-osgiify

== Third-party Content

polyglot
* License: Universal Permissive License, Version 1.0
* Project: http://www.graalvm.org
* Source: https://github.com/oracle/graal
12 changes: 12 additions & 0 deletions org.graalvm.sdk.word/osgi.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Bundle-Description: OSGi-ified version of ${project.name}
Bundle-Name: ${project.name}
Bundle-License: Universal Permissive License, Version 1.0
Bundle-Version: ${project.version}
Import-Package: \
*
Export-Package: \
!NOTICE, \
*;version=${project.version}
-includeresource: \
NOTICE

22 changes: 22 additions & 0 deletions org.graalvm.sdk.word/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.openhab.osgiify</groupId>
<artifactId>org.openhab.reactor.osgiify</artifactId>
<version>1.0.0</version>
</parent>

<artifactId>org.graalvm.sdk.word</artifactId>
<version>${graalvm.version}</version>

<name>GraalVM :: SDK :: Word</name>

<properties>
<origin.groupId>org.graalvm.sdk</origin.groupId>
<origin.artifactId>word</origin.artifactId>
</properties>

</project>
20 changes: 20 additions & 0 deletions org.graalvm.shadowed.icu4j/NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
This content is produced and maintained by the openHAB project.

* Project home: https://www.openhab.org

== Declared Project Licenses

This program and the accompanying materials are made available under the terms
of the Eclipse Public License 2.0 which is available at
https://www.eclipse.org/legal/epl-2.0/.

== Source Code

https://github.com/openhab/openhab-osgiify

== Third-party Content

polyglot
* License: Unicode/ICU License
* Project: http://www.graalvm.org
* Source: https://github.com/oracle/graal
12 changes: 12 additions & 0 deletions org.graalvm.shadowed.icu4j/osgi.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Bundle-Description: OSGi-ified version of ${project.name}
Bundle-Name: ${project.name}
Bundle-License: Unicode/ICU License
Bundle-Version: ${project.version}
Import-Package: \
*
Export-Package: \
!NOTICE, \
*;version=${project.version}
-includeresource: \
NOTICE

22 changes: 22 additions & 0 deletions org.graalvm.shadowed.icu4j/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.openhab.osgiify</groupId>
<artifactId>org.openhab.reactor.osgiify</artifactId>
<version>1.0.0</version>
</parent>

<artifactId>org.graalvm.shadowed.icu4j</artifactId>
<version>${graalvm.version}</version>

<name>GraalVM :: Truffle :: ICU4J</name>

<properties>
<origin.groupId>org.graalvm.shadowed</origin.groupId>
<origin.artifactId>icu4j</origin.artifactId>
</properties>

</project>
20 changes: 20 additions & 0 deletions org.graalvm.truffle.truffle-compiler/NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
This content is produced and maintained by the openHAB project.

* Project home: https://www.openhab.org

== Declared Project Licenses

This program and the accompanying materials are made available under the terms
of the Eclipse Public License 2.0 which is available at
https://www.eclipse.org/legal/epl-2.0/.

== Source Code

https://github.com/openhab/openhab-osgiify

== Third-party Content

polyglot
* License: Universal Permissive License, Version 1.0
* Project: http://www.graalvm.org
* Source: https://github.com/oracle/graal
13 changes: 13 additions & 0 deletions org.graalvm.truffle.truffle-compiler/osgi.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Bundle-Description: OSGi-ified version of ${project.name}
Bundle-Name: ${project.name}
Bundle-License: Universal Permissive License, Version 1.0
Bundle-Version: ${project.version}
Import-Package: \
jdk.vm.ci.*;resolution:="optional", \
*
Export-Package: \
!NOTICE, \
*;version=${project.version}
-includeresource: \
NOTICE

22 changes: 22 additions & 0 deletions org.graalvm.truffle.truffle-compiler/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.openhab.osgiify</groupId>
<artifactId>org.openhab.reactor.osgiify</artifactId>
<version>1.0.0</version>
</parent>

<artifactId>org.graalvm.truffle.truffle-compiler</artifactId>
<version>${graalvm.version}</version>

<name>GraalVM :: Truffle :: Compiler</name>

<properties>
<origin.groupId>org.graalvm.truffle</origin.groupId>
<origin.artifactId>truffle-compiler</origin.artifactId>
</properties>

</project>
20 changes: 20 additions & 0 deletions org.graalvm.truffle.truffle-runtime/NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
This content is produced and maintained by the openHAB project.

* Project home: https://www.openhab.org

== Declared Project Licenses

This program and the accompanying materials are made available under the terms
of the Eclipse Public License 2.0 which is available at
https://www.eclipse.org/legal/epl-2.0/.

== Source Code

https://github.com/openhab/openhab-osgiify

== Third-party Content

polyglot
* License: Universal Permissive License, Version 1.0
* Project: http://www.graalvm.org
* Source: https://github.com/oracle/graal
18 changes: 18 additions & 0 deletions org.graalvm.truffle.truffle-runtime/osgi.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Bundle-Description: OSGi-ified version of ${project.name}
Bundle-Name: ${project.name}
Bundle-License: Universal Permissive License, Version 1.0
Bundle-Version: ${project.version}
Import-Package: \
jdk.internal.access;resolution:="optional", \
jdk.internal.module;resolution:="optional", \
jdk.jfr;resolution:="optional", \
jdk.vm.ci.*;resolution:="optional", \
org.graalvm.*;resolution:="optional", \
com.oracle.truffle.*;resolution:="optional", \
*
Export-Package: \
!NOTICE, \
*;version=${project.version}
-includeresource: \
NOTICE

Loading

0 comments on commit 6b43678

Please sign in to comment.