Spring5.X 源码构建,gradle 升级 gradle4.10.3 出现的问题

1.刚升级完之后报如下的错误

A problem occurred configuring root project 'spring'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve io.spring.gradle:propdeps-plugin:0.0.9.RELEASE.
     Required by:
         project :
      > Could not resolve io.spring.gradle:propdeps-plugin:0.0.9.RELEASE.
         > Could not get resource 'http://repo.springsource.org/plugins-release/io/spring/gradle/propdeps-plugin/0.0.9.RELEASE/propdeps-plugin-0.0.9.RELEASE.pom'.
            > Could not GET 'http://repo.springsource.org/plugins-release/io/spring/gradle/propdeps-plugin/0.0.9.RELEASE/propdeps-plugin-0.0.9.RELEASE.pom'. Received status code 403 from server: Forbidden

尝试解决修改 build.gradle 如下:

buildscript {
	repositories {
		maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
        maven { url "https://maven.aliyun.com/repository/spring-plugin" }
        gradlePluginPortal()
		//maven { url "https://repo.spring.io/plugins-release" }
	}
	dependencies {
		//classpath("io.spring.gradle:propdeps-plugin:0.0.9.release")
		classpath("gradle.plugin.cn.bestwu.gradle:propdeps-plugin:0.0.9")
		classpath("org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.16")
	}
}

plugins {
	id "io.spring.dependency-management" version "1.0.7.RELEASE" apply false
	id "org.jetbrains.kotlin.jvm" version "1.2.71" apply false
	id "org.jetbrains.dokka" version "0.9.18"
	id "org.asciidoctor.convert" version "1.5.8"
	
	id "cn.bestwu.propdeps-idea" version "0.0.9"
	id "cn.bestwu.propdeps-eclipse" version "0.0.9"
	id("cn.bestwu.propdeps-maven") version "0.0.9"
}

apply plugin: "java"
apply plugin: "kotlin"
apply plugin: "checkstyle"
apply plugin: "cn.bestwu.propdeps-idea"
apply plugin: "cn.bestwu.propdeps-eclipse"
apply plugin: "cn.bestwu.propdeps-maven"
apply plugin: "test-source-set-dependencies"
apply plugin: "io.spring.dependency-management"
apply from: "${gradleScriptDir}/ide.gradle"

repositories {
	println "aliyun repositories ${project.name}"
	mavenLocal()
	//maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/' }
    //maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
   	maven{ url 'https://maven.aliyun.com/repository/central'}
	maven{ url 'https://maven.aliyun.com/repository/public'}
	maven{ url 'https://maven.aliyun.com/repository/googlr'}
	maven{ url 'https://maven.aliyun.com/repository/spring'}
	//maven { url "https://repo.spring.io/libs-release" }
	maven { url "https://repo.spring.io/plugins-release" }
	//maven { url "https://repo.springsource.org/plugins-release" }
	mavenCentral()
		
	//maven { url "https://repo.spring.io/libs-spring-framework-build" }
	//maven { url "https://repo.spring.io/snapshot" } // Reactor
}

de.gradle如下:

//apply plugin: "propdeps-eclipse"
//apply plugin: "propdeps-idea"
apply plugin: "cn.bestwu.propdeps-idea"
apply plugin: "cn.bestwu.propdeps-eclipse"

publish-maven.gradle如下:

//apply plugin: "propdeps-maven"
apply plugin: "cn.bestwu.propdeps-maven"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值