Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
akantcheff committed Oct 16, 2024
2 parents 7534f16 + 821619a commit 6bf7ee0
Show file tree
Hide file tree
Showing 71 changed files with 311 additions and 241 deletions.
2 changes: 1 addition & 1 deletion bonita-engine-spring-boot-starter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies {
annotationProcessor(libs.springBootConfigurationProcessor)

testImplementation(libs.springBootTest)
testImplementation("org.assertj:assertj-core:${Deps.assertjVersion}")
testImplementation(libs.assertj)
}

tasks.register("sourcesJar", Jar) {
Expand Down
4 changes: 2 additions & 2 deletions bonita-engine-standalone/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ dependencies {
annotationProcessor libs.lombok
compileOnly libs.lombok

testImplementation "org.assertj:assertj-core:${Deps.assertjVersion}"
testImplementation "com.github.stefanbirkner:system-rules:${Deps.systemRulesVersion}"
testImplementation libs.assertj
testImplementation libs.systemRules

// These 3 drivers are used for some specific tests:
testImplementation(libs.postgresql)
Expand Down
38 changes: 19 additions & 19 deletions bonita-engine/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,40 +88,40 @@ dependencyManagement {
dependency "com.bonitasoft.web:bonita-web-extensions-sp:${project.version}"

// Web layer specific dependencies:
dependency "org.apache.xbean:xbean-classloader:${Deps.xbeanClassloaderVersion}"
dependency "org.glassfish.web:jakarta.servlet.jsp.jstl:${Deps.jakartaJstlVersion}"
dependency "jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:${Deps.jakartaJstlApiVersion}"
dependency "org.fedorahosted.tennera:jgettext:${Deps.jgettextVersion}"
dependency "org.tuckey:urlrewritefilter:${Deps.urlrewriteVersion}"
dependency "org.restlet.jse:org.restlet:${Deps.restletVersion}"
dependency("org.restlet.jee:org.restlet.ext.servlet:${Deps.restletVersion}") {
dependency(libs.xbeanClassloader.get() as String)
dependency(libs.jakartaJstl.get() as String)
dependency(libs.jakartaJstlApi.get() as String)
dependency(libs.jgettext.get() as String)
dependency(libs.urlrewritefilter.get() as String)
dependency(libs.restlet.get() as String)
dependency(libs.restletServlet.get() as String) {
exclude "org.restlet.jee:org.restlet"
}
dependency("org.restlet.jse:org.restlet.ext.jackson:${Deps.restletVersion}") {
dependency(libs.restletJackson.get() as String) {
exclude "org.codehaus.woodstox:woodstox-core-asl"
exclude "org.codehaus.woodstox:stax2-api"
}
// Specify woodstox version to override the version pulled by jackson-dataformat-xml (transitive dep of restlet)
dependency "com.fasterxml.woodstox:woodstox-core:${Deps.woodstoxCoreVersion}"
dependency "com.googlecode.json-simple:json-simple:${Deps.jsonSimpleVersion}"
dependency "org.keycloak:keycloak-saml-adapter-api-public:${Deps.keycloakVersion}"
dependency("org.keycloak:keycloak-saml-servlet-filter-adapter:${Deps.keycloakVersion}") {
dependency(libs.woodstoxCore.get() as String)
dependency(libs.jsonSimple.get() as String)
dependency(libs.keycloakSamlAdapterApiPublic.get() as String)
dependency(libs.keycloakSamlServletFilterAdapter.get() as String) {
exclude "org.bouncycastle:bcprov-jdk15on"
exclude "org.bouncycastle:bcpkix-jdk15on"
exclude "org.bouncycastle:bcutil-jdk15on"
exclude "org.apache.santuario:xmlsec"
}
dependency("org.keycloak:keycloak-adapter-core:${Deps.keycloakVersion}") {
dependency(libs.keycloakAdapterCore.get() as String) {
exclude "org.bouncycastle:bcprov-jdk15on"
}
dependency("org.keycloak:keycloak-servlet-filter-adapter:${Deps.keycloakVersion}") {
dependency(libs.keycloakServletFilterAdapter.get() as String) {
exclude "org.bouncycastle:bcprov-jdk15on"
}
dependency "org.apache.santuario:xmlsec:${Deps.xmlsecVersion}"
dependency "org.bouncycastle:bcprov-jdk18on:${Deps.bouncyCastleVersion}"
dependency "org.bouncycastle:bcpkix-jdk18on:${Deps.bouncyCastleVersion}"
dependency "org.bouncycastle:bcutil-jdk18on:${Deps.bouncyCastleVersion}"
dependency "org.codelibs:spnego:${Deps.spnegoVersion}"
dependency(libs.xmlsec.get() as String)
dependency(libs.bouncyCastleBcprov.get() as String)
dependency(libs.bouncyCastleBcpkix.get() as String)
dependency(libs.bouncyCastleBcutil.get() as String)
dependency(libs.spnego.get() as String)
}
}
publishing {
Expand Down
4 changes: 2 additions & 2 deletions bonita-integration-tests/benchmarks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ plugins {
}

dependencies {
api "org.assertj:assertj-core:${Deps.assertjVersion}"
api "org.mockito:mockito-core:${Deps.mockitoVersion}"
api libs.assertj
api libs.mockitoCore
api project(':bonita-integration-tests:bonita-integration-tests-client')
api project(':bpm:bonita-server')
testRuntimeOnly libs.logback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ dependencies {
api project(':bpm:bonita-common')
api project(':bpm:bonita-client')
api project(':bonita-integration-tests:bonita-test-utils')
api "org.assertj:assertj-core:${Deps.assertjVersion}"
api "net.javacrumbs.json-unit:json-unit-fluent:${Deps.jsonUnitVersion}"
api "com.github.stefanbirkner:system-rules:${Deps.systemRulesVersion}"
api "net.jodah:concurrentunit:${Deps.concurrentUnitVersion}"
api libs.assertj
api libs.jsonUnitFluent
api libs.systemRules
api libs.concurrentUnit
runtimeOnly libs.logback
testImplementation project(':bpm:bonita-server')
testImplementation testFixtures(project(':bpm:bonita-common'))
testImplementation "org.awaitility:awaitility:${Deps.awaitilityVersion}"
testImplementation "xmlunit:xmlunit:${Deps.xmlunitVersion}"
testImplementation "org.mockito:mockito-core:${Deps.mockitoVersion}"
testImplementation libs.awaitility
testImplementation libs.xmlunit
testImplementation libs.mockitoCore
}

test.doFirst {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ plugins {
id("bonita-tests")
}
dependencies {
api "org.assertj:assertj-core:${Deps.assertjVersion}"
api "org.mockito:mockito-core:${Deps.mockitoVersion}"
api libs.assertj
api libs.mockitoCore
api project(':bonita-integration-tests:bonita-integration-tests-client')
implementation(project(":bpm:bonita-core:bonita-process-engine"))
api project(':bpm:bonita-server')
api libs.commonsIO
testRuntimeOnly libs.logback
testAnnotationProcessor libs.lombok
testImplementation libs.lombok
testImplementation "org.awaitility:awaitility:${Deps.awaitilityVersion}"
testImplementation "com.github.stefanbirkner:system-lambda:${Deps.systemLambdaVersion}"
testImplementation libs.awaitility
testImplementation libs.systemLambda
}

tasks.register("testsJar", Jar) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ dependencies {
implementation libs.jakartaServletApi
implementation libs.junit4
implementation libs.springTest
testImplementation "org.hamcrest:hamcrest:${Deps.hamcrestVersion}"
testImplementation "org.mockito:mockito-core:${Deps.mockitoVersion}"
testImplementation "org.assertj:assertj-core:${Deps.assertjVersion}"
testImplementation "org.restlet.jse:org.restlet:${Deps.restletVersion}"
testImplementation libs.hamcrest
testImplementation libs.mockitoCore
testImplementation libs.assertj
testImplementation libs.restlet
}

java {
Expand Down
6 changes: 3 additions & 3 deletions bonita-integration-tests/bonita-query-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ plugins { id 'bonita-docker-database' }
dependencies {
testAnnotationProcessor libs.lombok
testImplementation libs.lombok
testImplementation "org.assertj:assertj-core:${Deps.assertjVersion}"
testImplementation libs.assertj
testImplementation libs.h2
testImplementation libs.springBeans
testImplementation libs.springTx
testImplementation libs.springTest
testImplementation libs.springJdbc
testImplementation "org.springframework:spring-orm:4.3.16.RELEASE"
testImplementation "jakarta.inject:jakarta.inject-api:1.0.5"
testImplementation libs.springOrm
testImplementation libs.jakartaInjectApi
testImplementation project(":bpm:bonita-server")
testImplementation project(":bpm:bonita-common")

Expand Down
4 changes: 2 additions & 2 deletions bonita-integration-tests/bonita-test-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ dependencies {
api project(':bpm:bonita-common')
api project(':bonita-test-api')
api libs.commonsIO
api "xmlunit:xmlunit:${Deps.xmlunitVersion}"
api "org.assertj:assertj-core:${Deps.assertjVersion}"
api libs.xmlunit
api libs.assertj

implementation project(':bpm:bonita-core:bonita-process-engine')
implementation libs.junit4
Expand Down
8 changes: 4 additions & 4 deletions bonita-test-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ dependencies {
implementation libs.springTest

// for http tests:
compileOnly("org.eclipse.jetty:jetty-server:${Deps.jettyVersion}")
compileOnly("org.eclipse.jetty:jetty-servlet:${Deps.jettyVersion}")
compileOnly(libs.jettyServer)
compileOnly(libs.jettyServlet)
compileOnly(project(':bpm:bonita-api:bonita-server-api-http'))

annotationProcessor libs.lombok
compileOnly libs.lombok

testImplementation project(':bpm:bonita-server')
testImplementation "org.mockito:mockito-core:${Deps.mockitoVersion}"
testImplementation "org.assertj:assertj-core:${Deps.assertjVersion}"
testImplementation libs.mockitoCore
testImplementation libs.assertj
}

publishing {
Expand Down
8 changes: 4 additions & 4 deletions bpm/bonita-api/bonita-server-api-http/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ dependencies {
api libs.commonsFileUpload
api libs.commonsIO
testImplementation libs.springTest
testImplementation "org.mockito:mockito-junit-jupiter:${Deps.mockitoVersion}"
testImplementation "org.assertj:assertj-core:${Deps.assertjVersion}"
testImplementation "org.mockito:mockito-core:${Deps.mockitoVersion}"
testImplementation "com.github.stefanbirkner:system-rules:${Deps.systemRulesVersion}"
testImplementation libs.mockitoJunitJupiter
testImplementation libs.assertj
testImplementation libs.mockitoCore
testImplementation libs.systemRules
testRuntimeOnly libs.springWebMvc
compileOnly libs.jakartaServletApi
testImplementation libs.jakartaServletApi
Expand Down
10 changes: 4 additions & 6 deletions bpm/bonita-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ dependencies {
api libs.httpComponentsClient
api libs.xstream
api libs.httpComponentsMime
testImplementation "org.assertj:assertj-core:${Deps.assertjVersion}"
testImplementation libs.assertj
testImplementation libs.logback
testImplementation "org.mockito:mockito-core:${Deps.mockitoVersion}"
testImplementation 'org.eclipse.jetty:jetty-server:8.1.14.v20131031'
testImplementation 'org.eclipse.jetty:jetty-jndi:8.1.14.v20131031'
testImplementation 'org.eclipse.jetty:jetty-webapp:8.1.14.v20131031'
testImplementation 'org.eclipse.jetty:jetty-plus:8.1.14.v20131031'
testImplementation libs.mockitoCore
testImplementation libs.jettyServer
testImplementation libs.jettySecurity
}

tasks.register("testsJar", Jar) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@

import java.io.Serializable;
import java.net.URL;
import java.util.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
Expand All @@ -31,6 +35,7 @@
import org.eclipse.jetty.security.authentication.BasicAuthenticator;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.server.handler.AbstractHandler;
import org.eclipse.jetty.util.security.Constraint;
import org.junit.AfterClass;
Expand Down Expand Up @@ -86,7 +91,6 @@ public static void startJetty() throws Exception {
security.setConstraintMappings(Collections.singletonList(mapping));
security.setAuthenticator(new BasicAuthenticator());
security.setLoginService(loginService);
security.setStrict(false);

// Simulate Bonita engine part
BonitaHandler bonitaHandler = new BonitaHandler();
Expand All @@ -96,7 +100,7 @@ public static void startJetty() throws Exception {
server.start();

// retrieve port
int actualPort = server.getConnectors()[0].getLocalPort();
int actualPort = ((ServerConnector) server.getConnectors()[0]).getLocalPort();
baseResourceUrl = "http://localhost:" + actualPort;
}

Expand Down
10 changes: 5 additions & 5 deletions bpm/bonita-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ dependencies {
annotationProcessor libs.lombok

testImplementation project(':bpm:bonita-sap-jco-connector-api')
testImplementation "org.assertj:assertj-core:${Deps.assertjVersion}"
testImplementation "org.mockito:mockito-core:${Deps.mockitoVersion}"
testImplementation libs.assertj
testImplementation libs.mockitoCore
testImplementation libs.logback
testImplementation 'org.jmockit:jmockit:1.44'
testImplementation "net.javacrumbs.json-unit:json-unit-fluent:${Deps.jsonUnitVersion}"
testImplementation libs.jmockit
testImplementation libs.jsonUnitFluent

testFixturesApi("org.bonitasoft.engine:bonita-business-object-model") {
artifact { classifier = 'tests' }
}
testFixturesImplementation "org.assertj:assertj-core:${Deps.assertjVersion}"
testFixturesImplementation libs.assertj
}

tasks.register("testsJar", Jar) {
Expand Down
4 changes: 2 additions & 2 deletions bpm/bonita-core/bonita-actor-mapping/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ dependencies {
api project(':services:bonita-events')
api project(':services:bonita-log')
api project(':services:bonita-persistence')
testImplementation "org.mockito:mockito-core:${Deps.mockitoVersion}"
testImplementation "org.assertj:assertj-core:${Deps.assertjVersion}"
testImplementation libs.mockitoCore
testImplementation libs.assertj

annotationProcessor libs.lombok
compileOnly libs.lombok
Expand Down
2 changes: 1 addition & 1 deletion bpm/bonita-core/bonita-category/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies {
api project(':services:bonita-events')
api project(':services:bonita-log')
api project(':services:bonita-persistence')
testImplementation "org.mockito:mockito-core:${Deps.mockitoVersion}"
testImplementation libs.mockitoCore

annotationProcessor libs.lombok
compileOnly libs.lombok
Expand Down
7 changes: 5 additions & 2 deletions bpm/bonita-core/bonita-contract-data/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ dependencies {
api project(':services:bonita-log')
api project(':services:bonita-archive')
api project(':services:bonita-persistence')

implementation platform(libs.bonitaArtifactsModelBom)
implementation 'org.bonitasoft.engine:bonita-process-definition-model'
testImplementation "org.assertj:assertj-core:${Deps.assertjVersion}"
testImplementation "org.mockito:mockito-core:${Deps.mockitoVersion}"

testImplementation libs.assertj
testImplementation libs.mockitoCore

annotationProcessor libs.lombok
compileOnly libs.lombok
}
4 changes: 2 additions & 2 deletions bpm/bonita-core/bonita-core-data/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ dependencies {
api libs.commonsLang
api project(':services:bonita-cache')
api project(':services:bonita-persistence')
testImplementation "org.assertj:assertj-core:${Deps.assertjVersion}"
testImplementation "org.mockito:mockito-core:${Deps.mockitoVersion}"
testImplementation libs.assertj
testImplementation libs.mockitoCore
}
4 changes: 2 additions & 2 deletions bpm/bonita-core/bonita-form-mapping/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ dependencies {
api project(':services:bonita-commons')
api project(':services:bonita-events')
api libs.hibernateCore
testImplementation "org.assertj:assertj-core:${Deps.assertjVersion}"
testImplementation "org.mockito:mockito-core:${Deps.mockitoVersion}"
testImplementation libs.assertj
testImplementation libs.mockitoCore

annotationProcessor libs.lombok
compileOnly libs.lombok
Expand Down
6 changes: 3 additions & 3 deletions bpm/bonita-core/bonita-home-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ dependencies {
api project(':bpm:bonita-common')
api libs.commonsIO
api project(':platform:platform-resources')
testImplementation "org.assertj:assertj-core:${Deps.assertjVersion}"
testImplementation "org.mockito:mockito-core:${Deps.mockitoVersion}"
testImplementation "com.github.stefanbirkner:system-rules:${Deps.systemRulesVersion}"
testImplementation libs.assertj
testImplementation libs.mockitoCore
testImplementation libs.systemRules
testRuntimeOnly libs.logback
}
4 changes: 2 additions & 2 deletions bpm/bonita-core/bonita-login/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ dependencies {
api project(':services:bonita-authentication')
api project(':services:bonita-profile')
api project(':services:bonita-authorization')
testImplementation "org.mockito:mockito-core:${Deps.mockitoVersion}"
testImplementation "org.assertj:assertj-core:${Deps.assertjVersion}"
testImplementation libs.mockitoCore
testImplementation libs.assertj
testImplementation libs.logback

compileOnly libs.lombok
Expand Down
6 changes: 3 additions & 3 deletions bpm/bonita-core/bonita-parameter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ dependencies {
api project(':services:bonita-cache')
api project(':services:bonita-builder')
api project(':services:bonita-persistence')
testImplementation "org.mockito:mockito-core:${Deps.mockitoVersion}"
testImplementation "org.assertj:assertj-core:${Deps.assertjVersion}"
testImplementation "com.github.stefanbirkner:system-rules:${Deps.systemRulesVersion}"
testImplementation libs.mockitoCore
testImplementation libs.assertj
testImplementation libs.systemRules
testRuntimeOnly libs.logback

annotationProcessor libs.lombok
Expand Down
2 changes: 1 addition & 1 deletion bpm/bonita-core/bonita-platform-login/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ dependencies {
api project(':services:bonita-commons')
api project(':services:bonita-platform-session')
api project(':services:bonita-platform-authentication')
testImplementation "org.mockito:mockito-core:${Deps.mockitoVersion}"
testImplementation libs.mockitoCore
}
Loading

0 comments on commit 6bf7ee0

Please sign in to comment.