| 23723 |
amit.gupta |
1 |
buildscript {
|
|
|
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 |
}
|
|
|
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
|
|
|
22 |
|
|
|
23 |
repositories {
|
|
|
24 |
|
| 26216 |
amit.gupta |
25 |
maven { url "https://repo.maven.apache.org/maven2" }
|
| 29338 |
amit.gupta |
26 |
maven { url 'https://jitpack.io' }
|
| 23723 |
amit.gupta |
27 |
mavenLocal()
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
task copyEnv{
|
|
|
31 |
Set environments = ["dev", "staging", "prod"]
|
|
|
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 |
}
|
|
|
49 |
logger.info("Build is being build by "+environment)
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
dependencies {
|
| 25750 |
amit.gupta |
54 |
compile group: 'org.jsoup', name: 'jsoup', version: '1.7.2'
|
| 23723 |
amit.gupta |
55 |
compile('org.springframework.boot:spring-boot-starter') {
|
|
|
56 |
exclude (module: 'logback-classic')
|
|
|
57 |
exclude (module: 'spring-boot-starter-logging')
|
|
|
58 |
}
|
| 28389 |
amit.gupta |
59 |
//implementation group: 'org.springframework', name: 'spring-context', version: '4.3.6.RELEASE'
|
|
|
60 |
implementation group: 'org.springframework', name: 'spring-context-support', version: '4.3.6.RELEASE'
|
| 28380 |
tejbeer |
61 |
|
| 28389 |
amit.gupta |
62 |
compile group: 'org.apache.velocity', name: 'velocity', version: '1.7'
|
| 23723 |
amit.gupta |
63 |
compile 'org.springframework.boot:spring-boot-starter-log4j2'
|
|
|
64 |
compile ('org.springframework.boot:spring-boot-starter-cache'){
|
|
|
65 |
exclude (module: 'logback-classic')
|
|
|
66 |
exclude (module: 'spring-boot-starter-logging')
|
|
|
67 |
}
|
|
|
68 |
compile project (':profitmandi-common')
|
|
|
69 |
compile project (':profitmandi-dao')
|
| 24434 |
amit.gupta |
70 |
compile 'com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6'
|
|
|
71 |
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6:'
|
|
|
72 |
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
|
| 25750 |
amit.gupta |
73 |
compile group: 'org.jsoup', name: 'jsoup', version: '1.11.3'
|
|
|
74 |
compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '2.41.0'
|
| 26215 |
amit.gupta |
75 |
implementation 'org.jsoup:jsoup:1.11.3'
|
| 29338 |
amit.gupta |
76 |
implementation 'com.github.2captcha:2captcha-java:1.0.1'
|
|
|
77 |
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.3.70'
|
|
|
78 |
implementation 'com.cloudconvert:cloudconvert-java:1.0.7'
|
|
|
79 |
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
|
| 25750 |
amit.gupta |
80 |
|
|
|
81 |
|
| 29338 |
amit.gupta |
82 |
|
| 23723 |
amit.gupta |
83 |
}
|
|
|
84 |
|
|
|
85 |
defaultTasks 'copyEnv', 'build'
|