| Line 1... |
Line 1... |
| 1 |
buildscript {
|
1 |
buildscript {
|
| 2 |
ext {
|
2 |
ext {
|
| 3 |
springBootVersion = '2.0.2.RELEASE'
|
3 |
springBootVersion = '2.0.2.RELEASE'
|
| 4 |
}
|
4 |
}
|
| 5 |
repositories {
|
5 |
repositories {
|
| 6 |
mavenCentral()
|
6 |
mavenCentral()
|
| 7 |
}
|
7 |
}
|
| 8 |
dependencies {
|
8 |
dependencies {
|
| 9 |
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
9 |
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
| 10 |
}
|
10 |
}
|
| 11 |
}
|
11 |
}
|
| 12 |
|
12 |
|
| 13 |
|
13 |
|
| 14 |
apply plugin: 'java'
|
14 |
apply plugin: 'java'
|
| 15 |
apply plugin: 'eclipse'
|
15 |
apply plugin: 'eclipse'
|
| Line 19... |
Line 19... |
| 19 |
group = 'com.smartdukaan'
|
19 |
group = 'com.smartdukaan'
|
| 20 |
version = '0.0.1-SNAPSHOT'
|
20 |
version = '0.0.1-SNAPSHOT'
|
| 21 |
sourceCompatibility = 1.8
|
21 |
sourceCompatibility = 1.8
|
| 22 |
ext['log4j2.version'] = '2.16.0'
|
22 |
ext['log4j2.version'] = '2.16.0'
|
| 23 |
repositories {
|
23 |
repositories {
|
| 24 |
|
24 |
|
| 25 |
maven { url "https://repo.maven.apache.org/maven2" }
|
25 |
maven { url "https://repo.maven.apache.org/maven2" }
|
| 26 |
maven { url 'https://jitpack.io' }
|
26 |
maven { url 'https://jitpack.io' }
|
| 27 |
mavenLocal()
|
27 |
mavenLocal()
|
| 28 |
}
|
28 |
}
|
| 29 |
|
29 |
|
| 30 |
task copyEnv{
|
30 |
task copyEnv {
|
| 31 |
Set environments = ["dev", "staging", "prod"]
|
31 |
Set environments = ["dev", "staging", "prod", "run"]
|
| 32 |
def environment = "dev"
|
32 |
def environment = "dev"
|
| 33 |
if ( project.hasProperty("env") ) {
|
33 |
if (project.hasProperty("env")) {
|
| 34 |
if (environments.contains(project.getProperty("env"))) {
|
34 |
if (environments.contains(project.getProperty("env"))) {
|
| 35 |
environment = project.getProperty("env");
|
35 |
environment = project.getProperty("env");
|
| 36 |
} else {
|
36 |
} else {
|
| 37 |
logger.warn("Invalid Environment value, Choose any 'dev', 'staging', 'prod'");
|
37 |
logger.warn("Invalid Environment value, Choose any 'dev', 'staging', 'prod'");
|
| 38 |
logger.info("Environment set to dev");
|
38 |
logger.info("Environment set to dev");
|
| 39 |
}
|
39 |
}
|
| 40 |
} else {
|
40 |
} else {
|
| 41 |
logger.info("Environment set to dev");
|
41 |
logger.info("Environment set to dev");
|
| 42 |
}
|
42 |
}
|
| 43 |
copy {
|
43 |
copy {
|
| 44 |
from "src/main/resources/META-INF"
|
44 |
from "src/main/resources/META-INF"
|
| 45 |
into "src/main/resources/META-INF"
|
45 |
into "src/main/resources/META-INF"
|
| 46 |
include("${environment}.properties")
|
46 |
include("${environment}.properties")
|
| 47 |
rename "${environment}.properties", "env.properties"
|
47 |
rename "${environment}.properties", "env.properties"
|
| 48 |
}
|
48 |
}
|
| 49 |
logger.info("Build is being build by "+environment)
|
49 |
logger.info("Build is being build by " + environment)
|
| 50 |
}
|
50 |
}
|
| 51 |
|
51 |
|
| 52 |
|
52 |
|
| 53 |
dependencies {
|
53 |
dependencies {
|
| 54 |
compile group: 'org.jsoup', name: 'jsoup', version: '1.7.2'
|
54 |
compile group: 'org.jsoup', name: 'jsoup', version: '1.7.2'
|
| 55 |
compile('org.springframework.boot:spring-boot-starter') {
|
55 |
compile('org.springframework.boot:spring-boot-starter') {
|
| 56 |
exclude (module: 'logback-classic')
|
56 |
exclude(module: 'logback-classic')
|
| 57 |
exclude (module: 'spring-boot-starter-logging')
|
57 |
exclude(module: 'spring-boot-starter-logging')
|
| 58 |
}
|
58 |
}
|
| 59 |
//implementation group: 'org.springframework', name: 'spring-context', version: '4.3.6.RELEASE'
|
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'
|
60 |
implementation group: 'org.springframework', name: 'spring-context-support', version: '4.3.6.RELEASE'
|
| 61 |
|
61 |
|
| 62 |
compile group: 'org.apache.velocity', name: 'velocity', version: '1.7'
|
62 |
compile group: 'org.apache.velocity', name: 'velocity', version: '1.7'
|
| 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')
|
63 |
compile project(':profitmandi-common')
|
| 69 |
compile project (':profitmandi-dao')
|
64 |
compile project(':profitmandi-dao')
|
| 70 |
compile 'com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6'
|
65 |
compile 'com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6'
|
| 71 |
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6:'
|
66 |
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6:'
|
| 72 |
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
|
67 |
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
|
| 73 |
compile group: 'org.jsoup', name: 'jsoup', version: '1.11.3'
|
68 |
compile group: 'org.jsoup', name: 'jsoup', version: '1.11.3'
|
| 74 |
compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '2.41.0'
|
69 |
compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '2.41.0'
|
| 75 |
implementation 'org.jsoup:jsoup:1.11.3'
|
70 |
implementation 'org.jsoup:jsoup:1.11.3'
|
| 76 |
implementation 'com.github.2captcha:2captcha-java:1.0.1'
|
71 |
implementation 'com.github.2captcha:2captcha-java:1.0.1'
|
| 77 |
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.3.70'
|
72 |
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.3.70'
|
| 78 |
implementation 'com.cloudconvert:cloudconvert-java:1.0.7'
|
73 |
implementation 'com.cloudconvert:cloudconvert-java:1.0.7'
|
| 79 |
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
|
74 |
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
|
| 80 |
|
- |
|
| - |
|
75 |
implementation 'org.bouncycastle:bcprov-jdk16:1.45'
|
| - |
|
76 |
// https://mvnrepository.com/artifact/opencv/opencv
|
| - |
|
77 |
implementation group: 'org.openpnp', name: 'opencv', version: '4.3.0-0'
|
| - |
|
78 |
//implementation group: 'org.openpnp', name: 'opencv', version: '4.5.1-2'
|
| 81 |
|
79 |
|
| 82 |
|
80 |
|
| 83 |
}
|
81 |
}
|
| 84 |
|
82 |
|
| 85 |
defaultTasks 'copyEnv', 'build'
|
83 |
defaultTasks 'copyEnv', 'build'
|
| 86 |
|
84 |
|