All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hubdle.hubdle-gradle-plugin.0.7.12.source-code.repositories.accessor.kt Maven / Gradle / Ivy

There is a newer version: 0.7.18
Show newest version
import com.javiersc.hubdle.settings.HubdleSettingsDslMarker
import java.io.File
import org.gradle.api.artifacts.dsl.RepositoryHandler
import org.gradle.api.artifacts.repositories.MavenArtifactRepository
import org.gradle.kotlin.dsl.maven

@HubdleSettingsDslMarker
public fun RepositoryHandler.sonatypeSnapshot(action: MavenArtifactRepository.() -> Unit = {}) {
    maven("https://oss.sonatype.org/content/repositories/snapshots", action)
}

@HubdleSettingsDslMarker
public fun RepositoryHandler.jetbrainsKotlinBootstrap(
    action: MavenArtifactRepository.() -> Unit = {}
) {
    maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/bootstrap", action)
}

@HubdleSettingsDslMarker
public fun RepositoryHandler.jetbrainsComposeDev(action: MavenArtifactRepository.() -> Unit = {}) {
    maven("https://maven.pkg.jetbrains.space/public/p/compose/dev", action)
}

@HubdleSettingsDslMarker
public fun RepositoryHandler.mavenLocalTest(action: MavenArtifactRepository.() -> Unit = {}) {
    val userHome = File(System.getProperty("user.home"))
    maven(url = userHome.resolve("mavenLocalTest/repository").toURI()) {
        name = "mavenLocalTest"
        action(this)
    }
}

@HubdleSettingsDslMarker
public fun RepositoryHandler.mavenLocalBuildTest(action: MavenArtifactRepository.() -> Unit = {}) {
    val workingDir = File(System.getProperty("user.dir"))
    maven(url = workingDir.resolve("build/mavenLocalBuildTest/repository").toURI()) {
        name = "mavenLocalBuildTest"
        action(this)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy