Package net.kyori.indra.internal
Class SonatypeRepositoriesImpl
java.lang.Object
net.kyori.indra.internal.SonatypeRepositoriesImpl
- All Implemented Interfaces:
SonatypeRepositories
-
Field Summary
Fields inherited from interface net.kyori.indra.repository.SonatypeRepositories
EXTENSION_NAME -
Constructor Summary
ConstructorsConstructorDescriptionSonatypeRepositoriesImpl(org.gradle.api.artifacts.dsl.RepositoryHandler repositories) -
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.api.artifacts.repositories.MavenArtifactRepositoryAdd the Sonatype OSS snapshot repository to this project.org.gradle.api.artifacts.repositories.MavenArtifactRepositorysnapshotsOn(int host) Add a specific numbered Sonatype OSS snapshots host to this project.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.kyori.indra.repository.SonatypeRepositories
s01Snapshots
-
Constructor Details
-
SonatypeRepositoriesImpl
@Inject public SonatypeRepositoriesImpl(org.gradle.api.artifacts.dsl.RepositoryHandler repositories)
-
-
Method Details
-
ossSnapshots
public org.gradle.api.artifacts.repositories.MavenArtifactRepository ossSnapshots()Description copied from interface:SonatypeRepositoriesAdd the Sonatype OSS snapshot repository to this project.The URL for this repository is https://oss.sonatype.org/content/repositories/snapshots/.
- Specified by:
ossSnapshotsin interfaceSonatypeRepositories- Returns:
- the created repository
-
snapshotsOn
public org.gradle.api.artifacts.repositories.MavenArtifactRepository snapshotsOn(int host) Description copied from interface:SonatypeRepositoriesAdd a specific numbered Sonatype OSS snapshots host to this project.The URL for this repository is
https://s<host>.oss.sonatype.org/content/repositories/snapshots/.As of this writing, only one host exists --
s01.- Specified by:
snapshotsOnin interfaceSonatypeRepositories- Parameters:
host- the host number- Returns:
- the created repository
-