Subversion Repositories SmartDukaan

Rev

Rev 34687 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22426 ashik.ali 1
apply plugin: 'java'
2
apply plugin: 'maven'
3
apply plugin: 'war'
24313 amit.gupta 4
apply plugin: 'eclipse'
5
//apply plugin: 'nebula.provided-base'
22426 ashik.ali 6
 
24313 amit.gupta 7
 
22426 ashik.ali 8
group = 'com.profitmandi'
9
version = '0.0.1-SNAPSHOT'
10
 
11
description = """profitmandi-fofo"""
12
 
13
sourceCompatibility = 1.8
14
targetCompatibility = 1.8
29901 amit.gupta 15
ext['log4j2.version'] = '2.15.0'
22426 ashik.ali 16
 
17
 
18
repositories {
33258 ranu 19
 
20
    mavenCentral()
21
    mavenLocal()
22426 ashik.ali 22
}
22530 ashik.ali 23
 
24
 
35433 amit 25
task run{
33265 ranu 26
    Set environments = ["dev", "staging", "prod"]
27
    def environment = "dev"
35433 amit 28
    if ( project.hasProperty("env") ) {
33258 ranu 29
        environment = project.getProperty("env")
35433 amit 30
        if(!environments.contains(environment)){
33258 ranu 31
            logger.warn("Invalid Environment value, Choose any 'dev', 'staging', 'prod'");
32
            environment = "dev"
33
        }
35433 amit 34
    }else{
33258 ranu 35
        logger.warn("Invalid key")
22530 ashik.ali 36
    }
35433 amit 37
    ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
38
        entry( key: "profile", value: environment)
33265 ranu 39
    }
35433 amit 40
    logger.warn("Build is being build by "+environment)
22530 ashik.ali 41
}
42
 
35433 amit 43
tasks.build.doLast(){
44
    ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
45
        entry( key: "profile", value: "dev")
33265 ranu 46
    }
22530 ashik.ali 47
}
48
 
22426 ashik.ali 49
dependencies {
35433 amit 50
    compile project (':profitmandi-common')
51
    compile project (':profitmandi-dao')
30471 amit.gupta 52
 
35433 amit 53
    compile(group: 'org.apache.velocity', name: 'velocity-tools', version: '1.3') {
33265 ranu 54
        exclude(module: 'commons-logging')
55
        exclude(module: 'commons-digester')
56
        //exclude(module: 'commons-collections')
57
        exclude(module: 'dom4j')
58
        exclude(module: 'antlr')
59
        exclude(module: 'velocity')
30471 amit.gupta 60
 
33265 ranu 61
    }
33258 ranu 62
    compile 'com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6'
63
    compile 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6:'
33265 ranu 64
    compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
65
    compile group: 'org.apache.commons', name: 'commons-csv', version: '1.5'
66
    compile 'org.apache.poi:poi-ooxml:3.16'
34687 amit.gupta 67
    // Add HikariCP dependency
68
    implementation 'com.zaxxer:HikariCP:3.4.5' // Use the latest version
35433 amit 69
    // https://mvnrepository.com/artifact/org.xhtmlrenderer/core-renderer
70
    compile (group: 'org.xhtmlrenderer', name: 'core-renderer', version: 'R8') {
71
        exclude(module : 'bcprov-jdk14')
72
    }
29901 amit.gupta 73
 
35433 amit 74
 
75
 
76
 
22860 ashik.ali 77
    testCompile "junit:junit:4.12"
33265 ranu 78
    //provided 'org.projectlombok:lombok:1.18.2'
22426 ashik.ali 79
}
22860 ashik.ali 80
 
81
test {
82
    testLogging.showStandardStreams = true
23114 ashik.ali 83
    // for enable or disable test cases
33258 ranu 84
 
23175 ashik.ali 85
    exclude 'com/spice/profitmandi/service/generic/GenericServiceTest.class'
33265 ranu 86
}