使用平台 BOM
使用 Platform/BOM?
repositories {
mavenCentral()
}
dependencies {
// DGS BOM/platform dependency. This is the only place you set version of DGS
implementation(platform('com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:3.10.2'))
// DGS dependencies. We don't have to specify a version here!
implementation 'com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter'
implementation 'com.netflix.graphql.dgs:graphql-dgs-subscriptions-websockets-autoconfigure'
//Additional Jackson dependency. We don't need to specify a version, because Jackson is part of the BOM/platform definition.
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-joda'
//Other dependencies...
}最后更新于