1. 에러 상황
Welcome to Gradle 7.6.1!
Here are the highlights of this release:
- Added support for Java 19.
- Introduced `--rerun` flag for individual task rerun.
- Improved dependency block for test suites to be strongly typed.
- Added a pluggable system for Java toolchains provisioning.
For more details see https://docs.gradle.org/7.6.1/release-notes.html
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.6.1/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
> Task :cleanQuerydslSourcesDir
> Task :clean UP-TO-DATE
> Task :initQuerydslSourcesDir
> Task :compileQuerydsl FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileQuerydsl'.
> Could not resolve all dependencies for configuration ':detachedConfiguration1'.
> Could not resolve org.springframework.boot:spring-boot-dependencies:2.7.9.
Required by:
project :
> Could not resolve org.springframework.boot:spring-boot-dependencies:2.7.9.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-dependencies/2.7.9/spring-boot-dependencies-2.7.9.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-dependencies/2.7.9/spring-boot-dependencies-2.7.9.pom'.
> repo.maven.apache.org: Name or service not known
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.6.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 14s
4 actionable tasks: 3 executed, 1 up-to-date
Error: Gradle build failed: process exited with status 1
- 위와 같이 dependencies를 불러오는 과정에서 문제가 발생한다.
2. 해결방법
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.9'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
// QueryDSL
id "com.ewerk.gradle.plugins.querydsl" version "1.0.10"
}
- 기존 1.0.15버전에서 다운그레이드를 하여 해결하였다.