Gradle
protobuf, gRPCを使っているサーバーと通信するために公式が用意しているコード生成を使用しています。 https://github.com/protocolbuffers/protobuf/tree/master/java https://github.com/grpc/grpc-java https://github.com/grpc/grpc-kotlin (バックエン…
Gradleのプラグインを作成してみたくなったので、作ってみた。以下のリポジトリにコードがあるが、その主要点を書き残す。 https://github.com/matsudamper/kotlin-gradle-plugin-example プラグイン側 build.gradle.kts plugins { // 現状ではGradle Kotlin…
groovy編 https://matsudamper.hatenablog.com/entry/2019/09/17/064542 コード tasks.withType(Jar::class) { manifest { attributes["Main-Class"] = "package.to.MainKt" } from( configurations.runtimeClasspath.map { it.toList().map { if(it.isDirec…