Skip to content

Instantly share code, notes, and snippets.

View martinbonnin's full-sized avatar
😃

Martin Bonnin martinbonnin

😃
View GitHub Profile
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
name
{
"formatVersion": "1.1",
"component": { [SKIPPED] },
"createdBy": { [SKIPPED] },
"variants": [
{
"name": "js-api",
"attributes": {
"org.gradle.usage": "kotlin-api",
"org.jetbrains.kotlin.platform.type": "js"
kotlin {
sourceSets {
get("commonMain").apply {
dependencies {
implementation("com.github.ajalt:clikt-multiplatform:2.6.0")
}
}
}
}
{
"data": {
"__schema": {
"queryType": {
"name": "IndexDailyQuery"
},
"mutationType": null,
"subscriptionType": null,
"types": [
{
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JApiCmp-Report</title>
<style type="text/css">
body {
font-family: Verdana;
}
.title {
font-weight: bold;
#!/usr/bin/env kscript
@file:DependsOn("com.github.ajalt:clikt:2.4.0")
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.parameters.options.default
import com.github.ajalt.clikt.parameters.options.option
import com.github.ajalt.clikt.parameters.options.required
import com.github.ajalt.clikt.parameters.types.int
class Hello : CliktCommand(name = "hello") {
import groovy.text.SimpleTemplateEngine
apply(plugin = "me.champeau.gradle.japicmp")
tasks.named("jar") {
this as org.gradle.jvm.tasks.Jar
manifest {
attributes(mapOf("Automatic-Module-Name" to "okhttp3"))
}
}
// settings.gradle.kts
pluginManagement {
repositories {
mavenCentral()
google()
}
plugins {
id("com.android.application").version("3.5.2")
id("com.squareup.sqldelight").version("1.2.0")
apply from: "dependencies.gradle"
// A task that displays a greeting
class Greeting extends DefaultTask {
// A configurable greeting
@Input
String input
// Read-only property calculated from the greeting
@OutputFile