Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Gradle下载Spring4源代码_Spring_Gradle - Fatal编程技术网

使用Gradle下载Spring4源代码

使用Gradle下载Spring4源代码,spring,gradle,Spring,Gradle,我的build.gradle中有以下依赖项 dependencies { compile("org.springframework:spring-context:4.1.7.RELEASE") compile("org.springframework:spring-orm:4.1.7.RELEASE") compile("org.springframework:spring-web:4.1.7.RELEASE") compile("org.springframew

我的build.gradle中有以下依赖项

dependencies {
    compile("org.springframework:spring-context:4.1.7.RELEASE")
    compile("org.springframework:spring-orm:4.1.7.RELEASE")
    compile("org.springframework:spring-web:4.1.7.RELEASE")
    compile("org.springframework:spring-webmvc:4.1.7.RELEASE")
}

如何获取这些库的源代码?

如果您使用Eclipse,那么Eclipse插件将为您完成这项工作

通过将apply-plugin:eclipse添加到build.gradle文件来安装eclipse插件。然后运行gradleeclipse生成eclipse.project、.classpath和.settings文件。该插件将自动下载所有可用的源代码,并将它们添加到.classpath文件中。请参见ClassPathEntry元素的sourcepath属性


希望这是你需要的。请告诉我是否需要其他解决方案

您是否要求下载链接?我要求如何将其放入build.gradle中,以便将其与库一起下载。