Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for acceptedApiChanges (0.15 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 Nov 06 11:36:14 UTC 2024
    - 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

    import java.util.Set;
    
    public class AcceptedRegressionsRuleSetup implements SetupRule {
    
        private final Set<ApiChange> acceptedApiChanges;
    
        public AcceptedRegressionsRuleSetup(Map<String, String> acceptedApiChanges) {
            this.acceptedApiChanges = AcceptedApiChanges.fromAcceptedChangesMap(acceptedApiChanges).keySet();
        }
    
        @Override
        @SuppressWarnings("unchecked")
        public void execute(ViolationCheckContext context) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 1.6K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/BinaryCompatibilityHelper.groovy

                        acceptedApiChanges: acceptedChangesMap,
                        publicApiPatterns: includedClasses.get(),
                        mainApiChangesJsonFile: mainApiChangesJsonFilePath,
                        projectRootDir: projectRootDirPath
                    ])
                    addRule(MethodsRemovedInInternalSuperClassRule, [
                        acceptedApiChanges: acceptedChangesMap,
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 11 17:15:16 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. 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) {
            Map<String, String> acceptedApiChanges = (Map<String, String>)params.get("acceptedApiChanges")
            this.acceptedApiChanges = acceptedApiChanges ? AcceptedApiChanges.fromAcceptedChangesMap(acceptedApiChanges) : [:]
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Aug 19 15:30:48 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. 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 Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. 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 Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Feb 07 20:38:43 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  7. 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 Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. 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 Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 2.9K 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 Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 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 Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Jun 09 08:16:49 UTC 2021
    - 1.7K bytes
    - Viewed (0)
Back to top