As the title said, I want to create an new module in Spring-Project to debug source code to learn.
So i create a new module named spring-z-simple
look like this
IDEA screenshot
And here is my gradle file look like
plugins {
id 'java'
}
group = 'org.springframework'
version = '6.2.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
api(project(":spring-context"))
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}
After i build project successfully,I try to code. But i get this error in idea when i’m typing
error screenshot
And i also can’t find ApplicationContext class in spring-context module, but i have already add dependency in gradle file
I’m confirm that i set the right jdk for this project and this module
And in gradle tool window, my module spring-z-simple
has no dependencies of spring-context
gradle tool window screenshot
I have never use gradle before, So what should i do?
I want to debug spring source code
Kuromi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.