Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1241 - 1250 of 1,316 for func (0.02 seconds)

  1. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/testing/TestType.kt

        CROSSVERSION("crossVersion", listOf("embedded", "forking"))
    }
    
    
    fun Test.includeSpockAnnotation(fqcn: String) {
        systemProperties.compute("include.spock.annotation") { _, oldValue ->
            if (oldValue == null) fqcn else "$oldValue,$fqcn"
        }
    }
    
    
    fun Test.excludeSpockAnnotation(fqcn: String) {
        systemProperties.compute("exclude.spock.annotation") { _, oldValue ->
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 1.3K bytes
    - Click Count (0)
  2. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/tasks/ClasspathManifest.kt

        @get:OutputFile
        abstract val manifestFile: RegularFileProperty
    
        @TaskAction
        fun generate() {
            ReproduciblePropertiesWriter.store(createProperties(), manifestFile.get().asFile)
        }
    
        private
        fun createProperties() = Properties().also { properties ->
            properties["runtime"] = runtime.get().joinToString(",")
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Mar 28 20:26:58 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  3. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/PluginEntry.kt

    import java.io.IOException
    import java.util.Properties
    import java.util.jar.JarEntry
    import java.util.jar.JarFile
    
    
    data class PluginEntry(val pluginId: String, val implementationClass: String)
    
    
    fun pluginEntriesFrom(jar: File): List<PluginEntry> = try {
        JarFile(jar, false).use { jarFile ->
            jarFile.entries().asSequence().filter {
                isGradlePluginPropertiesFile(it)
            }.map { pluginEntry ->
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Jun 28 08:29:28 GMT 2024
    - 1.8K bytes
    - Click Count (0)
  4. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/UpgradedPropertiesChangesTest.kt

     * limitations under the License.
     */
    
    package gradlebuild.binarycompatibility
    
    import org.junit.Test
    
    
    class UpgradedPropertiesChangesTest : AbstractBinaryCompatibilityTest() {
    
        @Test
        fun `should report binary incompatibility for upgraded property without any metadata`() {
            checkNotBinaryCompatible(
                v1 = {
                    withJavaFile(
                        "java/com/example/Task.java",
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 24 14:15:15 GMT 2025
    - 26.2K bytes
    - Click Count (0)
  5. .teamcity/src/test/kotlin/BuildScanTagUtilsTest.kt

                projectId = "Check",
                branch = VersionedSettingsBranch.fromDslContext(),
                buildScanTags = listOf("Check"),
                subprojects = subprojectProvider,
            )
    
        @Test
        fun `test stage tags`() {
            assertEquals(
                "-DbuildScan.PartOf=QuickFeedbackLinuxOnly,QuickFeedback,PullRequestFeedback,ReadyforNightly,ReadyforRelease",
                model.stages[0].getBuildScanCustomValueParam(),
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Aug 05 16:58:51 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  6. .teamcity/src/main/kotlin/configurations/TestPerformanceTest.kt

        stage: Stage,
    ) : OsAwareBaseGradleBuildType(os = Os.LINUX, stage, init = {
            val os = Os.LINUX
            val buildTypeThis = this
            val testProject = "smallJavaMultiProject"
    
            fun BuildSteps.gradleStep(tasks: List<String>) {
                gradleWrapper {
                    name = "GRADLE_RUNNER"
                    gradleParams =
                        (
                            tasks +
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Dec 25 10:54:09 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. build-logic/jvm/src/main/kotlin/gradlebuild/jvm/extension/StrictCompileExtension.kt

        fun ignoreDeprecations() {
            tasks.withType<JavaCompile>().configureEach {
                options.compilerArgs.add("-Xlint:-deprecation")
            }
        }
    
        fun ignoreRawTypes() {
            tasks.withType<JavaCompile>().configureEach {
                options.compilerArgs.add("-Xlint:-rawtypes")
            }
        }
    
        fun ignoreAnnotationProcessing() {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Feb 22 11:17:19 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  8. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateKotlinVersions.kt

                    latestKotlinVersions.last()
                )
            }
    
        private
        fun fetchLatestKotlinVersions() =
            fetchAndSelectKotlinVersions(
                minimumSupported.get(),
                "https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/maven-metadata.xml"
            )
    
        private
        fun fetchAndSelectKotlinVersions(minimumSupported: String, mavenMetadataUrl: String): List<String> {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Oct 29 08:29:55 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  9. build-logic/jvm/src/main/kotlin/gradlebuild/startscript/tasks/GradleStartScriptGenerator.kt

        }
    
        private
        fun createUnixStartScriptGenerator() = DefaultTemplateBasedStartScriptGenerator(
            TextUtil.getUnixLineSeparator(),
            StartScriptTemplateBindingFactory.unix(),
            FileCollectionBackedTextResource(temporaryFileProvider, unixScriptTemplate, StandardCharsets.UTF_8)
        )
    
        private
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Apr 08 01:46:59 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  10. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/kotlindsl/kotlin-compiler-configuration.kt

    import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
    import org.jetbrains.kotlin.load.java.JavaTypeEnhancementState
    import org.jetbrains.kotlin.load.java.Jsr305Settings
    import org.jetbrains.kotlin.load.java.ReportLevel
    
    
    fun KotlinCompile.configureKotlinCompilerForGradleBuild() {
        compilerOptions {
            allWarningsAsErrors = true
            apiVersion = KotlinVersion.KOTLIN_2_2
            languageVersion = KotlinVersion.KOTLIN_2_2
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Jul 08 12:31:49 GMT 2025
    - 2.6K bytes
    - Click Count (0)
Back to Top