- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for RepositoryData (0.24 sec)
-
platforms/documentation/docs/src/snippets/initScripts/plugins/groovy/build.gradle
// tag::show-repos-task[] repositories{ mavenCentral() } @Immutable class RepositoryData { String name URI url } tasks.register('showRepositories') { def repositoryData = repositories.collect { new RepositoryData(it.name, it.url) } doLast { repositoryData.each { println "repository: ${it.name} ('${it.url}')" } } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 431 bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/initScripts/plugins/kotlin/build.gradle.kts
import java.net.URI // tag::show-repos-task[] repositories{ mavenCentral() } data class RepositoryData(val name: String, val url: URI) tasks.register("showRepositories") { val repositoryData = repositories.withType<MavenArtifactRepository>().map { RepositoryData(it.name, it.url) } doLast { repositoryData.forEach { println("repository: ${it.name} ('${it.url}')") } } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 443 bytes - Viewed (0)