Skip to content

Update dependencies and gradle config #640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = "Libraries for running a GraphQL server in Kotlin"
extra["isReleaseVersion"] = !version.toString().endsWith("SNAPSHOT")

plugins {
id("org.jetbrains.kotlin.jvm")
kotlin("jvm")
id("org.jetbrains.dokka") apply false
id("org.jlleitschuh.gradle.ktlint")
id("io.gitlab.arturbosch.detekt")
Expand Down Expand Up @@ -49,6 +49,7 @@ allprojects {

subprojects {
val kotlinVersion: String by project
val kotlinCoroutinesVersion: String by project
val junitVersion: String by project
val mockkVersion: String by project

Expand Down Expand Up @@ -172,8 +173,10 @@ subprojects {
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5:$kotlinVersion")
implementation(kotlin("stdlib", kotlinVersion))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$kotlinCoroutinesVersion")
testImplementation(kotlin("test", kotlinVersion))
testImplementation(kotlin("test-junit5", kotlinVersion))
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
testImplementation("io.mockk:mockk:$mockkVersion")
Expand Down
7 changes: 4 additions & 3 deletions examples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import io.gitlab.arturbosch.detekt.detekt
import java.util.Properties

plugins {
id("org.jetbrains.kotlin.jvm")
kotlin("jvm")
id("org.jlleitschuh.gradle.ktlint")
id("io.gitlab.arturbosch.detekt")
}
Expand Down Expand Up @@ -41,8 +41,9 @@ subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")

dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5:$kotlinVersion")
implementation(kotlin("stdlib", kotlinVersion))
implementation("com.expediagroup:graphql-kotlin-spring-server")
testImplementation(kotlin("test-junit5", kotlinVersion))
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
}
Expand Down
8 changes: 3 additions & 5 deletions examples/federation/base-app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
description = "An example spring service for federation that implements some basic types"

plugins {
id("org.jetbrains.kotlin.plugin.spring")
kotlin("plugin.spring")
id("org.springframework.boot")
}

dependencies {
implementation("com.expediagroup:graphql-kotlin-spring-server")
}
8 changes: 3 additions & 5 deletions examples/federation/extend-app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
description = "An example spring service for federation that extends the basic types with new fields"

plugins {
id("org.jetbrains.kotlin.plugin.spring")
kotlin("plugin.spring")
id("org.springframework.boot")
}

dependencies {
implementation("com.expediagroup:graphql-kotlin-spring-server")
}
4 changes: 2 additions & 2 deletions examples/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ pluginManagement {
val springBootVersion: String by properties

plugins {
id("org.jetbrains.kotlin.jvm") version kotlinVersion
id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
kotlin("jvm") version kotlinVersion
kotlin("plugin.spring") version kotlinVersion
id("io.gitlab.arturbosch.detekt") version detektVersion
id("org.jlleitschuh.gradle.ktlint") version ktlintPluginVersion
id("org.springframework.boot") version springBootVersion
Expand Down
5 changes: 3 additions & 2 deletions examples/spring/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
description = "An example GraphQL Spring server"

plugins {
id("org.jetbrains.kotlin.plugin.spring")
kotlin("plugin.spring")
id("org.springframework.boot")
}

val springBootVersion: String by project
val reactorVersion: String by project

dependencies {
implementation("com.expediagroup:graphql-kotlin-spring-server")
testImplementation("org.springframework.boot:spring-boot-starter-test:$springBootVersion")
testImplementation("io.projectreactor:reactor-test:$reactorVersion")
}
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ systemProp.org.gradle.internal.publish.checksums.insecure=true
org.gradle.jvmargs=-Xmx2g -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError

# dependencies
kotlinVersion = 1.3.61
kotlinCoroutinesVersion = 1.3.3
kotlinVersion = 1.3.70
kotlinCoroutinesVersion = 1.3.5

graphQLJavaVersion = 14.0
jacksonVersion = 2.10.2
Expand All @@ -27,10 +27,10 @@ reactorExtensionsVersion = 1.0.2.RELEASE
# test dependency versions
junitVersion = 5.6.0
mockkVersion = 1.9.3
rxjavaVersion = 3.0.0
rxjavaVersion = 3.0.1

# plugin versions
detektVersion = 1.5.1
detektVersion = 1.6.0
dokkaVersion = 0.10.1
jacocoVersion = 0.8.5
ktlintVersion = 0.36.0
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
7 changes: 2 additions & 5 deletions graphql-kotlin-schema-generator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@ val classGraphVersion: String by project
val graphQLJavaVersion: String by project
val jacksonVersion: String by project
val kotlinVersion: String by project
val kotlinCoroutinesVersion: String by project
val rxjavaVersion: String by project

dependencies {
api("com.graphql-java:graphql-java:$graphQLJavaVersion")
// TODO change below from api to implementation?
api("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$kotlinCoroutinesVersion")
api("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
api("io.github.classgraph:classgraph:$classGraphVersion")
api("com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion")
implementation(kotlin("reflect", kotlinVersion))
implementation("io.github.classgraph:classgraph:$classGraphVersion")
testImplementation("io.reactivex.rxjava3:rxjava:$rxjavaVersion")
}

Expand Down
7 changes: 4 additions & 3 deletions graphql-kotlin-spring-server/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
description = "Spring Boot autoconfiguration library for creating reactive GraphQL server"

plugins {
id("org.jetbrains.kotlin.plugin.spring")
id("org.jetbrains.kotlin.kapt")
kotlin("plugin.spring")
kotlin("kapt")
}

val kotlinCoroutinesVersion: String by project
Expand All @@ -13,9 +13,10 @@ val reactorExtensionsVersion: String by project
dependencies {
api(project(path = ":graphql-kotlin-federation"))
api("org.springframework.boot:spring-boot-starter-webflux:$springBootVersion")
kapt("org.springframework.boot:spring-boot-configuration-processor:$springBootVersion")
api("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:$kotlinCoroutinesVersion")
api("io.projectreactor.kotlin:reactor-kotlin-extensions:$reactorExtensionsVersion")
api("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:$kotlinCoroutinesVersion")
kapt("org.springframework.boot:spring-boot-configuration-processor:$springBootVersion")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinCoroutinesVersion")
testImplementation("org.springframework.boot:spring-boot-starter-test:$springBootVersion")
testImplementation("io.projectreactor:reactor-test:$reactorVersion")
Expand Down
6 changes: 3 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ pluginManagement {
val stagingPluginVersion: String by settings

plugins {
id("org.jetbrains.kotlin.jvm") version kotlinVersion
id("org.jetbrains.kotlin.kapt") version kotlinVersion
id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
kotlin("jvm") version kotlinVersion
kotlin("kapt") version kotlinVersion
kotlin("plugin.spring") version kotlinVersion
id("io.gitlab.arturbosch.detekt") version detektVersion
id("org.jlleitschuh.gradle.ktlint") version ktlintPluginVersion
id("org.jetbrains.dokka") version dokkaVersion
Expand Down