Skip to content

Commit

Permalink
build: switches graal plugin to archive format.
Browse files Browse the repository at this point in the history
  • Loading branch information
outofcoffee committed Feb 11, 2024
1 parent 0c09340 commit 0a124f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
'./mock/hbase/build/libs/imposter-plugin-mock-hbase.jar',
'./mock/sfdc/build/libs/imposter-plugin-mock-sfdc.jar',
'./mock/wiremock/build/libs/imposter-plugin-wiremock.jar',
'./scripting/graalvm/build/libs/imposter-plugin-js-graal.jar',
'./scripting/graalvm/build/distributions/imposter-plugin-js-graal.zip',
'./store/dynamodb/build/libs/imposter-plugin-store-dynamodb.jar',
'./store/graphql/build/libs/imposter-plugin-store-graphql.jar',
'./store/redis/build/libs/imposter-plugin-store-redis.jar',
Expand Down
19 changes: 10 additions & 9 deletions scripting/graalvm/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apply plugin: 'java-library'
apply plugin: 'kotlin'
apply plugin: 'maven-publish'
apply plugin: 'com.github.johnrengelman.shadow'

ext {
version_graal = '22.3.5'
Expand Down Expand Up @@ -39,7 +38,7 @@ artifacts {
publishing {
publications {
maven(MavenPublication) {
artifact shadowJar
artifact jar
artifact sourcesJar

repositories {
Expand Down Expand Up @@ -73,14 +72,16 @@ compileTestKotlin {
}
}

shadowJar {
// override plugin archive name
archiveBaseName.set("imposter-plugin-js-graal")
archiveVersion.set('')
archiveClassifier.set('')
configurations = [project.configurations.pluginImplementation]
task buildZip(type: Zip) {
archiveName('imposter-plugin-js-graal.zip')
from compileJava
from processResources
into('lib') {
from(jar)
from(project.configurations.pluginImplementation)
}
}

task dist {
dependsOn shadowJar
dependsOn buildZip
}

0 comments on commit 0a124f5

Please sign in to comment.