- Sort Score
- Num 10 results
- Language All
Results 1 - 9 of 9 for AcceptedApiChanges (0.18 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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) {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Jun 04 14:00:46 GMT 2024 - 1.9K bytes - Click Count (0) -
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 {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Dec 30 10:14:25 GMT 2025 - 1.9K bytes - Click Count (0) -
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 ]Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Dec 30 10:14:25 GMT 2025 - 5.7K bytes - Click Count (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",Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Jun 04 14:00:46 GMT 2024 - 3.8K bytes - Click Count (0) -
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) } /**Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Jun 04 14:00:46 GMT 2024 - 2.9K bytes - Click Count (0) -
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()",Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Mar 14 02:17:00 GMT 2025 - 9.7K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTask.kt
@TaskAction fun execute() { val gson: Gson = GsonBuilder().setFormattingStyle(FormattingStyle.PRETTY.withIndent(" ")).create() loadChanges().mapValues { gson.toJson(AcceptedApiChanges(sortChanges(it.value))) }.forEach { it.key.bufferedWriter().use { out -> out.write(it.value) out.write("\n") } } }Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Apr 09 14:09:16 GMT 2025 - 1.5K bytes - Click Count (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() {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Jan 22 12:18:18 GMT 2026 - 7K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/AcceptedViolationsProvider.groovy
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Dec 30 10:14:25 GMT 2025 - 1.3K bytes - Click Count (0)