Skip to content

Commit

Permalink
Add build tasks for Node packages to Maven build (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
breedloj authored Sep 17, 2024
1 parent c66a378 commit 5556d3a
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 54 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install auth module
run: |
cd plugin/auth
npm install
- name: Build login webview
run: |
cd plugin/webview
npm run build-ui
- name: Setup Maven Action
uses: s4u/[email protected]
with:
Expand Down
96 changes: 50 additions & 46 deletions plugin/.classpath
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
Expand All @@ -21,50 +25,50 @@
</attributes>
</classpathentry>
<classpathentry excluding="main/resources/|test/resources/" kind="src" path="src"/>
<classpathentry exported="true" kind="lib" path="target/dependency/animal-sniffer-annotations-1.9.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/batik-constants-1.17.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/batik-css-1.17.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/batik-i18n-1.17.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/batik-shared-resources-1.17.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/batik-util-1.17.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/bcpg-jdk18on-1.78.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/bcprov-jdk18on-1.78.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/bcutil-jdk18on-1.78.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/checker-qual-3.42.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/commons-codec-1.15.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/commons-io-2.16.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/commons-logging-1.2.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/error_prone_annotations-2.27.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/failureaccess-1.0.2.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/gson-2.11.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/guava-33.2.0-jre.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/httpclient-4.5.13.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/httpcore-4.4.13.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/icu4j-75.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/j2objc-annotations-3.0.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jackson-annotations-2.17.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jackson-core-2.17.2.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jackson-databind-2.17.2.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jakarta.annotation-api-2.1.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jakarta.inject-api-2.0.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jna-5.14.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jna-platform-5.14.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jsoup-1.17.2.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/jsr305-3.0.2.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.apache.felix.scr-2.2.10.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.eclipse.lsp4j.jsonrpc-0.23.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.eclipse.lsp4j-0.23.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.osgi.namespace.extender-1.0.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.osgi.namespace.implementation-1.0.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.osgi.service.component-1.5.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.osgi.service.event-1.4.1.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.osgi.service.prefs-1.1.2.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.osgi.util.function-1.2.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/org.osgi.util.promise-1.3.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/osgi.annotation-8.1.0.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/xml-apis-ext-1.3.04.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/xmlgraphics-commons-2.9.jar"/>
<classpathentry exported="true" kind="lib" path="target/dependency/xz-1.9.jar"/>
<classpathentry kind="lib" path="target/dependency/animal-sniffer-annotations-1.9.jar"/>
<classpathentry kind="lib" path="target/dependency/batik-constants-1.17.jar"/>
<classpathentry kind="lib" path="target/dependency/batik-css-1.17.jar"/>
<classpathentry kind="lib" path="target/dependency/batik-i18n-1.17.jar"/>
<classpathentry kind="lib" path="target/dependency/batik-shared-resources-1.17.jar"/>
<classpathentry kind="lib" path="target/dependency/batik-util-1.17.jar"/>
<classpathentry kind="lib" path="target/dependency/bcpg-jdk18on-1.78.1.jar"/>
<classpathentry kind="lib" path="target/dependency/bcprov-jdk18on-1.78.1.jar"/>
<classpathentry kind="lib" path="target/dependency/bcutil-jdk18on-1.78.1.jar"/>
<classpathentry kind="lib" path="target/dependency/checker-qual-3.42.0.jar"/>
<classpathentry kind="lib" path="target/dependency/commons-codec-1.15.jar"/>
<classpathentry kind="lib" path="target/dependency/commons-io-2.16.1.jar"/>
<classpathentry kind="lib" path="target/dependency/commons-logging-1.2.jar"/>
<classpathentry kind="lib" path="target/dependency/error_prone_annotations-2.27.0.jar"/>
<classpathentry kind="lib" path="target/dependency/failureaccess-1.0.2.jar"/>
<classpathentry kind="lib" path="target/dependency/gson-2.11.0.jar"/>
<classpathentry kind="lib" path="target/dependency/guava-33.2.0-jre.jar"/>
<classpathentry kind="lib" path="target/dependency/httpclient-4.5.13.jar"/>
<classpathentry kind="lib" path="target/dependency/httpcore-4.4.13.jar"/>
<classpathentry kind="lib" path="target/dependency/icu4j-75.1.jar"/>
<classpathentry kind="lib" path="target/dependency/j2objc-annotations-3.0.0.jar"/>
<classpathentry kind="lib" path="target/dependency/jackson-annotations-2.17.1.jar"/>
<classpathentry kind="lib" path="target/dependency/jackson-core-2.17.1.jar"/>
<classpathentry kind="lib" path="target/dependency/jackson-databind-2.17.1.jar"/>
<classpathentry kind="lib" path="target/dependency/jakarta.annotation-api-2.1.1.jar"/>
<classpathentry kind="lib" path="target/dependency/jakarta.inject-api-2.0.1.jar"/>
<classpathentry kind="lib" path="target/dependency/jna-5.14.0.jar"/>
<classpathentry kind="lib" path="target/dependency/jna-platform-5.14.0.jar"/>
<classpathentry kind="lib" path="target/dependency/jsoup-1.17.2.jar"/>
<classpathentry kind="lib" path="target/dependency/jsr305-3.0.2.jar"/>
<classpathentry kind="lib" path="target/dependency/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar"/>
<classpathentry kind="lib" path="target/dependency/org.apache.felix.scr-2.2.10.jar"/>
<classpathentry kind="lib" path="target/dependency/org.eclipse.lsp4j.jsonrpc-0.23.1.jar"/>
<classpathentry kind="lib" path="target/dependency/org.eclipse.lsp4j-0.23.1.jar"/>
<classpathentry kind="lib" path="target/dependency/org.osgi.namespace.extender-1.0.1.jar"/>
<classpathentry kind="lib" path="target/dependency/org.osgi.namespace.implementation-1.0.0.jar"/>
<classpathentry kind="lib" path="target/dependency/org.osgi.service.component-1.5.1.jar"/>
<classpathentry kind="lib" path="target/dependency/org.osgi.service.event-1.4.1.jar"/>
<classpathentry kind="lib" path="target/dependency/org.osgi.service.prefs-1.1.2.jar"/>
<classpathentry kind="lib" path="target/dependency/org.osgi.util.function-1.2.0.jar"/>
<classpathentry kind="lib" path="target/dependency/org.osgi.util.promise-1.3.0.jar"/>
<classpathentry kind="lib" path="target/dependency/osgi.annotation-8.1.0.jar"/>
<classpathentry kind="lib" path="target/dependency/xml-apis-ext-1.3.04.jar"/>
<classpathentry kind="lib" path="target/dependency/xmlgraphics-commons-2.9.jar"/>
<classpathentry kind="lib" path="target/dependency/xz-1.9.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
36 changes: 36 additions & 0 deletions plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,42 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.4.0</version>
<executions>
<execution>
<id>build-toolkit-ui</id>
<phase>generate-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<arguments>
<argument>run</argument>
<argument>build-ui</argument>
</arguments>
<workingDirectory>${project.basedir}/webview</workingDirectory>
</configuration>
</execution>
<execution>
<id>install-auth-module</id>
<phase>generate-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<arguments>
<argument>install</argument>
</arguments>
<workingDirectory>${project.basedir}/auth</workingDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 5556d3a

Please sign in to comment.