源码搭建

源码搭建

从 GitHub 下载源码 ,git checkout v5.2.6.RELEASE 切换到5.2.6 , 改下build.gradle文件
plugins { id 'io.spring.dependency-management' version '1.0.8.RELEASE' apply false id 'org.jetbrains.kotlin.jvm' version '1.3.72' apply false id 'org.jetbrains.dokka' version '0.10.1' apply false id 'org.asciidoctor.jvm.convert' version '2.4.0' // 注释掉 id 'io.spring.gradle-enterprise-conventions' version '0.0.2' id 'io.spring.nohttp' version '0.0.4.RELEASE' id 'de.undercouch.download' version '4.0.0' id 'com.gradle.build-scan' version '3.2' id "com.jfrog.artifactory" version '4.12.0' apply false id "io.freefair.aspectj" version '4.1.1' apply false id "com.github.ben-manes.versions" version '0.24.0' }
 
repositories { //加上阿里云镜像 maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' } maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' } mavenCentral() maven { url "https://repo.spring.io/libs-spring-framework-build" } }
gradle.properties
version=5.2.6.RELEASE org.gradle.jvmargs=-Xmx2048M org.gradle.caching=true org.gradle.parallel=true org.gradle.daemon=true
settings.gradle
pluginManagement { repositories { maven { url "https://maven.aliyun.com/repository/public" } gradlePluginPortal() maven { url 'https://repo.spring.io/plugins-release' } } }
notion image
build.gradle文件中,定义的kotlin插件版本与idea的kotlin插件版本不一致导致,查看idea中kotlin插件版本 ,忽略