Owner:
Jeff Stano
Embeds an npm build's output into a Java jar's resources. Extends com.stano.npm (auto-applied) with an npmAssemble task that copies the npm dist output into build/resources/main/public. When the java plugin is also applied, jar depends on npmAssemble and test depends on npmTest.
Version 0.1.14 (latest)
Created 13 August 2026.
Embeds an npm build's output into a Java jar's resources. Extends com.stano.npm (auto-applied) with an npmAssemble task that copies the npm dist output into build/resources/main/public. When the java plugin is also applied, jar depends on npmAssemble and test depends on npmTest.
Add this plugin to your build using the plugins DSL:
plugins {
id("com.stano.npm-resources") version "0.1.14"
}
See also:
-
Adding the plugin to build logic for usage in precompiled script plugins.
See the relevant documentation for more information.
Add this plugin as a dependency to
<convention-plugins-build>/build.gradle(.kts):dependencies { implementation("com.stano.npm-resources:com.stano.npm-resources.gradle.plugin:0.1.14") }It can then be applied in the precompiled script plugin:plugins { id("com.stano.npm-resources") } -
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("com.stano.npm-resources:com.stano.npm-resources.gradle.plugin:0.1.14") } } apply(plugin = "com.stano.npm-resources") - Applying plugins to all subprojects .