-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
106 lines (87 loc) · 3.11 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
plugins {
id 'java'
id 'idea'
id 'checkstyle'
id 'pmd'
id 'com.github.node-gradle.node' version '2.2.4'
id 'net.ltgt.apt' version '0.21'
id 'net.researchgate.release' version '2.8.1'
id 'org.springframework.boot' version '2.3.1.RELEASE'
}
apply plugin: 'io.spring.dependency-management'
group 'org.motechproject.mots'
version '0.1-SNAPSHOT'
repositories {
mavenCentral()
maven { url "http://jaspersoft.artifactoryonline.com/jaspersoft/third-party-ce-artifacts/" }
maven { url "http://jasperreports.sourceforge.net/maven2/" }
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-quartz'
implementation 'org.springframework.boot:spring-boot-starter-mail'
implementation 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.3.1.RELEASE'
implementation 'org.springframework.security:spring-security-jwt'
implementation 'mysql:mysql-connector-java'
implementation 'org.liquibase:liquibase-core'
implementation 'org.apache.commons:commons-lang3:3.10'
implementation 'commons-io:commons-io:2.7'
implementation 'org.apache.poi:poi-ooxml:4.1.2'
implementation 'net.sf.jasperreports:jasperreports:6.13.0'
implementation 'net.sf.supercsv:super-csv:2.4.0'
implementation 'org.mapstruct:mapstruct-jdk8:1.3.1.Final'
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.3.1.Final'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
}
processResources {
filesMatching("**/application.yml") {
expand(project.properties)
}
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
node {
version = '12.18.2'
npmVersion = '6.14.6'
download = true
}
wrapper {
gradleVersion = '6.5.1'
}
checkstyle {
toolVersion '8.34'
configFile = file("checkstyle.xml")
maxWarnings = 0
}
pmd {
toolVersion = '6.25.0'
consoleOutput = true
ignoreFailures = false
ruleSets = []
ruleSetFiles = files("ruleset.xml")
reportsDir = file("build/reports/pmd")
}
defaultTasks 'bootRun'
task webpack(type: NodeTask, dependsOn: 'npmInstall') {
script = project.file('node_modules/.bin/webpack')
args = ['--mode=development']
}
task webpackWatch(type: NodeTask, dependsOn: 'npmInstall') {
script = project.file('node_modules/.bin/webpack')
args = ['--watch', '--mode=development']
}
task webpackProduction(type: NodeTask, dependsOn: 'npmInstall') {
script = project.file('node_modules/.bin/webpack')
args = ['-p']
}
bootJar.dependsOn 'webpackProduction'
bootRun.dependsOn 'webpack'
apply from: 'liquibase.gradle'