Updated spring and dgs
This commit is contained in:
parent
ae023ee293
commit
feedc82a80
@ -1,7 +1,7 @@
|
||||
# GraphQL & Spring Boot (Demo Project)
|
||||
- Spring Boot (2.6)
|
||||
- DGS Framework (4.5.0)
|
||||
- Kotlin (1.5.21)
|
||||
- Spring Boot (2.7)
|
||||
- DGS Framework (4.10.4)
|
||||
- Kotlin (1.6.21)
|
||||
|
||||
# Contributors
|
||||
- Sambo Chea <sombochea@cubetiqs.com>
|
@ -11,13 +11,13 @@ plugins {
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
maven { url = uri("https://m.ctdn.net") }
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
group = "com.cubetiqs"
|
||||
version = "0.0.1-SNAPSHOT"
|
||||
|
||||
val javaVersion = "11"
|
||||
val javaVersion = "17"
|
||||
|
||||
tasks.withType<JavaCompile> {
|
||||
sourceCompatibility = javaVersion
|
||||
|
@ -7,13 +7,12 @@ plugins {
|
||||
id("com.netflix.dgs.codegen")
|
||||
}
|
||||
|
||||
extra["dgsVersion"] = "4.5.0"
|
||||
|
||||
dependencies {
|
||||
api(project(":cubetiq-security-jwt"))
|
||||
|
||||
implementation("com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter:${property("dgsVersion")}")
|
||||
runtimeOnly("com.netflix.graphql.dgs:graphql-dgs-subscriptions-websockets-autoconfigure:${property("dgsVersion")}")
|
||||
implementation(platform("com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:4.10.4"))
|
||||
implementation("com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter")
|
||||
runtimeOnly("com.netflix.graphql.dgs:graphql-dgs-subscriptions-websockets-autoconfigure")
|
||||
|
||||
implementation("org.springframework.boot:spring-boot-starter-security")
|
||||
implementation("org.springframework.boot:spring-boot-starter-actuator")
|
||||
|
@ -9,6 +9,7 @@ import org.springframework.security.config.annotation.method.configuration.Enabl
|
||||
import org.springframework.security.config.annotation.web.builders.HttpSecurity
|
||||
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
|
||||
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
|
||||
import org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer
|
||||
import org.springframework.security.config.http.SessionCreationPolicy
|
||||
|
||||
@Configuration
|
||||
|
1
dgs-graphql/src/main/resources/.gitignore
vendored
Normal file
1
dgs-graphql/src/main/resources/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
application-local.yml
|
@ -3,6 +3,8 @@ server:
|
||||
|
||||
# Spring Boot
|
||||
spring:
|
||||
profiles:
|
||||
active: ${APP_PROFILE:}
|
||||
datasource:
|
||||
url: jdbc:postgresql://${DB_HOST:localhost}:5432/${DB_NAME:graphql-demo}
|
||||
username: ${DB_USER:your-username}
|
||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
@ -1,4 +1,4 @@
|
||||
rootProject.name = "graphql-demo"
|
||||
rootProject.name = "spring-graphql-demo"
|
||||
|
||||
include("dgs-graphql")
|
||||
include("cubetiq-security-jwt")
|
Loading…
Reference in New Issue
Block a user