Subversion Repositories SmartDukaan

Rev

Rev 35851 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
 
35832 amit 30
task run {
31
    Set environments = ["dev", "staging", "prod"]
30212 amit.gupta 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
    }
35832 amit 43
    ant.propertyfile(file: "src/main/resources/META-INF/env.property") {
44
        entry(key: "profile", value: environment)
30212 amit.gupta 45
    }
34554 tejus.loha 46
    logger.info("Build is being built by " + environment)
23723 amit.gupta 47
}
48
 
35832 amit 49
tasks.build.doLast() {
50
    ant.propertyfile(file: "src/main/resources/META-INF/env.property") {
51
        entry(key: "profile", value: "dev")
52
    }
53
}
23723 amit.gupta 54
 
35832 amit 55
 
23723 amit.gupta 56
dependencies {
30212 amit.gupta 57
    compile('org.springframework.boot:spring-boot-starter') {
58
        exclude(module: 'logback-classic')
59
        exclude(module: 'spring-boot-starter-logging')
60
    }
61
    implementation group: 'org.springframework', name: 'spring-context-support', version: '4.3.6.RELEASE'
62
 
63
    compile group: 'org.apache.velocity', name: 'velocity', version: '1.7'
64
    compile project(':profitmandi-common')
65
    compile project(':profitmandi-dao')
24434 amit.gupta 66
    compile 'com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6'
30212 amit.gupta 67
    compile 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6:'
68
    compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
69
    compile group: 'org.jsoup', name: 'jsoup', version: '1.11.3'
70
    compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '2.41.0'
71
    implementation 'org.jsoup:jsoup:1.11.3'
72
    implementation 'org.apache.httpcomponents:httpclient:4.5.13'
73
    implementation 'org.bouncycastle:bcprov-jdk16:1.45'
34101 amit.gupta 74
    //dependency needed to resolve okhttp and further required for selenium
35851 amit 75
    implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.8.0'
34101 amit.gupta 76
 
30212 amit.gupta 77
    // https://mvnrepository.com/artifact/opencv/opencv
35851 amit 78
    implementation group: 'org.openpnp', name: 'opencv', version: '3.4.2-0'
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
 
35832 amit 84
    dependencies {
85
        implementation 'org.jsoup:jsoup:1.18.1'
86
    }
34094 amit.gupta 87
 
35832 amit 88
 
89
 
34554 tejus.loha 90
    implementation('org.springframework.boot:spring-boot-starter-actuator') {
91
        exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
92
    }
93
 
94
    implementation('io.micrometer:micrometer-core') {
95
        exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
96
    }
97
 
98
    implementation('io.micrometer:micrometer-registry-prometheus') {
99
        exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
100
    }
101
 
102
    implementation 'org.springframework.boot:spring-boot-starter-log4j2'
103
 
104
    implementation('org.springframework.boot:spring-boot-starter-web') {
105
        exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
106
    }
107
    implementation 'org.aspectj:aspectjweaver'
108
    implementation ('org.springframework.boot:spring-boot-starter-security'){
109
        exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
110
    }
111
 
34688 amit.gupta 112
 
113
    // Add HikariCP dependency
114
    implementation 'com.zaxxer:HikariCP:3.4.5' // Use the latest version
34860 ranu 115
    implementation 'net.lingala.zip4j:zip4j:2.11.5'
34688 amit.gupta 116
 
36020 amit 117
 
23723 amit.gupta 118
}
119
 
35832 amit 120
defaultTasks 'run', 'build'