Skip to content

Commit

Permalink
add support for VirtualBox 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
swurzinger committed Dec 11, 2023
1 parent c2879ea commit 06484af
Show file tree
Hide file tree
Showing 9 changed files with 370 additions and 55 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*]
charset = utf-8
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 120
tab_width = 2
trim_trailing_whitespace = true

[*.java]
indent_size = 4
tab_width = 4
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions lib/org/virtualbox/vboxws-70/7.0.6/vboxws-70-7.0.6.pom
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-70</artifactId>
<version>7.0.6</version>
</project>
12 changes: 12 additions & 0 deletions lib/org/virtualbox/vboxws-70/maven-metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-70</artifactId>
<versioning>
<release>7.0.6</release>
<versions>
<version>7.0.6</version>
</versions>
<lastUpdated>‎20211018‏‎202522</lastUpdated>
</versioning>
</metadata>
85 changes: 45 additions & 40 deletions plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,46 +26,51 @@
<artifactId>vboxws-40</artifactId>
<version>4.0.8</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-41</artifactId>
<version>4.1.8</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-42</artifactId>
<version>4.2.0</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-43</artifactId>
<version>4.3.0</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-50</artifactId>
<version>5.0.16</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-51</artifactId>
<version>5.1.6</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-52</artifactId>
<version>5.2.6</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-60</artifactId>
<version>6.0.12</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-61</artifactId>
<version>6.1.28</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-41</artifactId>
<version>4.1.8</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-42</artifactId>
<version>4.2.0</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-43</artifactId>
<version>4.3.0</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-50</artifactId>
<version>5.0.16</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-51</artifactId>
<version>5.1.6</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-52</artifactId>
<version>5.2.6</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-60</artifactId>
<version>6.0.12</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-61</artifactId>
<version>6.1.28</version>
</dependency>
<dependency>
<groupId>org.virtualbox</groupId>
<artifactId>vboxws-70</artifactId>
<version>7.0.6</version>
</dependency>
</dependencies>
<repositories>
<!-- Dirty hack -->
Expand Down
Loading

3 comments on commit 06484af

@jcormier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What version of java is required to build after these changes?

@swurzinger
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No changes to Java or Jenkins requirements here, so still works with Java 8. That's also the version I'm using it with. Beware that Jenkins has dropped Java 8 support in recent versions and if you can you should upgrade to at least Java 11. I haven't tested my changes with those Java versions, though, as I'm unfortunately still dependent on Java 8. If you're on current Java versions you might consider other forks of this plugin, which update the jenkins baseline, like e.g. https://github.com/NikitaUsh/virtualbox-plugin (disclaimer: haven't reviewed the changes there)

@jcormier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh okay. Our CI which I setup years ago failed for what looks like a requirement for java 11. Figured it was intentional.

[VirtualBox Plugin - swurzinger] $ /home/tools/android/jre//bin/java -cp /home/jenkins/maven35-agent.jar:/home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/3.8.3/boot/plexus-classworlds-2.6.0.jar:/home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/3.8.3/conf/logging jenkins.maven3.agent.Maven35Main /home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/3.8.3 /home/jenkins/remoting.jar /home/jenkins/maven35-interceptor.jar /home/jenkins/maven3-interceptor-commons.jar 37775
Exception in thread "main" java.lang.UnsupportedClassVersionError: hudson/remoting/Launcher has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Please sign in to comment.