Skip to content

Commit e1300d3

Browse files
Merge branch 'develop' into dependabot/maven/org.apache.maven.plugins-maven-gpg-plugin-3.2.7
2 parents 35bc8ea + f320257 commit e1300d3

File tree

40 files changed

+733
-687
lines changed

40 files changed

+733
-687
lines changed

.github/workflows/codeql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
steps:
4848
- name: Checkout repository
4949
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
50-
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
50+
- uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
5151
with:
5252
path: ~/.m2/repository
5353
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

.github/workflows/main.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
with:
3737
skip_checkout: true
3838
- name: Ensure SHA pinned actions
39-
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@6eb1abde32fed00453b0d03497f4ba4fecba146d # v3.0.21
39+
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@25ed13d0628a1601b4b44048e63cc4328ed03633 # v3.0.22
4040

4141
build:
4242
runs-on: ubuntu-latest
@@ -52,7 +52,7 @@ jobs:
5252
with:
5353
token: ${{ secrets.BOT_GITHUB_TOKEN }}
5454

55-
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
55+
- uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
5656
with:
5757
path: ~/.m2/repository
5858
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -153,7 +153,7 @@ jobs:
153153
- name: Checkout repository
154154
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
155155

156-
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
156+
- uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
157157
with:
158158
path: ~/.m2/repository
159159
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
@@ -172,7 +172,7 @@ jobs:
172172
version: v1.19.6
173173

174174
- name: Set up Helm
175-
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v3
175+
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v3
176176
with:
177177
version: v3.5.2
178178

@@ -339,7 +339,7 @@ jobs:
339339
java-version: 21
340340
distribution: 'temurin'
341341

342-
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
342+
- uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1
343343
with:
344344
path: ~/.m2/repository
345345
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

activiti-cloud-acceptance-scenarios/identity-adapter-acceptance-tests/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
<dependency>
4242
<groupId>com.squareup.okhttp3</groupId>
4343
<artifactId>okhttp</artifactId>
44+
<version>${com.squareup.okhttp3.version}</version>
4445
</dependency>
4546
<dependency>
4647
<groupId>io.github.openfeign</groupId>

activiti-cloud-acceptance-scenarios/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<activiti-cloud.version>${project.version}</activiti-cloud.version>
2727
<serenity-maven-plugin.version>3.6.23</serenity-maven-plugin.version>
2828
<commons-fileupload.version>1.5</commons-fileupload.version>
29+
<com.squareup.okhttp3.version>4.12.0</com.squareup.okhttp3.version>
2930
</properties>
3031
<dependencyManagement>
3132
<dependencies>

activiti-cloud-api/activiti-cloud-api-process-model-impl/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<dependency>
5252
<groupId>io.swagger.core.v3</groupId>
5353
<artifactId>swagger-annotations-jakarta</artifactId>
54-
<version>2.2.22</version>
54+
<version>${swagger-annotations.version}</version>
5555
</dependency>
5656
<dependency>
5757
<groupId>org.springframework.boot</groupId>

activiti-cloud-api/activiti-cloud-api-task-model-impl/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<dependency>
5353
<groupId>io.swagger.core.v3</groupId>
5454
<artifactId>swagger-annotations-jakarta</artifactId>
55-
<version>2.2.22</version>
55+
<version>${swagger-annotations.version}</version>
5656
</dependency>
5757
</dependencies>
5858
</project>

activiti-cloud-api/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<name>Activiti Cloud :: Runtime API Parent</name>
1313
<packaging>pom</packaging>
1414
<properties>
15-
<activiti.version>8.8.0-alpha.5</activiti.version>
15+
<activiti.version>8.8.0-alpha.7</activiti.version>
1616
</properties>
1717
<modules>
1818
<module>activiti-cloud-api-dependencies</module>

activiti-cloud-build/activiti-cloud-build-dependencies-parent/pom.xml

+16-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<packaging>pom</packaging>
1313
<name>Activiti Cloud :: Dependencies Parent</name>
1414
<properties>
15-
<spring-cloud.version>2023.0.3</spring-cloud.version>
15+
<spring-cloud.version>2024.0.0</spring-cloud.version>
1616
<testcontainers.version>1.20.1</testcontainers.version>
1717
<h2.version>2.2.224</h2.version>
1818
<graphql-java.version>22.1</graphql-java.version>
@@ -21,6 +21,11 @@
2121
</properties>
2222
<dependencyManagement>
2323
<dependencies>
24+
<dependency>
25+
<groupId>org.aspectj</groupId>
26+
<artifactId>aspectjweaver</artifactId>
27+
<version>${aspectweaver.version}</version>
28+
</dependency>
2429
<dependency>
2530
<groupId>com.graphql-java</groupId>
2631
<artifactId>graphql-java</artifactId>
@@ -70,6 +75,16 @@
7075
<type>pom</type>
7176
<scope>import</scope>
7277
</dependency>
78+
<dependency>
79+
<groupId>org.hibernate.orm</groupId>
80+
<artifactId>hibernate-core</artifactId>
81+
<version>${hibernate.version}</version>
82+
</dependency>
83+
<dependency>
84+
<groupId>org.hibernate.orm</groupId>
85+
<artifactId>hibernate-jpamodelgen</artifactId>
86+
<version>${hibernate.version}</version>
87+
</dependency>
7388
<dependency>
7489
<groupId>org.postgresql</groupId>
7590
<artifactId>postgresql</artifactId>

activiti-cloud-examples/activiti-cloud-query/rest/src/test/java/org/activiti/cloud/query/rest/QueryRestApplicationIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class QueryRestApplicationIT {
6666
private IdentityTokenProducer identityTokenProducer;
6767

6868
@Test
69-
public void contextLoads() throws Exception {
69+
public void contextLoads() {
7070
assertThat(applicationContext).isNotNull();
7171
}
7272

activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-model/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
<dependency>
9797
<groupId>io.swagger.core.v3</groupId>
9898
<artifactId>swagger-annotations-jakarta</artifactId>
99-
<version>2.2.22</version>
99+
<version>${swagger-annotations.version}</version>
100100
</dependency>
101101
<dependency>
102102
<groupId>org.springframework.boot</groupId>

activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/CommonExceptionHandlerQuery.java

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
import org.activiti.core.common.spring.security.policies.ActivitiForbiddenException;
2424
import org.slf4j.Logger;
2525
import org.slf4j.LoggerFactory;
26+
import org.springframework.core.Ordered;
27+
import org.springframework.core.annotation.Order;
2628
import org.springframework.core.convert.ConversionFailedException;
2729
import org.springframework.hateoas.EntityModel;
2830
import org.springframework.http.HttpStatus;
@@ -32,6 +34,7 @@
3234
import org.springframework.web.bind.annotation.RestControllerAdvice;
3335

3436
@RestControllerAdvice
37+
@Order(Ordered.HIGHEST_PRECEDENCE)
3538
public class CommonExceptionHandlerQuery {
3639

3740
private static final Logger LOGGER = LoggerFactory.getLogger(CommonExceptionHandlerQuery.class);

activiti-cloud-query-service/activiti-cloud-starter-query/src/test/java/org/activiti/cloud/starter/tests/QueryAdminProcessDiagramIT.java

+5
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import org.junit.jupiter.api.BeforeEach;
4949
import org.junit.jupiter.api.Test;
5050
import org.springframework.beans.factory.annotation.Autowired;
51+
import org.springframework.boot.info.BuildProperties;
5152
import org.springframework.boot.test.context.SpringBootTest;
5253
import org.springframework.boot.test.web.client.TestRestTemplate;
5354
import org.springframework.cloud.stream.binder.test.TestChannelBinderConfiguration;
@@ -59,6 +60,7 @@
5960
import org.springframework.test.annotation.DirtiesContext;
6061
import org.springframework.test.context.ContextConfiguration;
6162
import org.springframework.test.context.TestPropertySource;
63+
import org.springframework.test.context.bean.override.mockito.MockitoBean;
6264

6365
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
6466
@TestPropertySource("classpath:application-test-admin.properties")
@@ -93,6 +95,9 @@ public class QueryAdminProcessDiagramIT {
9395
@Autowired
9496
private TestRestTemplate testRestTemplate;
9597

98+
@MockitoBean
99+
private BuildProperties buildProperties;
100+
96101
private String processDefinitionId = UUID.randomUUID().toString();
97102

98103
private EventsAggregator eventsAggregator;

activiti-cloud-query-service/activiti-cloud-starter-query/src/test/java/org/activiti/cloud/starter/tests/QueryProcessDefinitionCandidateStartersIT.java

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import org.junit.jupiter.api.BeforeEach;
3737
import org.junit.jupiter.api.Test;
3838
import org.springframework.beans.factory.annotation.Autowired;
39+
import org.springframework.boot.info.BuildProperties;
3940
import org.springframework.boot.test.context.SpringBootTest;
4041
import org.springframework.cloud.stream.binder.test.TestChannelBinderConfiguration;
4142
import org.springframework.context.annotation.Import;
@@ -44,6 +45,7 @@
4445
import org.springframework.test.annotation.DirtiesContext;
4546
import org.springframework.test.context.ContextConfiguration;
4647
import org.springframework.test.context.TestPropertySource;
48+
import org.springframework.test.context.bean.override.mockito.MockitoBean;
4749

4850
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
4951
@TestPropertySource("classpath:application-test.properties")
@@ -67,6 +69,9 @@ public class QueryProcessDefinitionCandidateStartersIT {
6769
@Autowired
6870
private MyProducer producer;
6971

72+
@MockitoBean
73+
private BuildProperties buildProperties;
74+
7075
@BeforeEach
7176
public void setUp() {
7277
identityTokenProducer.withTestUser("hruser");

activiti-cloud-query-service/activiti-cloud-starter-query/src/test/java/org/activiti/cloud/starter/tests/QueryProcessDefinitionIT.java

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import org.junit.jupiter.api.BeforeEach;
3838
import org.junit.jupiter.api.Test;
3939
import org.springframework.beans.factory.annotation.Autowired;
40+
import org.springframework.boot.info.BuildProperties;
4041
import org.springframework.boot.test.context.SpringBootTest;
4142
import org.springframework.cloud.stream.binder.test.TestChannelBinderConfiguration;
4243
import org.springframework.context.annotation.Import;
@@ -45,6 +46,7 @@
4546
import org.springframework.test.annotation.DirtiesContext;
4647
import org.springframework.test.context.ContextConfiguration;
4748
import org.springframework.test.context.TestPropertySource;
49+
import org.springframework.test.context.bean.override.mockito.MockitoBean;
4850
import org.springframework.util.StreamUtils;
4951

5052
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@@ -71,6 +73,9 @@ public class QueryProcessDefinitionIT {
7173
@Autowired
7274
private MyProducer producer;
7375

76+
@MockitoBean
77+
private BuildProperties buildProperties;
78+
7479
@BeforeEach
7580
public void setUp() {
7681
identityTokenProducer.withTestUser("hruser");

activiti-cloud-query-service/activiti-cloud-starter-query/src/test/java/org/activiti/cloud/starter/tests/QueryProcessInstancesEntityIT.java

+9-3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.activiti.api.process.model.ProcessInstance.ProcessInstanceStatus;
3535
import org.activiti.api.runtime.model.impl.ActivitiErrorMessageImpl;
3636
import org.activiti.api.runtime.model.impl.ProcessInstanceImpl;
37+
import org.activiti.cloud.alfresco.rest.model.EntryResponseContent;
3738
import org.activiti.cloud.api.process.model.CloudProcessInstance;
3839
import org.activiti.cloud.api.process.model.impl.events.CloudProcessCancelledEventImpl;
3940
import org.activiti.cloud.api.process.model.impl.events.CloudProcessCreatedEventImpl;
@@ -70,6 +71,7 @@
7071
import org.junit.jupiter.params.provider.CsvSource;
7172
import org.junit.jupiter.params.provider.MethodSource;
7273
import org.springframework.beans.factory.annotation.Autowired;
74+
import org.springframework.boot.info.BuildProperties;
7375
import org.springframework.boot.test.context.SpringBootTest;
7476
import org.springframework.boot.test.web.client.TestRestTemplate;
7577
import org.springframework.cloud.stream.binder.test.TestChannelBinderConfiguration;
@@ -83,6 +85,7 @@
8385
import org.springframework.test.annotation.DirtiesContext;
8486
import org.springframework.test.context.ContextConfiguration;
8587
import org.springframework.test.context.TestPropertySource;
88+
import org.springframework.test.context.bean.override.mockito.MockitoBean;
8689
import org.springframework.transaction.annotation.Transactional;
8790

8891
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@@ -133,6 +136,9 @@ public class QueryProcessInstancesEntityIT {
133136
@Autowired
134137
private VariableRepository variableRepository;
135138

139+
@MockitoBean
140+
private BuildProperties buildProperties;
141+
136142
private EventsAggregator eventsAggregator;
137143

138144
private ProcessInstanceEventContainedBuilder processInstanceBuilder;
@@ -1276,14 +1282,14 @@ void should_getAllProcessInstancesWithVariables() {
12761282

12771283
@Test
12781284
void should_containMessageNotDisclosed_whenExceptionMessageIsNotHandled() {
1279-
ResponseEntity<ActivitiErrorMessageImpl> responseEntity = testRestTemplate.exchange(
1285+
ResponseEntity<EntryResponseContent<ActivitiErrorMessageImpl>> responseEntity = testRestTemplate.exchange(
12801286
PROC_URL + "?startDate=2022-14-14T000000",
12811287
HttpMethod.GET,
12821288
identityTokenProducer.entityWithAuthorizationHeader(),
1283-
new ParameterizedTypeReference<ActivitiErrorMessageImpl>() {}
1289+
new ParameterizedTypeReference<EntryResponseContent<ActivitiErrorMessageImpl>>() {}
12841290
);
12851291

1286-
assertThat(responseEntity.getBody().getMessage())
1292+
assertThat(responseEntity.getBody().getEntry().getMessage())
12871293
.isEqualTo(ErrorAttributesMessageSanitizer.ERROR_NOT_DISCLOSED_MESSAGE);
12881294
}
12891295

0 commit comments

Comments
 (0)