Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1281 - 1290 of 1,316 for func (0.01 seconds)

  1. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTaskIntegrationTest.kt

    import org.junit.jupiter.api.Assertions.assertEquals
    import org.junit.jupiter.api.Test
    
    
    class SortAcceptedApiChangesTaskIntegrationTest : AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest() {
        @Test
        fun `verify misordered changes can be sorted`() {
            //language=JSON
            firstAcceptedApiChangesFile.writeText(
                """
                    {
                        "acceptedApiChanges": [
                            {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Mar 14 02:17:00 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  2. .teamcity/src/main/kotlin/vcsroots/VcsRoots.kt

    package vcsroots
    
    import jetbrains.buildServer.configs.kotlin.AbsoluteId
    import jetbrains.buildServer.configs.kotlin.CheckoutMode
    import jetbrains.buildServer.configs.kotlin.VcsSettings
    
    fun VcsSettings.useAbsoluteVcs(absoluteId: String) {
        root(AbsoluteId(absoluteId))
    
        checkoutMode = CheckoutMode.ON_AGENT
        this.cleanCheckout = cleanCheckout
        showDependenciesChanges = true
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Mar 20 06:13:56 GMT 2025
    - 391 bytes
    - Click Count (0)
  3. build-logic/build.gradle.kts

                    "which may cause two daemons to be spawned on CI and in IDEA. " +
                    "Use the same org.gradle.jvmargs for both builds.")
            }
        }
    }
    
    fun readProperties(propertiesFile: File) = java.util.Properties().apply {
        propertiesFile.inputStream().use { fis -> load(fis) }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Mar 14 02:17:00 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  4. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/GenerateSubprojectsInfo.kt

    import org.gradle.work.DisableCachingByDefault
    
    
    @DisableCachingByDefault(because = "Not worth caching")
    abstract class GenerateSubprojectsInfo : SubprojectsInfo() {
    
        @TaskAction
        fun generateSubprojectsInfo() {
            subprojectsJson.asFile.writeText(generateSubprojectsJson())
        }
    
        companion object {
            internal
            const val TASK_NAME = "generateSubprojectsInfo"
        }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Jul 08 13:44:59 GMT 2021
    - 1.1K bytes
    - Click Count (0)
  5. build-logic/buildquality/src/main/kotlin/gradlebuild.incubation-report-aggregation.gradle.kts

        archiveBaseName = "incubating-apis"
        from(allIncubationReports.get().htmlReportFile)
        from(allIncubationReports.get().csvReportFile)
        from(resolver("html"))
    }
    
    fun resolver(reportType: String) = configurations.create("incubatingReport${reportType.capitalize()}Path") {
        isCanBeResolved = true
        isCanBeConsumed = false
        attributes {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Jul 02 12:28:02 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  6. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/PublicApi.kt

                }
            }
        }
    
        private val excludePackagePatterns = listOf(Pattern.compile(".+\\.internal(\\..+)?"))
    
        fun isPublicApiPackage(packageName: String) =
            includePackagePatterns.any { it.matcher(packageName).matches() } &&
                !excludePackagePatterns.any { it.matcher(packageName).matches() }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Jun 12 23:20:08 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  7. build-logic-settings/build-environment/src/main/kotlin/gradlebuild/basics/BuildEnvironmentService.kt

        abstract val providers: ProviderFactory
    
        val gitCommitId = git("rev-parse", "HEAD")
        val gitBranch = git("rev-parse", "--abbrev-ref", "HEAD")
    
        @Suppress("UnstableApiUsage")
        private
        fun git(vararg args: String): Provider<String> {
            val projectDir = parameters.rootProjectDir.asFile.get()
            val execOutput = providers.exec {
                workingDir = projectDir
                isIgnoreExitValue = true
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Jul 26 10:02:49 GMT 2024
    - 2K bytes
    - Click Count (0)
  8. .teamcity/src/main/kotlin/model/BucketExtensions.kt

     * @param smallElementAggregateFunction the function used to aggregate tiny elements into a large bucket
     * @param expectedBucketNumber the return value's size should be expectedBucketNumber
     */
    fun <T, R> splitIntoBuckets(
        list: LinkedList<T>,
        toIntFunction: (T) -> Int,
        largeElementSplitFunction: (T, Int) -> List<R>,
        smallElementAggregateFunction: (List<T>) -> R,
        expectedBucketNumber: Int,
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Feb 12 09:12:03 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  9. build-logic/buildquality/src/main/kotlin/gradlebuild.incubation-report.gradle.kts

        }
    }
    
    tasks.named("check") { dependsOn(reportTask) }
    
    consumableVariant("txt", reportTask.flatMap { it.textReportFile })
    consumableVariant("html", reportTask.flatMap { it.htmlReportFile })
    
    fun consumableVariant(reportType: String, artifact: Provider<RegularFile>) = configurations.create("incubatingReport${reportType.capitalize()}") {
        isCanBeResolved = false
        isCanBeConsumed = true
        attributes {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Jul 02 12:28:02 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  10. build-logic/buildquality/src/main/kotlin/gradlebuild.arch-test.gradle.kts

                            }
                        }
                    }
                }
            }
        }
    }
    
    tasks.codeQuality.configure {
        dependsOn(testing.suites.named("archTest"))
    }
    
    fun notForAccessorGeneration(runnable: Runnable) {
        if (project.name != "gradle-kotlin-dsl-accessors" && project.name != "test") {
            runnable.run()
        }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Dec 22 18:51:33 GMT 2025
    - 3.2K bytes
    - Click Count (0)
Back to Top