Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for withPluginsBlockContents (0.31 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/PluginDslSupport.groovy

            withPlugins([:], [(alias): null])
        }
    
        void withPluginAliases(List<String> aliases = []) {
            withPlugins([:], aliases.collectEntries { [it, null] })
        }
    
        void withPluginsBlockContents(String block) {
            def text = buildFile.text
            int idx = text.indexOf('allprojects')
            text = """${text.substring(0, idx)}
                plugins {
                    $block
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/catalog/CatalogPluginsGroovyDSLIntegrationTest.groovy

            file("settings.gradle") << """
    dependencyResolutionManagement {
        versionCatalogs {
            libs {
                version('greeter', '1.5')
            }
        }
    }"""
            withPluginsBlockContents(
                'id \'com.acme.greeter\' version libs.versions.greeter'
            )
    
            when:
            plugin.allowAll()
            succeeds taskName
    
            then:
            outputContains message
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 7.4K bytes
    - Viewed (0)
Back to top