woshikid / blog

Apache License 2.0
8 stars 1 forks source link

贡献Spring源码 #188

Open woshikid opened 2 years ago

woshikid commented 2 years ago

编译Spring项目

使用Profile

mvn -P spring

或添加Maven源

https://repo.spring.io/snapshot
https://repo.spring.io/milestone
https://repo.spring.io/release

代码格式

https://raw.githubusercontent.com/spring-cloud/spring-cloud-build/master/spring-cloud-dependencies-parent/eclipse-code-formatter.xml

Commit要求

Commit说明以Fixes gh-XXXX结尾

其他

对于spring-javaformat-maven-plugin插件 使用WSL时需要设置环境变量

export JAVA_TOOL_OPTIONS=-Dspring-javaformat.lineSeparator=crlf