Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 527 for listOf (0.12 sec)

  1. platforms/documentation/docs/src/snippets/dependencyManagement/customizingResolution-conditionalSubstitutionRule/kotlin/settings.gradle.kts

    rootProject.name = "customizing-resolution-conditional-substitution-rule"
    val projectNames = listOf("project1", "project2", "project3")
    include("consumer")
    
    projectNames.forEach { name ->
        if (isIncluded(name)) {
            println("project $name is INTERNAL to this build")
            include(name)
        } else {
            println("project $name is external to this build")
        }
    }
    
    fun isIncluded(projectName: String): Boolean {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 616 bytes
    - Viewed (0)
  2. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ScopeProvider.kt

            val lexicalScope = positionInFakeFile.getResolutionScope(bindingContext)
            if (lexicalScope != null) {
                val compositeScope = KaCompositeScope.create(listOf(KaFe10ScopeLexical(lexicalScope, analysisContext)), token)
                return KaScopeContext(listOf(KaScopeWithKind(compositeScope, scopeKind, token)), collectImplicitReceivers(lexicalScope), token)
            }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/samples/credentials-handling/pass-credentials-to-external-tool-via-stdin/kotlin/build.gradle.kts

    val login = tasks.register<Exec>("login") {
        val loginProvider = providers.credentials(PasswordCredentials::class.java, "login")
        inputs.property("credentials", loginProvider)
    
        commandLine = listOf("sh", "login.sh")
        doFirst {
            val loginCredentials = loginProvider.get()
            standardInput = java.io.ByteArrayInputStream("${loginCredentials.username}\n${loginCredentials.password}".toByteArray())
        }
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 551 bytes
    - Viewed (0)
  4. .teamcity/src/main/kotlin/model/bucket-extensions.kt

    ): List<R> {
        if (list.isEmpty()) {
            return noElementSplitFunction(expectedBucketNumber)
        }
        if (expectedBucketNumber == 1) {
            return listOf(smallElementAggregateFunction(list))
        }
    
        val expectedBucketSize = list.sumOf(toIntFunction) / expectedBucketNumber
    
        if (expectedBucketSize == 0) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 17 05:17:44 UTC 2022
    - 4K bytes
    - Viewed (0)
  5. build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/Cleanup.kt

                    delete { delete(transformDir) }
                }
        }
    }
    
    
    private
    val scriptCacheDirNames =
        // TODO Remove gradle-kotlin-dsl* after a while
        listOf("scripts", "scripts-remapped", "gradle-kotlin-dsl", "gradle-kotlin-dsl-accessors", "kotlin-dsl")
    
    
    private
    fun scriptsCacheDirsUnder(cacheDir: File) =
        scriptCacheDirNames
            .map { File(cacheDir, it) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 08 12:45:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/samples/ide/problems-api-usage/kotlin/sample-ide/build.gradle.kts

    }
    
    dependencies {
        implementation("reporters:model-builder-plugin")
        implementation("org.gradle:gradle-tooling-api:8.6-milestone-1")
    }
    
    tasks.run.configure {
        args = listOf(
            project.gradle.rootBuild().rootProject.projectDir.absolutePath, // The path of the project (this project's root)
            ":sample-project:assemble"  // The executed task
        )
    }
    
    tasks.register("importBuild") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 08:50:13 UTC 2023
    - 730 bytes
    - Viewed (0)
  7. .teamcity/src/main/kotlin/projects/GradleBuildToolRootProject.kt

    import java.io.File
    
    class GradleBuildToolRootProject(branch: VersionedSettingsBranch) : Project({
        val model = CIBuildModel(
            projectId = "Check",
            branch = branch,
            buildScanTags = listOf("Check"),
            subprojects = JsonBasedGradleSubprojectProvider(File("./subprojects.json"))
        )
        val gradleBuildBucketProvider = DefaultFunctionalTestBucketProvider(model, File("./test-buckets.json"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 05 00:08:14 UTC 2023
    - 1002 bytes
    - Viewed (0)
  8. analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/projectStructure/KotlinByModulesResolutionScopeProvider.kt

    public class KotlinByModulesResolutionScopeProvider : KotlinResolutionScopeProvider() {
        override fun getResolutionScope(module: KtModule): GlobalSearchScope {
            val allModules = topologicalSort(listOf(module)) {
                buildList {
                    addAll(directDependsOnDependencies)
                    addAll(directFriendDependencies)
                    addAll(directRegularDependencies)
                }
            }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 948 bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/samples/build-organization/multi-project-with-convention-plugins/kotlin/buildSrc/src/main/kotlin/myproject.library-conventions.gradle.kts

    // tag::use-java-class[]
    val readmeCheck by tasks.registering(com.example.ReadmeVerificationTask::class) {
        readme = layout.projectDirectory.file("README.md")
        readmePatterns = listOf("^## API$", "^## Changelog$")
    }
    // end::use-java-class[]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1000 bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/WebPlatformUrlTest.kt

        assertThat(effectiveFragment, "fragment").isEqualTo(testData.fragment)
      }
    
      companion object {
        private val HTTP_URL_SCHEMES = listOf("http", "https")
        private val KNOWN_FAILURES =
          listOf(
            "Parsing: <http://example\t.\norg> against <http://example.org/foo/bar>",
            "Parsing: <http://f:0/c> against <http://example.org/foo/bar>",
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top