Remove reliance on mavenLocal from Gradle plugin’s tests

See gh-15471
This commit is contained in:
Andy Wilkinson
2018-12-18 11:41:51 +00:00
parent 4edc32844a
commit 0ad72d5b5e
15 changed files with 77 additions and 73 deletions

View File

@@ -3,10 +3,6 @@ plugins {
id 'org.springframework.boot' version '{version}'
}
repositories {
mavenLocal()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
}

View File

@@ -17,7 +17,7 @@ if (project.hasProperty('applyDependencyManagementPlugin')) {
}
repositories {
mavenLocal()
maven { url 'file:repository' }
}
task doesNotHaveDependencyManagement {

View File

@@ -6,7 +6,7 @@ plugins {
apply plugin: 'io.spring.dependency-management'
repositories {
mavenLocal()
maven { url 'file:repository' }
}
dependencyManagement {

View File

@@ -18,7 +18,7 @@ sourceSets.all {
}
repositories {
maven { url "https://repo.spring.io/libs-snapshot" }
mavenCentral()
}
dependencies {

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>TEST-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<slf4j.version>1.7.25</slf4j.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>TEST-SNAPSHOT</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>