11plugins {
22 id ' application'
33 id ' checkstyle'
4- id ' jacoco'
4+ id ' org.springframework.boot' version ' 3.0.6'
5+ id ' io.spring.dependency-management' version ' 1.1.0'
6+ id ' org.liquibase.gradle' version ' 2.2.0'
7+ id ' com.github.johnrengelman.processes' version ' 0.5.0'
8+ id ' org.springdoc.openapi-gradle-plugin' version ' 1.6.0'
59 id ' org.siouan.frontend-jdk11' version ' 6.0.0'
6- id ' org.liquibase.gradle' version ' 2.0.4'
7- id ' org.springframework.boot' version ' 2.7.10'
8- id ' io.spring.dependency-management' version ' 1.0.15.RELEASE'
10+ id ' jacoco'
911}
1012
1113group = ' hexlet.code'
12- version = ' 1.0-SNAPSHOT'
13-
14- compileJava {
15- options. release = 17
16- options. encoding = ' UTF-8'
17- }
14+ version = ' 0.0.1-SNAPSHOT'
15+ sourceCompatibility = 20
1816
1917application {
2018 mainClass = ' hexlet.code.AppApplication'
21- applicationDefaultJvmArgs = [' -Dfile.encoding=UTF-8' ]
2219}
2320
24- jacocoTestReport {
25- reports {
26- xml . required = true
21+ configurations {
22+ compileOnly {
23+ extendsFrom annotationProcessor
2724 }
2825}
2926
@@ -32,72 +29,83 @@ repositories {
3229}
3330
3431dependencies {
35- implementation ' org.springframework.boot:spring-boot-starter-data-jpa'
36- implementation ' org.springframework.boot:spring-boot-starter-web'
37- implementation ' org.springframework.boot:spring-boot-starter-validation'
38- implementation ' org.springframework.boot:spring-boot-starter-security'
39- implementation ' io.jsonwebtoken:jjwt-api:0.11.5'
40- implementation ' org.liquibase:liquibase-core'
41- implementation ' com.querydsl:querydsl-core:5.0.0'
42- implementation ' com.querydsl:querydsl-jpa:5.0.0'
43- implementation ' org.springdoc:springdoc-openapi-ui:1.7.0'
44- implementation ' com.rollbar:rollbar-spring-boot-webmvc:1.10.0'
45-
46- runtimeOnly ' io.jsonwebtoken:jjwt-impl:0.11.5'
47- runtimeOnly' io.jsonwebtoken:jjwt-jackson:0.11.5'
48- runtimeOnly ' com.h2database:h2:2.1.214'
49- runtimeOnly ' org.postgresql:postgresql:42.5.4'
50-
51- liquibaseRuntime ' org.liquibase:liquibase-core:4.16.1'
52- liquibaseRuntime ' org.liquibase:liquibase-groovy-dsl:3.0.2'
53- liquibaseRuntime ' info.picocli:picocli:4.6.1'
54- liquibaseRuntime ' com.h2database:h2:2.1.214'
55- liquibaseRuntime ' org.postgresql:postgresql:42.5.4'
56- liquibaseRuntime ' org.liquibase.ext:liquibase-hibernate5:4.16.1'
57- liquibaseRuntime ' org.springframework.boot:spring-boot-starter-data-jpa'
58- liquibaseRuntime(" ch.qos.logback:logback-core:1.4.6" )
59- liquibaseRuntime(" ch.qos.logback:logback-classic:1.4.6" )
60- liquibaseRuntime sourceSets. main. output
61-
62- annotationProcessor ' org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final'
63- annotationProcessor ' javax.annotation:javax.annotation-api:1.3.2'
64- annotationProcessor ' com.querydsl:querydsl-apt:5.0.0:jpa'
65- annotationProcessor ' org.projectlombok:lombok'
32+ developmentOnly ' org.springframework.boot:spring-boot-devtools'
33+
34+ implementation(
35+ ' org.springframework.boot:spring-boot-starter-data-jpa' ,
36+ ' org.springframework.boot:spring-boot-starter-web' ,
37+ ' org.springframework.boot:spring-boot-starter-validation' ,
38+ ' org.springframework.boot:spring-boot-starter-security' ,
39+ ' org.liquibase:liquibase-core' ,
40+ ' org.springdoc:springdoc-openapi-ui:1.7.0' ,
41+ ' io.jsonwebtoken:jjwt:0.9.1' ,
42+ ' org.springdoc:springdoc-openapi-ui:1.7.0' ,
43+ ' com.rollbar:rollbar-spring-boot3-webmvc:1.10.0' ,
44+ ' com.querydsl:querydsl-jpa:5.0.0:jakarta' ,
45+ ' io.jsonwebtoken:jjwt-api:0.11.5' ,
46+ ' org.springframework.boot:spring-boot-starter-test'
47+ )
6648
6749 compileOnly ' org.projectlombok:lombok'
6850
69- testImplementation ' org.springframework.boot:spring-boot-starter-test'
51+ runtimeOnly (
52+ ' com.h2database:h2' ,
53+ ' org.postgresql:postgresql:42.6.0' ,
54+ ' io.jsonwebtoken:jjwt-impl:0.11.5' ,
55+ ' io.jsonwebtoken:jjwt-jackson:0.11.5'
56+ )
57+
58+ liquibaseRuntime(
59+ sourceSets. main. output,
60+ ' org.liquibase:liquibase-core' ,
61+ ' info.picocli:picocli:4.7.1' ,
62+ ' org.liquibase.ext:liquibase-hibernate6:4.21.1' ,
63+ ' org.springframework.boot:spring-boot-starter-data-jpa' ,
64+ ' com.h2database:h2' ,
65+ ' org.postgresql:postgresql:42.5.4' ,
66+ ' org.liquibase:liquibase-groovy-dsl:3.0.2' ,
67+ ' org.liquibase.ext:liquibase-hibernate5:4.16.1' ,
68+ " ch.qos.logback:logback-core:1.4.6" ,
69+ " ch.qos.logback:logback-classic:1.4.6"
70+ )
71+
72+ annotationProcessor(
73+ ' org.projectlombok:lombok' ,
74+ ' com.querydsl:querydsl-apt:5.0.0:jakarta' ,
75+ ' jakarta.persistence:jakarta.persistence-api:3.1.0' ,
76+ ' org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final' ,
77+ ' javax.annotation:javax.annotation-api:1.3.2'
78+ )
79+ }
80+
81+ tasks. named(' test' ) {
82+ useJUnitPlatform()
7083}
7184
72- ext {
73- set(' snakeyaml.version' ,' 1.32' )
85+ compileJava {
86+ options. release = 20
87+ options. encoding = ' UTF-8'
7488}
7589
76- diffChangeLog {
90+ diffChangelog {
7791 dependsOn compileJava
7892}
7993
8094liquibase {
8195 activities {
8296 main {
83- changeLogFile ' src/main/resources/db/changelog/db.changelog-master.yaml'
97+ changelogFile ' src/main/resources/db/changelog/db.changelog-master.yaml'
8498 url ' jdbc:h2:./database73'
85- username ' sa'
86- password ' sa'
87- referenceUrl ' hibernate:spring:hexlet.code.domain.model' +
88- ' ?dialect=org.hibernate.dialect.H2Dialect' +
89- ' &hibernate.physical_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy'
90- // '&hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy'
9199 }
92100 }
93101}
94102
95- tasks. named(' test' ) {
96- useJUnitPlatform()
103+ jacocoTestReport {
104+ reports {
105+ xml. required = true
106+ }
97107}
98108
99- // Frontend (static) build. Runs if no diffs.
100- // *****************************************************************************
101109frontend {
102110 nodeVersion = ' 16.13.1'
103111 installScript = ' install'
@@ -126,7 +134,3 @@ installFrontend {
126134}
127135
128136processResources. dependsOn assembleFrontend
129- // *****************************************************************************
130-
131- task stage (dependsOn : [' clean' , ' installDist' ])
132- installDist. mustRunAfter clean
0 commit comments