Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for genGradleVersion (0.26 sec)

  1. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/TemplateOperationFactorySpec.groovy

            then:
            templateOperation.bindings.size() == 3
            templateOperation.bindings.genDate.value != null
            templateOperation.bindings.genUser.value != null
            templateOperation.bindings.genGradleVersion.value != null
        }
    
        def "supports custom bindings"() {
            when:
            def templateOperation = builder.withBindings(someCustomBinding: "someCustomBindingValue").create()
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/TemplateOperationFactory.java

            Map<String, String> map = new LinkedHashMap<>(3);
            map.put("genDate", now);
            map.put("genUser", System.getProperty("user.name"));
            map.put("genGradleVersion", GradleVersion.current().toString());
            return map;
        }
    
        public TemplateOperationBuilder newTemplateOperation() {
            return new TemplateOperationBuilder(defaultBindings);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top