- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,585 for gson (0.11 sec)
-
platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/tasks/internal/ValidationProblemSerialization.java
import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParseException; import com.google.gson.JsonSerializationContext; import com.google.gson.JsonSerializer; import com.google.gson.TypeAdapter;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 09:03:53 UTC 2024 - 27.7K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/AcceptedApiChanges.groovy
* See the License for the specific language governing permissions and * limitations under the License. */ package gradlebuild.binarycompatibility import com.google.gson.Gson import com.google.gson.reflect.TypeToken import org.gradle.util.GradleVersion class AcceptedApiChanges { GradleVersion baseVersion Map<ApiChange, String> acceptedChanges
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 1.9K bytes - Viewed (0) -
platforms/extensibility/plugin-development/src/test/groovy/org/gradle/plugin/devel/tasks/internal/ValidationProblemSerializationTest.groovy
given: def problem = problemReporter.create { it.id("id", "label", GradleCoreProblemGroup.validation()) } when: def json = gson.toJson([problem]) def deserialized = ValidationProblemSerialization.parseMessageList(json) then: deserialized.size() == 1 deserialized[0].definition.id.name == "id" deserialized[0].definition.id.displayName == "label"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 08:30:15 UTC 2024 - 9.7K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTask.kt
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. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 2K bytes - Viewed (0) -
platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/tasks/internal/ProblemReportAdapterFactory.java
import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParseException; import com.google.gson.JsonPrimitive; import com.google.gson.TypeAdapter; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 06 13:35:05 UTC 2024 - 4K bytes - Viewed (0) -
platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/tasks/internal/ValidateAction.java
try { //noinspection ResultOfMethodCallIgnored output.createNewFile(); Gson gson = ValidationProblemSerialization.createGsonBuilder().create(); Files.asCharSink(output, Charsets.UTF_8).write(gson.toJson(problemMessages)); } catch (IOException ex) { throw new java.io.UncheckedIOException(ex); } } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 09:10:37 UTC 2024 - 10.1K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/SubprojectsInfo.kt
@get:Internal protected val subprojectsJson = project.layout.projectDirectory.file(".teamcity/subprojects.json") protected fun generateSubprojectsJson(): String { val subprojects = generateSubprojects() val gson = GsonBuilder().setPrettyPrinting().create() return gson.toJson(subprojects) + '\n' } private fun generateSubprojectsDirectories(): List<File> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.9K bytes - Viewed (0) -
build-logic/dependency-modules/src/main/kotlin/gradlebuild.dependency-modules.gradle.kts
* See the License for the specific language governing permissions and * limitations under the License. */ import com.google.gson.Gson import com.google.gson.reflect.TypeToken import com.google.gson.stream.JsonReader import gradlebuild.basics.repoRoot import gradlebuild.basics.isBundleGroovy4 import gradlebuild.modules.extension.ExternalModulesExtension
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jun 05 20:15:18 UTC 2024 - 9.7K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/java-library/module-disabled/tests/buildJavaModule.out
> Task :compileJava FAILED 1 actionable task: 1 executed /home/user/gradle/samples/src/main/java/module-info.java:2: error: module not found: com.google.gson requires com.google.gson; // real module ^ /home/user/gradle/samples/src/main/java/module-info.java:3: error: module not found: org.apache.commons.lang3 requires org.apache.commons.lang3; // automatic module ^ 2 errors
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jun 05 09:29:37 UTC 2024 - 735 bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTask.kt
* limitations under the License. */ package gradlebuild.binarycompatibility import com.google.common.annotations.VisibleForTesting import com.google.gson.Gson import org.gradle.api.DefaultTask import org.gradle.api.file.DirectoryProperty import org.gradle.api.tasks.CacheableTask import org.gradle.api.tasks.InputDirectory import org.gradle.api.tasks.PathSensitive
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 2.9K bytes - Viewed (0)