- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for acceptedApiChanges (0.29 sec)
-
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/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/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() {
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) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTask.kt
private fun formatChanges(changes: List<AbstractAcceptedApiChangesMaintenanceTask.AcceptedApiChange>): String { val gson: Gson = GsonBuilder().setPrettyPrinting().create() val initialString = gson.toJson(AcceptedApiChanges(changes)) return adjustIndentation(initialString) + "\n" } /** * It appears there is no way to configure Gson to use 4 spaces instead of 2 for indentation. *
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Fri Sep 30 18:18:04 GMT 2022 - 2.1K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTaskIntegrationTest.kt
@Test fun `verify AlphabeticalAcceptedApiChangesTask detects misordered changes`() { //language=JSON acceptedApiChangesFile.writeText( """ { "acceptedApiChanges": [ { "type": "org.gradle.api.tasks.AbstractExecTask", "member": "Method org.gradle.api.tasks.AbstractExecTask.getExecResult()",
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Fri Sep 30 18:18:04 GMT 2022 - 6K bytes - Viewed (0)