* graphql-kotlin initial commit * docs : README.md 및 공식 문서 링크 추가 * build : Spring Web MVC(servlet) stack -> Spring WebFlux(reactive) stack 으로 의존성 변경 * build : GraphQL Kotlin Spring Server 의존성 추가 * add graphql package configuration * docs : graphql package 설정 설명 주석 추가 * docs : GraphQL Kotlin 공식 문서 링크 및 제목 수정 * feat : Schema, Query, Mutation, Subscription 추가 * docs : README.md 항목 수정 * feat : GraphQL Context 구현체 추가
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
id("org.springframework.boot") version "2.7.2"
|
|
id("io.spring.dependency-management") version "1.0.12.RELEASE"
|
|
kotlin("jvm") version "1.6.21"
|
|
kotlin("plugin.spring") version "1.6.21"
|
|
}
|
|
|
|
group = "com.banjjoknim"
|
|
version = "0.0.1-SNAPSHOT"
|
|
java.sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.springframework.boot:spring-boot-starter-webflux")
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
|
|
implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
|
testImplementation("io.projectreactor:reactor-test")
|
|
|
|
implementation("com.expediagroup", "graphql-kotlin-spring-server", "6.0.0")
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions {
|
|
freeCompilerArgs = listOf("-Xjsr305=strict")
|
|
jvmTarget = "11"
|
|
}
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|