Home > database >  Could not resolve: org.thymeleaf.extras:thymeleaf-extras-springsecurity6:3.1.0.RELEASE
Could not resolve: org.thymeleaf.extras:thymeleaf-extras-springsecurity6:3.1.0.RELEASE

Time:11-29

what is the problem, i just changed group name here, i get could not resolve for springsecuriy extras i can't see why

plugins {
   id 'java'
   id 'org.springframework.boot' version '3.0.0'
   id 'io.spring.dependency-management' version '1.1.0'
   id 'org.hibernate.orm' version '6.1.5.Final'
   id 'org.graalvm.buildtools.native' version '0.9.18'
}

group = '*********'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'

repositories {
   mavenCentral()
}

dependencies {
   implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
   implementation 'org.springframework.boot:spring-boot-starter-security'
   implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
   implementation 'org.springframework.boot:spring-boot-starter-web'
   implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
   runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
   testImplementation 'org.springframework.boot:spring-boot-starter-test'
   testImplementation 'org.springframework.security:spring-security-test'
}

tasks.named('test') {
   useJUnitPlatform()
}

hibernate {
   enhancement {
      lazyInitialization true
      dirtyTracking true
      associationManagement true
   }
}


Could not resolve all files for configuration ':compileClasspath'. > Could not resolve org.thymeleaf.extras:thymeleaf-extras-springsecurity6:3.1.0.RELEASE. Required by: project : > Could not resolve org.thymeleaf.extras:thymeleaf-extras-springsecurity6:3.1.0.RELEASE. > Could not parse POM repo.maven.apache.org/maven2/org/thymeleaf/extras/… > Could not find org.springframework.security:spring-security-bom:6.0.0-RC2

I tried nothing it is made by spring initializer and boot version 3.0.0

CodePudding user response:

I resolved problem by changing gradle build i replaced repositories with this

repositories {
maven {
    url "https://repo1.maven.org/maven2"



}
maven { url "https://repo.spring.io/milestone"
    content {
        // Thymeleaf uses 6.0.0-RC2 of Security's bom in its dependency management
        includeModule("org.springframework.security", "spring-security-bom")
    }
}

}

I hope it help others

CodePudding user response:

FYI, thymeleaf/thymeleaf#932 . This will be fixed when Thymeleaf 3.1.1 is released.

  • Related