构建后端第4篇之---spring 源码阅读构建环境
解决 IDEA 创建 Gradle 项目没有src目录问题
in new model named zyt-study root dir there are a build.gradle
plugins {
id 'java'
}
group 'org.springframework'
version '5.3.4-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
compile(project(":spring-context"))
testCompile group: 'junit', name: 'junit', version: '4.12'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
test {
useJUnitPlatform()
}
task"create-dirs" {
sourceSets*.java.srcDirs*.each {
it.mkdirs()
}
sourceSets*.resources.srcDirs*.each{
it.mkdirs()
}
}
after refreash
then the src comeout
construction project refer to
手把手教你搭建 Spring 源码分析环境(昨天视频笔记)
http://www.javaboy.org/2020/0708/source-code.html