Added: migrations

Fix: removed password field from entity and dto.
This commit is contained in:
KamilM1205 2025-06-29 21:05:03 +04:00
parent 812957b93a
commit ec8f49ea00
7 changed files with 61 additions and 41 deletions

View file

@ -1,49 +1,63 @@
plugins {
java
id("org.springframework.boot") version "3.5.3"
id("io.spring.dependency-management") version "1.1.7"
java
id("org.springframework.boot") version "3.5.3"
id("io.spring.dependency-management") version "1.1.7"
id("org.flywaydb.flyway") version "11.10.0"
}
group = "ru.team58"
version = "0.0.1-SNAPSHOT"
flyway {
url = "jdbc:postgresql://localhost:5432/userdb"
user = "userdb"
password = "1205"
driver = "org.postgresql.Driver"
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
mavenCentral()
}
buildscript {
dependencies {
classpath("org.flywaydb:flyway-database-postgresql:11.10.0")
}
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.flywaydb:flyway-core")
implementation("org.mapstruct:mapstruct:1.6.3")
implementation("org.postgresql:postgresql")
implementation("org.flywaydb:flyway-database-postgresql")
implementation("org.apache.logging.log4j:log4j-api:2.22.1")
implementation("org.apache.logging.log4j:log4j-core:2.22.1")
implementation("org.slf4j:slf4j-api:2.0.13")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.6")
runtimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:2.22.1")
annotationProcessor("org.mapstruct:mapstruct-processor:1.6.3")
compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.flywaydb:flyway-core")
implementation("org.flywaydb:flyway-database-postgresql:11.10.0")
implementation("org.mapstruct:mapstruct:1.6.3")
implementation("org.postgresql:postgresql")
implementation("org.apache.logging.log4j:log4j-api:2.22.1")
implementation("org.apache.logging.log4j:log4j-core:2.22.1")
implementation("org.slf4j:slf4j-api:2.0.13")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.6")
runtimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:2.22.1")
annotationProcessor("org.mapstruct:mapstruct-processor:1.6.3")
compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.withType<Test> {
useJUnitPlatform()
useJUnitPlatform()
}