Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for acceptedApiChanges (0.44 sec)

  1. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/AcceptedApiChanges.groovy

    import com.google.gson.reflect.TypeToken
    import org.gradle.util.GradleVersion
    
    class AcceptedApiChanges {
    
        GradleVersion baseVersion
        Map<ApiChange, String> acceptedChanges
    
        static AcceptedApiChanges parse(List<String> jsonTexts) {
            def acceptedApiChanges = new AcceptedApiChanges()
            acceptedApiChanges.acceptedChanges = [:]
            for (String jsonText : jsonTexts) {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AcceptedRegressionsRuleSetup.java

        private final Set<ApiChange> acceptedApiChanges;
    
        public AcceptedRegressionsRuleSetup(Map<String, Object> params) {
            AcceptedViolationsProvider acceptedApiChanges = (AcceptedViolationsProvider) params.get("acceptedApiChanges");
            if (acceptedApiChanges != null) {
                this.acceptedApiChanges = AcceptedApiChanges.fromAcceptedChangesMap(acceptedApiChanges.get()).keySet();
            } else {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Dec 30 10:14:25 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractGradleViolationRule.groovy

        private final Map<ApiChange, String> acceptedApiChanges
        private final File mainApiChangesJsonFile
        private final File projectRootDir
    
        AbstractGradleViolationRule(Map<String, Object> params) {
            AcceptedViolationsProvider acceptedApiChanges = ((AcceptedViolationsProvider) params.get("acceptedApiChanges"))
            this.acceptedApiChanges = acceptedApiChanges ? AcceptedApiChanges.fromAcceptedChangesMap(acceptedApiChanges.get()) : [:]
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Dec 30 10:14:25 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTaskIntegrationTest.kt

        fun `verify AlphabeticalAcceptedApiChangesTask detects misordered changes`() {
            //language=JSON
            firstAcceptedApiChangesFile.writeText(
                """
                    {
                        "acceptedApiChanges": [
                            {
                                "type": "org.gradle.api.tasks.AbstractExecTask",
                                "member": "Method org.gradle.api.tasks.AbstractExecTask.getExecResult()",
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Mar 14 02:17:00 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/main/groovy/gradlebuild/EnrichedReportRenderer.groovy

                        // Filtering an array is NOT in place
                        result.acceptedApiChanges = result.acceptedApiChanges.filter((item, pos, ary) => (!pos || (JSON.stringify(item) != JSON.stringify(ary[pos - 1]))));
                        return result;
                    }
    
                    function acceptAllErrorCorrections() {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Feb 07 20:38:43 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/AcceptedApiChangesTest.groovy

    import spock.lang.Specification
    
    class AcceptedApiChangesTest extends Specification {
    
        def "parses accepted change"() {
            when:
            def changes = AcceptedApiChanges.parse(["""
                {
                    "acceptedApiChanges": [
                        {
                            "type": "org.gradle.api.initialization.ConfigurableIncludedBuild",
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTask.kt

                }?.filterValues {
                    it.acceptedApiChanges != null
                }?.mapValues {
                    it.value.acceptedApiChanges!!
                } ?: emptyMap()
        }
    
        private
        fun File.readAcceptedChanges(): AcceptedApiChanges {
            val jsonString = this.readText()
            return Gson().fromJson(jsonString, AcceptedApiChanges::class.java)
        }
    
        /**
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/BinaryCompatibilityHelper.groovy

                    richReport.tap {
                        def acceptedChanges = new AcceptedViolationsProvider(acceptedViolationsDir)
                        def ruleParams = [
                            acceptedApiChanges: acceptedChanges,
                            mainApiChangesJsonFile: mainApiChangesJsonFilePath,
                            projectRootDir: projectRootDirPath
                        ]
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Dec 30 10:14:25 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTaskIntegrationTest.kt

        @Test
        fun `verify misordered changes can be sorted`() {
            //language=JSON
            firstAcceptedApiChangesFile.writeText(
                """
                    {
                        "acceptedApiChanges": [
                            {
                                "type": "org.gradle.api.file.SourceDirectorySet",
                                "member": "Method org.gradle.api.file.SourceDirectorySet.getOutputDir()",
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Mar 14 02:17:00 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  10. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AcceptedRegressionsRulePostProcess.java

        public void execute(ViolationCheckContextWithViolations context) {
            Set<ApiChange> acceptedApiChanges = (Set<ApiChange>) context.getUserData().get("acceptedApiChanges");
            Set<ApiChange> seenApiChanges = (Set<ApiChange>) context.getUserData().get("seenApiChanges");
            Set<ApiChange> left = new HashSet<>(acceptedApiChanges);
            left.removeAll(seenApiChanges);
            if (!left.isEmpty()) {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Jun 09 08:16:49 UTC 2021
    - 1.7K bytes
    - Viewed (0)
Back to top