File tree Expand file tree Collapse file tree 13 files changed +30
-24
lines changed
java/com/amido/stacks/workloads Expand file tree Collapse file tree 13 files changed +30
-24
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ To customise the namespaces and create an application for your company please vi
10
10
11
11
1 . Clone one of the Java projects to your local machine from one of the following repos:
12
12
---
13
- 1 . Simple web API: [ stacks-java repository] ( https://github.com/amido /stacks-java )
14
- 2 . Web API with CQRS: [ stacks-java-cqrs repository] ( https://github.com/amido /stacks-java-cqrs )
15
- 3 . Web API with CQRS and events: [ stacks-java-cqrs-events repository] ( https://github.com/amido /stacks-java-cqrs-events )
13
+ 1 . Simple web API: [ stacks-java repository] ( https://github.com/Ensono /stacks-java )
14
+ 2 . Web API with CQRS: [ stacks-java-cqrs repository] ( https://github.com/Ensono /stacks-java-cqrs )
15
+ 3 . Web API with CQRS and events: [ stacks-java-cqrs-events repository] ( https://github.com/Ensono /stacks-java-cqrs-events )
16
16
17
17
2 . Build and run the application
18
18
---
19
19
20
- Note that at a minimum [ Java 11 ] ( https://adoptopenjdk.net/ ) should be installed.
20
+ Note that at a minimum [ Java 17 ] ( https://adoptopenjdk.net/ ) should be installed.
21
21
22
22
Move to the ` <PROJECT-NAME>/java ` folder, then
23
23
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ pipeline {
117
117
// e.g.:
118
118
// args '-v /var/run/docker.sock:/var/run/docker.sock -u 1000:999'
119
119
// Please check with your admin on any required steps you need to take to ensure a SUDOers access inside the containers
120
- image "azul/zulu-openjdk-debian:11 "
120
+ image "azul/zulu-openjdk-debian:17 "
121
121
}
122
122
}
123
123
@@ -215,7 +215,7 @@ pipeline {
215
215
agent {
216
216
docker {
217
217
// add additional args if you need to here
218
- image "azul/zulu-openjdk-debian:11 "
218
+ image "azul/zulu-openjdk-debian:17 "
219
219
}
220
220
}
221
221
@@ -364,7 +364,7 @@ pipeline {
364
364
agent {
365
365
docker {
366
366
// add additional args if you need to here
367
- image "azul/zulu-openjdk-debian:11 "
367
+ image "azul/zulu-openjdk-debian:17 "
368
368
}
369
369
}
370
370
@@ -866,7 +866,7 @@ pipeline {
866
866
stage("PostDeployDev") {
867
867
agent {
868
868
docker {
869
- image "azul/zulu-openjdk-debian:11 "
869
+ image "azul/zulu-openjdk-debian:17 "
870
870
}
871
871
}
872
872
Original file line number Diff line number Diff line change 237
237
<groupId >jakarta.persistence</groupId >
238
238
<artifactId >jakarta.persistence-api</artifactId >
239
239
</dependency >
240
+ <dependency >
241
+ <groupId >org.springframework.data</groupId >
242
+ <artifactId >spring-data-commons</artifactId >
243
+ <version >3.3.1</version >
244
+ </dependency >
240
245
241
246
</dependencies >
242
247
Original file line number Diff line number Diff line change 16
16
import org .springframework .web .cors .UrlBasedCorsConfigurationSource ;
17
17
18
18
/** ApplicationConfig - Configuration class for Auth0 application security. */
19
- @ Configuration ("MySecurityConfig " )
19
+ @ Configuration ("mySecurityConfig " )
20
20
@ EnableWebSecurity
21
21
@ Order (Ordered .HIGHEST_PRECEDENCE )
22
22
public class ApplicationConfig {
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public WebSecurityCustomizer webSecurityCustomizer() {
38
38
* @param http
39
39
* @throws Exception
40
40
*/
41
- @ Bean (name = "test_SecurityFilterChain " )
41
+ @ Bean (name = "testSecurityFilterChain " )
42
42
public SecurityFilterChain configure (HttpSecurity http ) throws Exception {
43
43
http .authorizeHttpRequests (auth -> auth .requestMatchers ("**/*" ).anonymous ())
44
44
.httpBasic (withDefaults ());
Original file line number Diff line number Diff line change 21
21
scheme = "bearer" )
22
22
public class OpenApiConfiguration {
23
23
24
- private static final String PROJECT_URL = "https://github.com/amido /stacks-java" ;
25
- private static final String STACKS_EMAIL = "stacks@amido .com" ;
24
+ private static final String PROJECT_URL = "https://github.com/Ensono /stacks-java" ;
25
+ private static final String STACKS_EMAIL = "stacks@ensono .com" ;
26
26
private static final String SPRING_DOC = "http://springdoc.org" ;
27
27
28
28
/** OAS/Swagger Configuration. */
@@ -38,7 +38,7 @@ public OpenAPI customOpenApi() {
38
38
.title ("Menu API" )
39
39
.version ("1.0" )
40
40
.description ("APIs used to interact and manage menus for a restaurant" )
41
- .contact (new Contact ().name ("Amido " ).url (PROJECT_URL ).email (STACKS_EMAIL ))
41
+ .contact (new Contact ().name ("Ensono " ).url (PROJECT_URL ).email (STACKS_EMAIL ))
42
42
.license (new License ().name ("Apache 2.0" ).url (SPRING_DOC )));
43
43
}
44
44
Original file line number Diff line number Diff line change 1
1
package com .amido .stacks .workloads .menu .domain ;
2
2
3
- import jakarta .persistence .Id ;
4
3
import java .util .ArrayList ;
5
4
import java .util .List ;
6
5
import lombok .AllArgsConstructor ;
7
6
import lombok .Builder ;
8
7
import lombok .Data ;
8
+ import org .springframework .data .annotation .Id ;
9
9
10
10
@ Data
11
11
@ AllArgsConstructor
12
12
@ Builder
13
13
public class Menu {
14
14
15
- @ Id private String id ;
15
+ @ Id
16
+ private String id ;
16
17
17
18
private String restaurantId ;
18
19
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public SearchMenuResult search(
63
63
return new SearchMenuResult (
64
64
pageSize ,
65
65
pageNumber ,
66
- menuList .stream ().map (searchMenuResultItemMapper ::toDto ).collect ( Collectors . toList () ));
66
+ menuList .stream ().map (searchMenuResultItemMapper ::toDto ).toList ());
67
67
}
68
68
69
69
public MenuDTO get (UUID id , String correlationId ) {
Original file line number Diff line number Diff line change 4
4
enabled : true
5
5
keyvault :
6
6
enabled : false
7
- uri : https://amido .stacks-tmp.vault.azure.net/
7
+ uri : https://ensono .stacks-tmp.vault.azure.net/
8
8
client-id : xxxxxx
9
9
client-key : xxxxxx
10
10
tenant-id : xxxxxx
Original file line number Diff line number Diff line change 1
1
# The issuer of the JWT Token. Typically, this is your Auth0 domain with an https://
2
- auth.issuer =https://amidostacks .eu.auth0.com/
2
+ auth.issuer =https://ensonostacks .eu.auth0.com/
3
3
4
4
# The unique identifier for your API
5
- auth.apiAudience =https://amidostacks .eu.auth0.com/api/v2/
5
+ auth.apiAudience =https://ensonostacks .eu.auth0.com/api/v2/
6
6
7
7
# Config switch to enable (true) or disable(false) Auth0.Provide either true or false to enable or disable
8
8
auth.isEnabled =false
9
9
10
- auth.resource.url =https://amidostacks .eu.auth0.com/oauth/tokenLocal
10
+ auth.resource.url =https://ensonostacks .eu.auth0.com/oauth/tokenLocal
11
11
12
12
auth.token.url =/v1/tokenLocal
Original file line number Diff line number Diff line change 4
4
enabled : true
5
5
keyvault :
6
6
enabled : false
7
- uri : https://amido .stacks-tmp.vault.azure.net/
7
+ uri : https://ensono .stacks-tmp.vault.azure.net/
8
8
client-id : xxxxxx
9
9
client-key : xxxxxx
10
10
tenant-id : xxxxxx
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ framework:
4
4
name : java
5
5
commands :
6
6
- name : java
7
- version : " >= 11 "
7
+ version : " >= 17 "
8
8
9
9
# Pipeline files
10
10
pipeline :
Original file line number Diff line number Diff line change 8
8
<version >1.0.0</version >
9
9
10
10
<properties >
11
- <maven .compiler.source>11 </maven .compiler.source>
12
- <maven .compiler.target>11 </maven .compiler.target>
11
+ <maven .compiler.source>17 </maven .compiler.source>
12
+ <maven .compiler.target>17 </maven .compiler.target>
13
13
<main .basedir>.</main .basedir>
14
14
<source .basedir>${main.basedir}/stacks</source .basedir>
15
15
<build .basedir>${main.basedir}/build</build .basedir>
You can’t perform that action at this time.
0 commit comments