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
}
ide.gradle如下:
//apply plugin: "propdeps-eclipse"
//apply plugin: "propdeps-idea"
apply plugin: "cn.bestwu.propdeps-idea"
apply plugin: "cn.bestwu.propdeps-eclipse"
publish-maven.gradle如下:文章来源:https://www.toymoban.com/news/detail-691980.html
//apply plugin: "propdeps-maven"
apply plugin: "cn.bestwu.propdeps-maven"
仓库中搜索如下图,其中前三个插件都是需要的(只导入idea是否需要eclipse不确定,也可以尝试注释掉报错的缺少eclipse部分):
地址:仓库地址
文章来源地址https://www.toymoban.com/news/detail-691980.html
到了这里,关于【gradle构建spring源码报错io.spring.gradle:propdeps-plugin:0.0.9.RELEASE】的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!