Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ jobs:
paths:
- ~/.gradle/caches
- ~/.gradle/wrapper
- run:
name: Audit Dependencies
command: ./gradlew dependencyCheckAnalyze -PrunWithDependencyCheck
# - run:
# name: Audit Dependencies
# command: ./gradlew dependencyCheckAnalyze -PrunWithDependencyCheck
build:
docker:
- image: cimg/base:stable
Expand All @@ -98,7 +98,7 @@ jobs:
- node/install:
node-version: << pipeline.parameters.node-version >>
- setup_remote_docker:
version: 19.03.13
version: default
docker_layer_caching: true
# build and push Docker image
- run:
Expand Down
25 changes: 14 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java-library-distribution'
if (hasProperty('runWithDependencyCheck')) {
apply plugin: org.owasp.dependencycheck.gradle.DependencyCheckPlugin

check.dependsOn dependencyCheckAnalyze

dependencyCheck {
format = 'HTML'
failBuildOnCVSS = 8
suppressionFile='./dependencyCheck-suppression.xml'
}
}
//if (hasProperty('runWithDependencyCheck')) {
// apply plugin: org.owasp.dependencycheck.gradle.DependencyCheckPlugin
//
// check.dependsOn dependencyCheckAnalyze
//
// dependencyCheck {
// format = 'HTML'
// failBuildOnCVSS = 8
// suppressionFile='./dependencyCheck-suppression.xml'
// }
//}

group = 'io.elastic'

Expand All @@ -30,6 +31,7 @@ targetCompatibility = 1.8
sourceSets {
main {
java.getDestinationDirectory().set(file('build/classes/main'))
resources.srcDirs += ['lib'] // Add this line
}
test {
java.getDestinationDirectory().set(file('build/classes/test'))
Expand All @@ -48,7 +50,8 @@ repositories {
}

dependencies {
implementation "io.elastic:sailor-jvm:4.0.1"
// implementation "io.elastic:sailor-jvm:4.0.3"
implementation files("./lib/sailor-jvm-5.0.0-SNAPSHOT.2.jar")
implementation "org.glassfish.jersey.core:jersey-client:2.25.1"
implementation "org.glassfish.jersey.media:jersey-media-json-processing:2.25.1"
}
Expand Down
19 changes: 18 additions & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Petstore API (Java)",
"description": "elastic.io component for the Petstore API",
"docsUrl": "https://github.com/elasticio/petstore-component-java",
"version": "1.0.7",
"version": "1.0.8-dev.18",
"credentials": {
"fields": {
"apiKey": {
Expand Down Expand Up @@ -79,6 +79,23 @@
}
},
"actions": {
"TestActionProduceLargeMessage": {
"main": "io.elastic.petstore.actions.TestActionLargeMessage",
"description": "Test Action Produce Large Message",
"title": "Test Action Produce Large Message (to reproduce 408)"
},
"TestActionLargeAmountSmallMessages": {
"main": "io.elastic.petstore.actions.TestActionLargeAmountSmallMessages",
"description": "Test Action Produce Large Amount of Messages",
"title": "Test Action Produce Large Amount of Messages",
"fields": {
"numberOfMessages": {
"label": "Number of messages",
"required": true,
"viewClass": "TextFieldView"
}
}
},
"createPet": {
"main": "io.elastic.petstore.actions.CreatePet",
"title": "Create a Pet",
Expand Down
Loading