| 23723 |
amit.gupta |
1 |
buildscript {
|
| 30212 |
amit.gupta |
2 |
ext {
|
|
|
3 |
springBootVersion = '2.0.2.RELEASE'
|
|
|
4 |
}
|
|
|
5 |
repositories {
|
|
|
6 |
mavenCentral()
|
|
|
7 |
}
|
|
|
8 |
dependencies {
|
|
|
9 |
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
|
10 |
}
|
| 23723 |
amit.gupta |
11 |
}
|
|
|
12 |
|
| 25750 |
amit.gupta |
13 |
|
| 23723 |
amit.gupta |
14 |
apply plugin: 'java'
|
|
|
15 |
apply plugin: 'eclipse'
|
|
|
16 |
apply plugin: 'org.springframework.boot'
|
|
|
17 |
apply plugin: 'io.spring.dependency-management'
|
|
|
18 |
|
|
|
19 |
group = 'com.smartdukaan'
|
|
|
20 |
version = '0.0.1-SNAPSHOT'
|
|
|
21 |
sourceCompatibility = 1.8
|
| 29700 |
amit.gupta |
22 |
ext['log4j2.version'] = '2.16.0'
|
| 23723 |
amit.gupta |
23 |
repositories {
|
| 30212 |
amit.gupta |
24 |
|
|
|
25 |
maven { url "https://repo.maven.apache.org/maven2" }
|
|
|
26 |
maven { url 'https://jitpack.io' }
|
|
|
27 |
mavenLocal()
|
| 23723 |
amit.gupta |
28 |
}
|
|
|
29 |
|
| 30212 |
amit.gupta |
30 |
task copyEnv {
|
|
|
31 |
Set environments = ["dev", "staging", "prod", "run"]
|
|
|
32 |
def environment = "dev"
|
|
|
33 |
if (project.hasProperty("env")) {
|
|
|
34 |
if (environments.contains(project.getProperty("env"))) {
|
|
|
35 |
environment = project.getProperty("env");
|
|
|
36 |
} else {
|
|
|
37 |
logger.warn("Invalid Environment value, Choose any 'dev', 'staging', 'prod'");
|
|
|
38 |
logger.info("Environment set to dev");
|
|
|
39 |
}
|
|
|
40 |
} else {
|
|
|
41 |
logger.info("Environment set to dev");
|
|
|
42 |
}
|
|
|
43 |
copy {
|
|
|
44 |
from "src/main/resources/META-INF"
|
|
|
45 |
into "src/main/resources/META-INF"
|
|
|
46 |
include("${environment}.properties")
|
|
|
47 |
rename "${environment}.properties", "env.properties"
|
|
|
48 |
}
|
| 34554 |
tejus.loha |
49 |
logger.info("Build is being built by " + environment)
|
| 23723 |
amit.gupta |
50 |
}
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
dependencies {
|
| 30212 |
amit.gupta |
54 |
compile group: 'org.jsoup', name: 'jsoup', version: '1.7.2'
|
|
|
55 |
compile('org.springframework.boot:spring-boot-starter') {
|
|
|
56 |
exclude(module: 'logback-classic')
|
|
|
57 |
exclude(module: 'spring-boot-starter-logging')
|
|
|
58 |
}
|
|
|
59 |
implementation group: 'org.springframework', name: 'spring-context-support', version: '4.3.6.RELEASE'
|
|
|
60 |
|
|
|
61 |
compile group: 'org.apache.velocity', name: 'velocity', version: '1.7'
|
|
|
62 |
compile project(':profitmandi-common')
|
|
|
63 |
compile project(':profitmandi-dao')
|
| 24434 |
amit.gupta |
64 |
compile 'com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6'
|
| 30212 |
amit.gupta |
65 |
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6:'
|
|
|
66 |
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
|
|
|
67 |
compile group: 'org.jsoup', name: 'jsoup', version: '1.11.3'
|
|
|
68 |
compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '2.41.0'
|
|
|
69 |
implementation 'org.jsoup:jsoup:1.11.3'
|
|
|
70 |
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
|
|
|
71 |
implementation 'org.bouncycastle:bcprov-jdk16:1.45'
|
| 34101 |
amit.gupta |
72 |
//dependency needed to resolve okhttp and further required for selenium
|
|
|
73 |
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.3.70'
|
|
|
74 |
|
| 30212 |
amit.gupta |
75 |
// https://mvnrepository.com/artifact/opencv/opencv
|
| 34094 |
amit.gupta |
76 |
//implementation group: 'org.openpnp', name: 'opencv', version: '4.3.0-0'
|
|
|
77 |
implementation group: 'org.openpnp', name: 'opencv', version: '3.4.2-0'
|
|
|
78 |
//implementation group: 'org.openpnp', name: 'opencv', version: '4.5.1-2'
|
| 34039 |
vikas.jang |
79 |
implementation('com.google.auth:google-auth-library-oauth2-http:1.17.0') {
|
|
|
80 |
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
|
|
|
81 |
exclude group: 'com.google.guava', module: 'guava'
|
|
|
82 |
}
|
| 30212 |
amit.gupta |
83 |
|
| 34094 |
amit.gupta |
84 |
|
| 34554 |
tejus.loha |
85 |
implementation('org.springframework.boot:spring-boot-starter-actuator') {
|
|
|
86 |
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
implementation('io.micrometer:micrometer-core') {
|
|
|
90 |
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
|
|
|
91 |
}
|
|
|
92 |
|
|
|
93 |
implementation('io.micrometer:micrometer-registry-prometheus') {
|
|
|
94 |
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
|
|
|
95 |
}
|
|
|
96 |
|
|
|
97 |
implementation 'org.springframework.boot:spring-boot-starter-log4j2'
|
|
|
98 |
|
|
|
99 |
implementation('org.springframework.boot:spring-boot-starter-web') {
|
|
|
100 |
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
|
|
|
101 |
}
|
|
|
102 |
implementation 'org.aspectj:aspectjweaver'
|
|
|
103 |
implementation ('org.springframework.boot:spring-boot-starter-security'){
|
|
|
104 |
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
|
|
|
105 |
}
|
|
|
106 |
|
| 34688 |
amit.gupta |
107 |
|
|
|
108 |
// Add HikariCP dependency
|
|
|
109 |
implementation 'com.zaxxer:HikariCP:3.4.5' // Use the latest version
|
| 34860 |
ranu |
110 |
implementation 'net.lingala.zip4j:zip4j:2.11.5'
|
| 34688 |
amit.gupta |
111 |
|
| 23723 |
amit.gupta |
112 |
}
|
|
|
113 |
|
|
|
114 |
defaultTasks 'copyEnv', 'build'
|