Hi,
I can’t proceeding Spring boot web + build.gradle setting…
please help me…
my config.
Tool
- IntelliJ 2020.1 Ultimate
- Spring Boot Web Project
(Spring boot 2.3.0) - OPENJDK : 9 version
- gradle : 6.3
I was tried…
- cert site add(plugins.gradle.org) -> cacerts
- intelliJ config file (idea64.exe.vmoptions) add options
-Djavax.net.ssl.trustStore=“C:\java-se-9-ri\jdk-9\lib\security\cacerts”
-Djavax.net.ssl.trustStorePassword=“changeit”
-Dhttps.protocols=TLSv1.2 - IntelliJ change Server Certificates option
=> check Accept non-trusted certificates automatically
What’s Wrong?
※ old build.gradle config is ok!
build.gradle (new project from spring.start.io)
===================================================================
plugins {
id ‘org.springframework.boot’ version ‘2.3.0.RELEASE’
id ‘io.spring.dependency-management’ version ‘1.0.9.RELEASE’
id ‘java’
}
group = ‘com.Community’
version = ‘0.0.1-SNAPSHOT’
sourceCompatibility = ‘1.8’
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation ‘org.springframework.boot:spring-boot-starter-data-jpa’
implementation ‘org.springframework.boot:spring-boot-starter-thymeleaf’
implementation ‘org.springframework.boot:spring-boot-starter-web’
compileOnly ‘org.projectlombok:lombok’
developmentOnly ‘org.springframework.boot:spring-boot-devtools’
runtimeOnly ‘com.h2database:h2’
annotationProcessor ‘org.projectlombok:lombok’
testImplementation(‘org.springframework.boot:spring-boot-starter-test’) {
exclude group: ‘org.junit.vintage’, module: ‘junit-vintage-engine’
}
}
test {
useJUnitPlatform()
}
===================================================================
Gradle Import Error
FAILURE: Build failed with an exception.
*** What went wrong:**
A problem occurred configuring root project ‘web’.
> Could not resolve all artifacts for configuration ‘:classpath’.
** > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.3.0.RELEASE.**
** Required by:**
** project : > org.springframework.boot:org.springframework.boot.gradle.plugin:2.3.0.RELEASE**
** > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:2.3.0.RELEASE.**
** > Could not parse POM https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-gradle-plugin/2.3.0.RELEASE/spring-boot-gradle-plugin-2.3.0.RELEASE.pom**
** > Could not resolve org.springframework.boot:spring-boot-dependencies:2.3.0.RELEASE.**
** > Could not resolve org.springframework.boot:spring-boot-dependencies:2.3.0.RELEASE.**
** > Could not get resource ‘https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-dependencies/2.3.0.RELEASE/spring-boot-dependencies-2.3.0.RELEASE.pom’.**
** > Could not GET ‘https://repo.jfrog.org/artifactory/libs-release-bintray/org/springframework/boot/spring-boot-dependencies/2.3.0.RELEASE/spring-boot-dependencies-2.3.0.RELEASE.pom?referrer’.**
** > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target**
org.gradle.internal.resource.transport.http.HttpClientHelper.performHttpRequest(HttpClientHelper.java:141)**
** at org.gradle.internal.resource.transport.http.HttpClientHelper.performHttpRequest(HttpClientHelper.java:117)**
** at org.gradle.internal.resource.transport.http.HttpClientHelper.executeGetOrHead(HttpClientHelper.java:106)**
** at org.gradle.internal.resource.transport.http.HttpClientHelper.performRequest(HttpClientHelper.java:97)**
** … 240 more**
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
** … 255 more**
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
** … 255 more**
*** Get more help at https://help.gradle.org**
BUILD FAILED in 5s