ng-tracker/build.gradle

133 lines
4.0 KiB
Groovy
Raw Permalink Normal View History

2018-05-04 17:08:19 +04:00
buildscript {
ext {
2019-03-20 14:37:57 +04:00
versionSpringBoot = '2.1.3.RELEASE'
2018-05-04 17:08:19 +04:00
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: versionSpringBoot
}
}
group 'ru.ulstu'
version '0.1.0-SNAPSHOT'
2018-11-14 17:14:56 +04:00
apply plugin: 'application'
2018-05-04 17:08:19 +04:00
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'checkstyle'
2018-11-14 17:14:56 +04:00
mainClassName = 'ru.ulstu.NgTrackerApplication'
2018-05-04 17:08:19 +04:00
build.dependsOn checkstyleMain
bootRun.dependsOn checkstyleMain
sourceCompatibility = 1.8
targetCompatibility = 1.8
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{
assert project.hasProperty("checkstyleVersion")
checkstyle "com.puppycrawl.tools:checkstyle:${checkstyleVersion}"
checkstyle "com.github.sevntu-checkstyle:sevntu-checks:${sevntuChecksVersion}"
}
}
task health(dependsOn: [
'checkstyleMain'
])
jar {
baseName = 'ng-tracker'
}
compileJava {
options.encoding = "UTF-8"
}
repositories {
mavenLocal()
mavenCentral()
}
configurations {
compile.exclude module: "spring-boot-starter-tomcat"
compile.exclude module: "bcmail-jdk14"
compile.exclude module: "bcprov-jdk14"
compile.exclude module: "bctsp-jdk14"
}
dependencies {
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-security'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-aop'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-mail'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-jetty'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-thymeleaf'
2019-03-20 14:37:57 +04:00
compile group: 'nz.net.ultraq.thymeleaf', name: 'thymeleaf-layout-dialect'
compile group: 'org.thymeleaf.extras', name: 'thymeleaf-extras-springsecurity5'
2018-05-04 17:08:19 +04:00
compile group: 'com.fasterxml.jackson.module', name: 'jackson-module-afterburner'
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-hibernate5'
2019-03-20 14:37:57 +04:00
compile group: 'org.postgresql', name: 'postgresql', version: '42.2.5'
2018-05-04 17:08:19 +04:00
2019-03-20 14:37:57 +04:00
compile group: 'org.liquibase', name: 'liquibase-core', version: '3.6.3'
2018-05-04 17:08:19 +04:00
compile group: 'com.mattbertolini', name: 'liquibase-slf4j', version: '2.0.0'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'
compile group: 'org.webjars', name: 'bootstrap', version: '4.1.0'
2018-12-05 18:08:47 +04:00
compile group: 'org.webjars', name: 'bootstrap-select', version: '1.13.3'
2018-05-04 17:08:19 +04:00
compile group: 'org.webjars', name: 'jquery', version: '3.3.1-1'
compile group: 'org.webjars.npm', name: 'jquery.easing', version: '1.4.1'
2018-05-04 17:08:19 +04:00
compile group: 'org.webjars', name: 'font-awesome', version: '4.7.0'
2019-04-17 18:13:21 +04:00
compile group: 'io.springfox', name: 'springfox-swagger2', version: '2.6.0'
compile group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.6.0'
2019-05-13 03:16:37 +04:00
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
2018-05-04 17:08:19 +04:00
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test'
2019-04-17 17:20:20 +04:00
testCompile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.3.1'
2018-05-04 17:08:19 +04:00
}