- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for AcceptedApiChangesJsonFileManager (0.29 sec)
-
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/AcceptedApiChangesJsonFileManager.groovy
* limitations under the License. */ package gradlebuild.binarycompatibility import com.google.gson.Gson import com.google.gson.stream.JsonWriter class AcceptedApiChangesJsonFileManager { void emptyAcceptedApiChanges(File jsonFile) { jsonFile.withWriter { fileWriter -> def writer = new JsonWriter(fileWriter) writer.setIndent(" ")
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 1K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/AcceptedApiChangesJsonFileManagerTest.groovy
import spock.lang.Subject import spock.lang.TempDir class AcceptedApiChangesJsonFileManagerTest extends Specification { @TempDir File temporaryFolder @Subject AcceptedApiChangesJsonFileManager jsonFileManager = new AcceptedApiChangesJsonFileManager() def jsonFile def setup() { jsonFile = new File(temporaryFolder, 'acceptedChanges.json') } def "can clean existing API changes"() {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Aug 17 08:32:56 UTC 2021 - 2.5K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/CleanAcceptedApiChanges.groovy
@PathSensitive(PathSensitivity.ABSOLUTE) @InputDirectory abstract DirectoryProperty getJsonFileDirectory() @TaskAction void clean() { def jsonFileManager = new AcceptedApiChangesJsonFileManager() jsonFileDirectory.asFile.get().listFiles() ?.findAll { it.name.endsWith(".json") } ?.each { jsonFileManager.emptyAcceptedApiChanges(it) } }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Jun 05 08:27:29 UTC 2024 - 1.6K bytes - Viewed (0)