plugins { id 'java' id 'org.springframework.boot' version '3.2.4' id 'io.spring.dependency-management' version '1.1.4' id 'checkstyle' } group 'ru.ulstu' version '0.1.0-SNAPSHOT' build.dependsOn checkstyleMain bootRun.dependsOn checkstyleMain java { sourceCompatibility = '17' } bootRun { systemProperties = System.properties } 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 { assert project.hasProperty("checkstyleVersion") checkstyle "com.puppycrawl.tools:checkstyle:${checkstyleVersion}" checkstyle "com.github.sevntu-checkstyle:sevntu-checks:${sevntuChecksVersion}" } } task health(dependsOn: [ 'checkstyleMain' ]) jar { enabled = false } bootJar { archiveFileName = String.format('%s-%s.jar', rootProject.name, version) } compileJava { options.encoding = "UTF-8" } repositories { mavenLocal() mavenCentral() } dependencies { implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web' 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-tomcat' implementation group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa' implementation group: 'org.springframework.boot', name: 'spring-boot-starter-thymeleaf' 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.springframework.security', name: 'spring-security-oauth2-client' implementation group: 'org.springframework.security', name: 'spring-security-oauth2-jose' implementation group: 'org.postgresql', name: 'postgresql', version: '42.2.5' implementation group: 'org.liquibase', name: 'liquibase-core', version: '3.6.3' implementation group: 'com.mattbertolini', name: 'liquibase-slf4j', version: '2.0.0' implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.7' implementation group: 'org.webjars', name: 'bootstrap', version: '4.1.0' implementation group: 'org.webjars', name: 'bootstrap-select', version: '1.13.3' implementation group: 'org.webjars', name: 'jquery', version: '3.3.1-1' implementation group: 'org.webjars.npm', name: 'jquery.easing', version: '1.4.1' implementation group: 'org.webjars', name: 'font-awesome', version: '4.7.0' implementation group: 'io.springfox', name: 'springfox-swagger2', version: '2.6.0' implementation group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.6.0' implementation group: 'net.sourceforge.htmlunit', name: 'htmlunit', version: '2.35.0' implementation group: 'xalan', name: 'xalan', version: '2.7.2' testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test' //compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.3.1' //testCompile group: 'org.seleniumhq.selenium', name: 'selenium-support', version: '3.3.1' //testCompile group: 'com.google.guava', name: 'guava', version: '21.0' testImplementation group: 'org.mockito', name: 'mockito-all', version: '1.10.19' }