Subversion Repositories SmartDukaan

Rev

Rev 30212 | Rev 30362 | 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
 
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
    }
49
    logger.info("Build is being build 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', version: '4.3.6.RELEASE'
60
    implementation group: 'org.springframework', name: 'spring-context-support', version: '4.3.6.RELEASE'
61
 
62
    compile group: 'org.apache.velocity', name: 'velocity', version: '1.7'
63
    compile project(':profitmandi-common')
64
    compile project(':profitmandi-dao')
24434 amit.gupta 65
    compile 'com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6'
30212 amit.gupta 66
    compile 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6:'
67
    compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
68
    compile group: 'org.jsoup', name: 'jsoup', version: '1.11.3'
69
    compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '2.41.0'
70
    implementation 'org.jsoup:jsoup:1.11.3'
71
    implementation 'com.github.2captcha:2captcha-java:1.0.1'
72
    implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.3.70'
73
    implementation 'com.cloudconvert:cloudconvert-java:1.0.7'
74
    implementation 'org.apache.httpcomponents:httpclient:4.5.13'
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'
30356 amit.gupta 78
    implementation group: 'org.openpnp', name: 'opencv', version: '3.4.2-0'
30212 amit.gupta 79
    //implementation group: 'org.openpnp', name: 'opencv', version: '4.5.1-2'
80
 
81
 
23723 amit.gupta 82
}
83
 
84
defaultTasks 'copyEnv', 'build'