Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for applyIf (0.17 sec)

  1. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/ide/AndroidStudioProvisioningPlugin.kt

    
    class AndroidStudioProvisioningPlugin : Plugin<Project> {
        override fun apply(target: Project) {
            with(target) {
                val androidStudioProvisioningExtension = extensions
                    .create("androidStudioProvisioning", AndroidStudioProvisioningExtension::class)
                    .apply {
                        androidStudioVersion.convention(defaultAndroidStudioVersion)
                    }
    
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Fri Dec 22 13:46:27 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  2. .teamcity/src/test/kotlin/ApplyDefaultConfigurationTest.kt

            every {
                buildType.steps(capture(stepsCapturer))
            } answers {
                stepsCapturer.captured(steps)
                mockk()
            }
        }
    
        @Test
        fun `can apply defaults to configurations`() {
            applyDefaults(buildModel, buildType, "myTask")
    
            assertEquals(
                listOf(
                    "KILL_LEAKED_PROCESSES_FROM_PREVIOUS_BUILDS",
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Wed Apr 24 08:17:56 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleKotlinDslReferencePlugin.java

    import java.net.URISyntaxException;
    
    public class GradleKotlinDslReferencePlugin implements Plugin<Project> {
    
        private static final String TASK_NAME = "dokkatooGeneratePublicationHtml";
    
        @Override
        public void apply(Project project) {
            GradleDocumentationExtension documentationExtension = project.getExtensions().getByType(GradleDocumentationExtension.class);
            applyPlugin(project);
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Jan 15 14:00:14 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  4. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupRootPlugin.kt

    import org.gradle.kotlin.dsl.*
    import org.gradle.kotlin.dsl.support.serviceOf
    import java.io.File
    
    
    class TestFilesCleanupRootPlugin : Plugin<Project> {
        override fun apply(project: Project) {
            require(project.rootProject == project) { "This plugin should be applied to root project!" }
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Jul 06 10:57:13 GMT 2023
    - 3K bytes
    - Viewed (0)
  5. build-logic/integration-testing/src/main/kotlin/gradlebuild.distribution-testing.gradle.kts

            tracker = it.service
        }
    }
    
    fun DistributionTest.configureGradleTestEnvironment() {
        val taskName = name
    
        gradleInstallationForTest.apply {
            if (executerRequiresDistribution(taskName)) {
                gradleHomeDir = if (executerRequiresFullDistribution(taskName)) {
                    configurations["${prefix}TestFullDistributionRuntimeClasspath"]
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Tue Nov 28 20:40:40 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  6. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/shared-configuration.kt

    private
    fun IntegrationTest.setUpAgentIfNeeded(testType: TestType, executer: String) {
        if (executer == "embedded") {
            // Apply the instrumentation agent to the test process when running integration tests with embedded Gradle executer.
            jvmArgumentProviders.add(project.objects.newInstance<AgentsClasspathProvider>().apply {
                agentsClasspath.from(project.configurations["${testType.prefix}TestAgentsClasspath"])
            })
        }
    
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Mon Feb 12 13:19:06 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  7. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleDslReferencePlugin.java

     * generated in the same way as the user manual with cross-links between them.
     */
    public class GradleDslReferencePlugin implements Plugin<Project> {
        @Override
        public void apply(Project project) {
            ProjectLayout layout = project.getLayout();
            TaskContainer tasks = project.getTasks();
            ObjectFactory objects = project.getObjects();
    
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 5.7K bytes
    - Viewed (0)
  8. build-logic-commons/basics/src/test/kotlin/gradlebuild/basics/tasks/PackageListGeneratorIntegrationTest.kt

        private
        val implementation = PackageListGenerator.Implementation(DEFAULT_EXCLUDES_FOR_TEST)
    
        private
        fun getRelocatedPackages(files: Sequence<Path>): List<String> = mutableListOf<String>().apply {
            implementation.collectPackages(files.toList()).dump(false, this::add)
        }
    
        @Test
        fun `generates a curated list of package prefixes from directories`() {
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  9. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt

                .toSet()
        }
    
        private
        fun <T> invokeGitHubApi(uri: String, klass: Class<T>): T {
            val request = HttpRequest.newBuilder()
                .uri(URI(uri))
                .apply {
                    if (githubToken.isPresent) {
                        header("Authorization", "token ${githubToken.get()}")
                    }
                }
                .build()
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon May 16 05:03:11 GMT 2022
    - 5.7K bytes
    - Viewed (0)
  10. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/KotlinInternalFilteringTest.kt

        }
    
        @Test
        fun `existing internal members made public appear as added`() {
    
            checkNotBinaryCompatibleKotlin(
                v1 = internalSource,
                v2 = publicSource
            ).apply {
                assertHasErrors(
                    *reportedMembers.map {
                        added(it.first, it.second)
                    }.toTypedArray()
                )
                assertHasNoWarning()
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Jul 11 06:57:51 GMT 2023
    - 6.2K bytes
    - Viewed (0)
Back to top