Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for new (0.15 sec)

  1. build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy

    class SimpleClassMetaDataRepositoryTest extends Specification {
        @TempDir File tmpDir
        final SimpleClassMetaDataRepository<TestDomainObject> repository = new SimpleClassMetaDataRepository<TestDomainObject>()
    
        def canAddMetaData() {
            TestDomainObject value = new TestDomainObject('a')
    
            when:
            repository.put('class', value)
    
            then:
            repository.find('class') == value
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Sat Apr 06 02:21:33 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractGradleViolationRule.groovy

            )
            return violation
        }
    
        private static String prettyPrintJson(def acceptanceJson) {
            def stringWriter = new StringWriter()
            new JsonWriter(stringWriter).withCloseable { writer ->
                writer.setIndent("    ")
                new Gson().toJson(acceptanceJson, AcceptedApiChange, writer)
            }
            return stringWriter.toString()
        }
    
        String getCurrentVersion() {
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Apr 23 08:40:36 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/BuildableDOMCategory.groovy

            DomBuilder builder = new DomBuilder(parent)
            cl.delegate = builder
            cl.call()
            return builder.elements[0]
        }
    
        public static void leftShift(Node parent, Node node) {
            parent.appendChild(parent.ownerDocument.importNode(node, true))
        }
    
        public static void addFirst(Node parent, Closure cl) {
            DomBuilder builder = new DomBuilder(parent.ownerDocument, null)
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Aug 11 15:32:19 GMT 2022
    - 2.8K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/groovy/gradlebuild/EnrichedReportRenderer.groovy

            def matcher = data.description =~ acceptedChangesRegex
            return new File(matcher[0][1])
        }
    
        private static RichReportData enrichReport(RichReportData data) {
            String currentApiChanges = getAcceptedApiChangesFile(data).text
            String enrichedDesc = data.description + buildFixAllButton(currentApiChanges) + buildAutoSelectSeverityFilter()
            return new RichReportData(data.reportTitle, enrichedDesc, data.violations)
        }
    
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Feb 07 20:38:43 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/Docbook2Xhtml.groovy

                    eachFile {
                        fcd -> fcd.path = fcd.path.replaceFirst("^docbook", "")
                    }
                }
                into(getTemporaryDir())
            }
    
            def stylesheetFile = new File(getTemporaryDir(), "dslHtml.xsl")
            def xslthlConfigFile = getStylesheetHighlightFile().get().asFile.toURI()
    
            // TODO: Implement this with the worker API
            workerLeaseService.runAsIsolatedTask({
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Oct 05 19:36:14 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/BinaryCompatibilityHelper.groovy

                    ])
                    addRule(JApiChangeStatus.NEW, IncubatingMissingRule, [
                            acceptedApiChanges: acceptedChangesMap,
                            apiChangesJsonFile: apiChangesJsonFilePath,
                            projectRootDir: projectRootDirPath
                    ])
                    addRule(JApiChangeStatus.NEW, SinceAnnotationMissingRule, [
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Sep 25 13:49:37 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRuleTest.groovy

        CtClass newSuper
        CtClass newIncubatingBase
        CtClass internalInterface
        CtClass incubatingInterface
        CtClass stablePublicInterface
    
        Map interfaces
    
        def setup() {
            rule = new IncubatingInternalInterfaceAddedRule(getInitializationParams())
            rule.context = context
    
            oldBase = instanceScopedPool.get(OldBase.name)
            newBase = instanceScopedPool.get(NewBase.name)
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 4K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/MethodsRemovedInInternalSuperClassRuleTest.groovy

        static class NewSuperInternal {}
    
        static class NewBase extends NewSuperInternal {}
    
        static class NewSub extends NewBase {}
    
        Map classes = [:]
    
        def setup() {
            rule = new MethodsRemovedInInternalSuperClassRule(getInitializationParams())
            rule.context = context
            [OldSuperInternal, NewSuperInternal].each {
                CtClass c = instanceScopedPool.get(it.name)
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 2.9K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy

            where:
            ruleElem << [new BinaryBreakingChangesRule([:]), new SinceAnnotationMissingRule([:]), new IncubatingMissingRule([:])]
            error << ['Is not binary compatible.', 'Is not annotated with @since', 'Is not annotated with @Incubating']
        }
    
        def "the @since annotation on inner classes is recognised"() {
            given:
            def rule = withContext(new SinceAnnotationMissingRule([:]))
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Dec 01 20:12:19 GMT 2023
    - 16K bytes
    - Viewed (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/ExtractDslMetaDataTask.groovy

            if (!sourceFile.name.endsWith('.java')) {
                throw new DocGenerationException("Parsing non-Java files is not supported: $sourceFile")
            }
            try {
                new JavaParser().parse(sourceFile).getResult().get().accept(new SourceMetaDataVisitor(), repository)
            } catch (Exception e) {
                throw new DocGenerationException("Could not parse '$sourceFile'.", e)
            }
        }
    
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Mon Jan 08 12:45:57 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top