- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for acceptedApiChanges (0.2 sec)
-
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/AcceptedApiChanges.groovy
import org.gradle.util.GradleVersion class AcceptedApiChanges { GradleVersion baseVersion Map<ApiChange, String> acceptedChanges static AcceptedApiChanges parse(String jsonText) { def acceptedApiChanges = new AcceptedApiChanges() def json = new Gson().fromJson(jsonText, new TypeToken<Map<String, List<AcceptedApiChange>>>() {}.type)
Groovy - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 1.7K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/BinaryCompatibilityHelper.groovy
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) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTask.kt
protected fun loadChanges(): List<AcceptedApiChange> { val jsonString = apiChangesFile.get().asFile.readText() val json = Gson().fromJson(jsonString, AcceptedApiChanges::class.java) return json.acceptedApiChanges!! } /** * Sorts the given list of [AcceptedApiChange]s by type and member. * <p>
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Tue Feb 07 20:38:43 GMT 2023 - 2.3K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTaskIntegrationTest.kt
@Test fun `verify misordered changes can be sorted`() { //language=JSON acceptedApiChangesFile.writeText( """ { "acceptedApiChanges": [ { "type": "org.gradle.api.file.SourceDirectorySet", "member": "Method org.gradle.api.file.SourceDirectorySet.getOutputDir()",
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Fri Sep 30 18:18:04 GMT 2022 - 7.5K bytes - Viewed (0) -
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",
Groovy - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 2.7K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/AcceptedApiChangesJsonFileManagerTest.groovy
then: jsonFile.text == nonExistentAcceptedApiChanges() } static String existingAcceptedApiChanges() { """ { "acceptedApiChanges": [ { "type": "org.gradle.api.plugins.quality.Checkstyle", "member": "Method org.gradle.api.plugins.quality.Checkstyle.getInstantiator()",
Groovy - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Tue Aug 17 08:32:56 GMT 2021 - 2.5K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/AbstractContextAwareRuleSpecification.groovy
instanceScopedPool.appendSystemPath() } void noViolation(def rule) { assert rule.maybeViolation(apiClass) == null } Map getInitializationParams() { return [acceptedApiChanges: [:], publicApiPatterns: ['gradlebuild[.]binarycompatibility[.]rules.[^.]+'], apiChangesJsonFile: new File(testDir, 'test-api-changes.json').path, projectRootDir: testDir.path] }
Groovy - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Thu Oct 06 19:15:15 GMT 2022 - 2K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractGradleViolationRule.groovy
private final Map<ApiChange, String> acceptedApiChanges private final File apiChangesJsonFile 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) : [:]
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) -
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()) {
Java - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Wed Jun 09 08:16:49 GMT 2021 - 1.7K bytes - Viewed (0) -
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) {
Java - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 1.6K bytes - Viewed (0)