Добрый день! Вопрос про Gradle.
Пытаюсь настроить в IDEA плагин
https://docs.gradle.org/current/userguide/introduction_dependency_management.html, все сделал как написано в документации, но не работает.
${base}/build.gradle
—————————-
plugins {
id "io.spring.dependency-management" version "1.0.6.RELEASE"
}
repositories {
mavenLocal()
mavenCentral()
maven {
url "
https://plugins.gradle.org/m2/"
}
}
apply plugin: "java"
apply plugin: "idea"
apply plugin: "eclipse"
apply plugin: 'maven'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencyManagement {
overriddenByDependencies = true
imports {
mavenBom 'org.springframework:spring-framework-bom:5.1.3.RELEASE'
}
}
subprojects {
apply plugin: "java"
apply plugin: "idea"
apply plugin: "eclipse"
apply plugin: 'maven'
apply plugin: "io.spring.dependency-management"
group '
ru.ajana.work'
version '1.0-SNAPSHOT'
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
options.encoding = 'UTF-8'
}
repositories {
mavenLocal()
mavenCentral()
maven {
url "
https://plugins.gradle.org/m2/"
}
}
}
${base}/module1/build.gradle
——————————————
dependencies {
compile 'org.springframework:spring-context'
}