spring“propdeps-plugin”不再工作

Nav*_*lot 5 spring build.gradle

我曾经能够使用 Gradle 下载我的插件依赖项之一,但它现在已停止运行。

有人利用或熟悉问题的根本原因吗?

Maven依赖链接

Error which i'm getting:

problem occurred configuring root project 'Api-prog'.
> Could not resolve all files for configuration ':classpath'.
   > Could not download propdeps-plugin.jar (org.springframework.build.gradle:propdeps-plugin:0.0.7)
      > Could not get resource 'https://repo.spring.io/plugins-release/org/springframework/build/gradle/propdeps-plugin/0.0.7/propdeps-plugin-0.0.7.jar'.
         > Could not GET 'https://repo.spring.io/plugins-release/org/springframework/build/gradle/propdeps-plugin/0.0.7/propdeps-plugin-0.0.7.jar'. Received status code 401 from server: 


Here is my gradle setting and error


buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
        jcenter()
        maven { url "https://repo.spring.io/plugins-release/" }
    }
    dependencies {
        classpath "org.springframework.build.gradle:propdeps-plugin:0.0.7"
    }
}

Run Code Online (Sandbox Code Playgroud)

小智 6

在您的情况下,因为您已经指定了版本io.spring.gradle:propdeps-plugin:0.0.9.RELEASE

  1. 将 Spring 存储库 URL 更改为https://repo.spring.io/plugins-snapshot.
  2. propdeps版本更改为io.spring.gradle:propdeps-plugin:0.0.8-SNAPSHOT.

示例build.gradle块:

    repositories {        
      maven { url "https://repo.spring.io/plugins-snapshot" }        
    }
    
    // ...
    
    dependencies {
       classpath "io.spring.gradle:propdeps-plugin:0.0.8-SNAPSHOT"
    }
Run Code Online (Sandbox Code Playgroud)