Search in sources :

Example 11 with MavenArtifactRepository

use of org.gradle.api.artifacts.repositories.MavenArtifactRepository in project gradle by gradle.

the class DefaultBaseRepositoryFactory method createGoogleRepository.

@Override
public MavenArtifactRepository createGoogleRepository() {
    MavenArtifactRepository mavenRepository = createMavenRepository(new NamedMavenRepositoryDescriber(RepositoryHandler.GOOGLE_URL));
    mavenRepository.setUrl(RepositoryHandler.GOOGLE_URL);
    return mavenRepository;
}
Also used : MavenArtifactRepository(org.gradle.api.artifacts.repositories.MavenArtifactRepository)

Aggregations

MavenArtifactRepository (org.gradle.api.artifacts.repositories.MavenArtifactRepository)11 MavenPublicationInternal (org.gradle.api.publish.maven.internal.publication.MavenPublicationInternal)4 File (java.io.File)3 InvalidUserDataException (org.gradle.api.InvalidUserDataException)3 PublishingExtension (org.gradle.api.publish.PublishingExtension)2 TaskAction (org.gradle.api.tasks.TaskAction)2 Set (java.util.Set)1 Inject (javax.inject.Inject)1 StringUtils.capitalize (org.apache.commons.lang.StringUtils.capitalize)1 Action (org.gradle.api.Action)1 NamedDomainObjectFactory (org.gradle.api.NamedDomainObjectFactory)1 NamedDomainObjectList (org.gradle.api.NamedDomainObjectList)1 NamedDomainObjectSet (org.gradle.api.NamedDomainObjectSet)1 Plugin (org.gradle.api.Plugin)1 Project (org.gradle.api.Project)1 Task (org.gradle.api.Task)1 Dependency (org.gradle.api.artifacts.Dependency)1 ResolveException (org.gradle.api.artifacts.ResolveException)1 RepositoryHandler (org.gradle.api.artifacts.dsl.RepositoryHandler)1 Usage (org.gradle.api.attributes.Usage)1