Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for taskRegistration (0.35 sec)

  1. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/BuildScriptBuilder.java

         *
         * @return An expression that can be used to refer to the task later.
         */
        public TaskRegistration taskRegistration(@Nullable String comment, String taskName, String taskType, Action<? super ScriptBlockBuilder> blockContentsBuilder) {
            TaskRegistration registration = new TaskRegistration(comment, taskName, taskType);
            block.add(registration);
            blockContentsBuilder.execute(registration.body);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 21 12:02:29 UTC 2023
    - 90K bytes
    - Viewed (0)
  2. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/JvmGradlePluginProjectInitDescriptor.java

                buildScriptBuilder.methodInvocation(null, functionalTestRuntimeOnly, "extendsFrom", testRuntimeOnly);
    
                BuildScriptBuilder.Expression functionalTest = buildScriptBuilder.taskRegistration("Add a task to run the functional tests", "functionalTest", "Test", b -> {
                    b.propertyAssignment(null, "testClassesDirs", buildScriptBuilder.propertyExpression(functionalTestSourceSet, "output.classesDirs"), true);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  3. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/BuildScriptBuilderGroovyTest.groovy

        implementation project(':p2')
        testImplementation project(':p1')
    }
    """)
        }
    
        def "can register tasks and refer to them later"() {
            given:
            def task = builder.taskRegistration("Compile stuff", "compile", "JavaCompile") { t ->
                t.propertyAssignment(null, "classpath", 12, true)
            }
            builder.block("Use stuff", "artifacts") { b ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 18 14:16:33 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  4. platforms/software/build-init/src/main/java/org/gradleinternal/buildinit/plugins/internal/maven/Maven2Gradle.java

        boolean packageTests(MavenProject project, BuildScriptBuilder builder) {
            Plugin jarPlugin = plugin("maven-jar-plugin", project);
            if (pluginGoal("test-jar", jarPlugin) != null) {
                builder.taskRegistration(null, "testsJar", "Jar", task -> {
                    task.propertyAssignment(null, "archiveClassifier", "tests", true);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 14 15:23:34 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top