Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaprasadreddy committed Aug 21, 2024
1 parent 66c6dbd commit c86f950
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 32 deletions.
14 changes: 3 additions & 11 deletions application/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
plugins {
id "java"
id "jacoco"
id "org.springframework.boot" version "3.0.6"
id "io.spring.dependency-management" version "1.1.0"
id "org.springframework.boot" version "3.3.2"
id "io.spring.dependency-management" version "1.1.6"
id "com.gorylenko.gradle-git-properties" version "2.4.1"
id "com.google.cloud.tools.jib" version "3.3.1"
id "com.diffplug.spotless" version "6.25.0"
Expand Down Expand Up @@ -45,8 +45,6 @@ repositories {
}

ext {
set("spring_cloud_version", "2022.0.2")
set("testcontainers_version", "1.18.0")
set("webjars_locator_version", "0.46")
set("bootstrap_version", "5.2.3")
set("jquery_version", "3.6.4")
Expand Down Expand Up @@ -78,6 +76,7 @@ dependencies {
implementation "org.apache.commons:commons-lang3:${commons_lang_version}"
implementation "commons-io:commons-io:${commons_io_version}"
implementation "org.flywaydb:flyway-core"
implementation "org.flywaydb:flyway-database-postgresql"
runtimeOnly "com.h2database:h2"
runtimeOnly "io.micrometer:micrometer-registry-prometheus"
runtimeOnly "org.postgresql:postgresql"
Expand All @@ -99,13 +98,6 @@ dependencies {
testImplementation "com.apptasticsoftware:rssreader:${rssreader_version}"
}

dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${spring_cloud_version}"
mavenBom "org.testcontainers:testcontainers-bom:${testcontainers_version}"
}
}

bootBuildImage {
imageName = dockerImageName
tags = dockerImageTags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,32 @@ public PasswordEncoder passwordEncoder() {

@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
http.authorizeHttpRequests()
.requestMatchers(
"/webjars/**",
"/resources/**",
"/static/**",
"/js/**",
"/css/**",
"/images/**",
"/favicon.ico",
"/h2-console/**")
.permitAll()
.requestMatchers("/", "/login", "/registration", "/posts", "/api/categories")
.permitAll()
.anyRequest()
.permitAll();
http.authorizeHttpRequests(
c ->
c.requestMatchers(
"/webjars/**",
"/resources/**",
"/static/**",
"/js/**",
"/css/**",
"/images/**",
"/favicon.ico",
"/h2-console/**")
.permitAll()
.requestMatchers(
"/", "/login", "/registration", "/posts", "/api/categories")
.permitAll()
.anyRequest()
.permitAll());

http.formLogin()
.loginPage("/login")
.defaultSuccessUrl("/")
.failureUrl("/login?error")
.permitAll();
http.logout().logoutRequestMatcher(new AntPathRequestMatcher("/logout")).permitAll();
http.formLogin(
c ->
c.loginPage("/login")
.defaultSuccessUrl("/")
.failureUrl("/login?error")
.permitAll());

http.logout(c -> c.logoutRequestMatcher(new AntPathRequestMatcher("/logout")).permitAll());

return http.build();
}
Expand Down

0 comments on commit c86f950

Please sign in to comment.