Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
force to download stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuszs committed May 30, 2016
1 parent 9361658 commit ff02832
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 0 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ buildscript {
mavenLocal()
jcenter()
maven { url "https://plugins.gradle.org/m2/" } //for sonarqube plugin
maven { url 'http://repo.spring.io/milestone' }
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.3.5.RELEASE"
Expand Down Expand Up @@ -61,12 +60,6 @@ allprojects {
mavenLocal()
mavenCentral()
jcenter()
repositories {
maven {
url 'http://repo.spring.io/snapshot'
}
maven { url 'http://repo.spring.io/milestone' }
}
}

configurations {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory
import org.eclipse.aether.impl.DefaultServiceLocator
import org.eclipse.aether.repository.LocalRepository
import org.eclipse.aether.repository.RemoteRepository
import org.eclipse.aether.repository.RepositoryPolicy
import org.eclipse.aether.resolution.*
import org.eclipse.aether.spi.connector.RepositoryConnectorFactory
import org.eclipse.aether.spi.connector.transport.TransporterFactory
Expand Down Expand Up @@ -66,6 +67,7 @@ class AetherStubDownloader implements StubDownloader {

private RepositorySystemSession newSession(RepositorySystem system) {
DefaultRepositorySystemSession session = MavenRepositorySystemUtils.newSession();
session.setUpdatePolicy(RepositoryPolicy.UPDATE_POLICY_ALWAYS);
LocalRepository localRepo = new LocalRepository(System.getProperty(MAVEN_LOCAL_REPOSITORY_LOCATION, "${System.getProperty("user.home")}/.m2/repository"));
session.setLocalRepositoryManager(system.newLocalRepositoryManager(session, localRepo));
return session;
Expand Down

0 comments on commit ff02832

Please sign in to comment.