Add JsonString recipe to examples (#1230)

* Start recipes module with JsonString recipe

* Make recipes a kotlin project

* Move JsonString sample to examples

* Add license

* Include all java modules

* Add kotlin options

* Spotless

* Remove jvmtarget

I was today years old when I found out 1.7 isn't a valid target

* Make gradle happy

* Add codegen

* Spotless
This commit is contained in:
Zac Sweers
2020-09-25 22:51:05 -04:00
committed by GitHub
parent 44fa05bce1
commit bc85227f29
4 changed files with 89 additions and 2 deletions

View File

@@ -14,11 +14,21 @@
* limitations under the License.
*/
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`java-library`
kotlin("jvm")
kotlin("kapt")
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs = listOf("-progressive")
}
}
dependencies {
kapt(project(":kotlin:codegen"))
compileOnly(Dependencies.jsr305)
implementation(project(":moshi"))
implementation(project(":adapters"))