File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 11apply plugin : ' java-library'
22apply plugin : ' kotlin'
33apply plugin : ' maven-publish'
4+ apply plugin : ' com.github.johnrengelman.shadow'
45
56ext {
67 version_nashorn_core = ' 15.4'
@@ -14,7 +15,7 @@ dependencies {
1415 implementation project(' :core:imposter-engine' )
1516 implementation project(' :scripting:scripting-common' )
1617
17- implementation " org.openjdk.nashorn:nashorn-core:$version_nashorn_core "
18+ pluginImplementation " org.openjdk.nashorn:nashorn-core:$version_nashorn_core "
1819
1920 // test
2021 testImplementation project(' :test:test-utils' )
@@ -36,7 +37,7 @@ artifacts {
3637publishing {
3738 publications {
3839 maven(MavenPublication ) {
39- from components . java
40+ artifact shadowJar
4041 artifact sourcesJar
4142
4243 repositories {
@@ -69,3 +70,15 @@ compileTestKotlin {
6970 freeCompilerArgs = [" -Xjvm-default=all" ]
7071 }
7172}
73+
74+ shadowJar {
75+ // override plugin archive name
76+ archiveBaseName. set(" imposter-plugin-js-nashorn" )
77+ archiveVersion. set(' ' )
78+ archiveClassifier. set(' ' )
79+ configurations = [project. configurations. pluginImplementation]
80+ }
81+
82+ task dist {
83+ dependsOn shadowJar
84+ }
You can’t perform that action at this time.
0 commit comments