ng-tracker/build.gradle

121 lines
3.9 KiB
Groovy
Raw Permalink Normal View History

plugins {
id 'java'
id 'org.springframework.boot' version '3.2.4'
id 'io.spring.dependency-management' version '1.1.4'
id 'checkstyle'
2018-05-04 17:08:19 +04:00
}
group 'ru.ulstu'
version '0.1.0-SNAPSHOT'
build.dependsOn checkstyleMain
bootRun.dependsOn checkstyleMain
java {
sourceCompatibility = '17'
}
2018-05-04 17:08:19 +04:00
bootRun {
systemProperties = System.properties
}
2018-05-04 17:08:19 +04:00
checkstyle {
project.ext.checkstyleVersion = '8.8'
project.ext.sevntuChecksVersion = '1.28.0'
repositories {
mavenLocal()
mavenCentral()
}
ignoreFailures = false
showViolations = true
maxErrors = 1
maxWarnings = 1
configFile = file("${project.rootDir}/checkstyle.xml")
//sourceSets = [sourceSets.main]
//showViolations = true
//reportsDir = file("$project.buildDir/checkstyleReports")
//configProperties = ['baseDir': "$project.projectDir"]
//https://discuss.gradle.org/t/some-checkstyle-rules-dont-work-in-gradle/16102/4
checkstyleMain {
source = sourceSets.main.allSource
}
configurations {
checkstyle
}
dependencies {
2018-05-04 17:08:19 +04:00
assert project.hasProperty("checkstyleVersion")
checkstyle "com.puppycrawl.tools:checkstyle:${checkstyleVersion}"
checkstyle "com.github.sevntu-checkstyle:sevntu-checks:${sevntuChecksVersion}"
}
}
task health(dependsOn: [
'checkstyleMain'
])
2024-05-02 13:59:12 +04:00
test {
useJUnitPlatform()
}
2018-05-04 17:08:19 +04:00
jar {
enabled = false
}
bootJar {
archiveFileName = String.format('%s-%s.jar', rootProject.name, version)
2018-05-04 17:08:19 +04:00
}
compileJava {
options.encoding = "UTF-8"
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
2024-05-02 13:59:12 +04:00
implementation('org.springframework.boot:spring-boot-starter-web') {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
}
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-security'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-aop'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-mail'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-jetty'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-thymeleaf'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-validation'
implementation group: 'nz.net.ultraq.thymeleaf', name: 'thymeleaf-layout-dialect'
implementation group: 'org.thymeleaf.extras', name: 'thymeleaf-extras-springsecurity6'
implementation group: 'com.fasterxml.jackson.module', name: 'jackson-module-afterburner'
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-hibernate5'
implementation group: 'org.postgresql', name: 'postgresql', version: '42.2.5'
implementation group: 'org.liquibase', name: 'liquibase-core', version: '4.27.0'
implementation group: 'com.mattbertolini', name: 'liquibase-slf4j', version: '2.0.0'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'
2024-05-02 13:59:12 +04:00
implementation group: 'org.webjars', name: 'bootstrap', version: '5.3.3'
runtimeOnly group: 'org.webjars', name: 'bootstrap-select', version: '1.4.2'
implementation group: 'org.webjars', name: 'jquery', version: '3.7.1'
implementation group: 'org.webjars', name: 'jquery-easing', version: '1.4.1'
implementation group: 'org.webjars', name: 'font-awesome', version: '4.7.0'
implementation group: 'org.springdoc', name: 'springdoc-openapi-ui', version: '1.8.0'
implementation group: 'net.sourceforge.htmlunit', name: 'htmlunit', version: '2.35.0'
implementation group: 'xalan', name: 'xalan', version: '2.7.2'
2024-05-02 13:59:12 +04:00
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-test'
2024-05-02 13:27:11 +04:00
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.10.2'
2019-11-21 08:37:37 +04:00
}