Subversion Repositories SmartDukaan

Rev

Rev 33258 | Rev 34687 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33258 Rev 33265
Line 21... Line 21...
21
    mavenLocal()
21
    mavenLocal()
22
}
22
}
23
 
23
 
24
 
24
 
25
task run{
25
task run{
26
	Set environments = ["dev", "staging", "prod"]
26
    Set environments = ["dev", "staging", "prod"]
27
	def environment = "dev"
27
    def environment = "dev"
28
    if (project.hasProperty("env")) {
28
    if (project.hasProperty("env")) {
29
        environment = project.getProperty("env")
29
        environment = project.getProperty("env")
30
        if (!environments.contains(environment)) {
30
        if (!environments.contains(environment)) {
31
            logger.warn("Invalid Environment value, Choose any 'dev', 'staging', 'prod'");
31
            logger.warn("Invalid Environment value, Choose any 'dev', 'staging', 'prod'");
32
            environment = "dev"
32
            environment = "dev"
33
        }
33
        }
34
    } else {
34
    } else {
35
        logger.warn("Invalid key")
35
        logger.warn("Invalid key")
36
    }
36
    }
37
    ant.propertyfile(file: "src/main/resources/META-INF/env.property") {
37
    ant.propertyfile(file: "src/main/resources/META-INF/env.property") {
38
		entry( key: "profile", value: environment)
38
        entry(key: "profile", value: environment)
39
	}
39
    }
40
	logger.warn("Build is being build by "+environment)
40
    logger.warn("Build is being build by " + environment)
41
}
41
}
42
 
42
 
43
tasks.build.doLast(){
43
tasks.build.doLast(){
44
	ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
44
    ant.propertyfile(file: "src/main/resources/META-INF/env.property") {
45
		entry( key: "profile", value: "dev")
45
        entry(key: "profile", value: "dev")
46
	}
46
    }
47
}
47
}
48
 
48
 
49
dependencies {
49
dependencies {
50
    compile project(':profitmandi-common')
50
    compile project(':profitmandi-common')
51
    compile project(':profitmandi-dao')
51
    compile project(':profitmandi-dao')
-
 
52
    compile(group: 'org.apache.velocity', name: 'velocity-engine-core', version: '2.3') {
-
 
53
        exclude(module: 'commons-logging')
-
 
54
        exclude(module: 'commons-digester')
-
 
55
    }
52
 
56
 
53
    compile(group: 'org.apache.velocity', name: 'velocity-tools', version: '1.3') {
57
    compile(group: 'org.apache.velocity', name: 'velocity-tools', version: '2.0') {
54
		exclude(module: 'commons-logging')
58
        exclude(module: 'commons-logging')
55
		exclude(module: 'commons-digester')
59
        exclude(module: 'commons-digester')
56
		//exclude(module: 'commons-collections')
60
        //exclude(module: 'commons-collections')
57
		exclude(module: 'dom4j')
61
        exclude(module: 'dom4j')
58
		exclude(module: 'antlr')
62
        exclude(module: 'antlr')
59
		exclude(module: 'velocity')
63
        exclude(module: 'velocity')
60
 
64
 
61
	}
65
    }
62
    compile 'com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6'
66
    compile 'com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6'
63
    compile 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6:'
67
    compile 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6:'
64
	compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
68
    compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
65
	compile group: 'org.apache.commons', name: 'commons-csv', version: '1.5'
69
    compile group: 'org.apache.commons', name: 'commons-csv', version: '1.5'
66
	compile 'org.apache.poi:poi-ooxml:3.16'
70
    compile 'org.apache.poi:poi-ooxml:3.16'
67
    // https://mvnrepository.com/artifact/org.xhtmlrenderer/core-renderer
71
    // https://mvnrepository.com/artifact/org.xhtmlrenderer/core-renderer
68
    compile(group: 'org.xhtmlrenderer', name: 'core-renderer', version: 'R8') {
72
    compile group: 'org.xhtmlrenderer', name: 'core-renderer', version: 'R8'
69
        exclude(module: 'bcprov-jdk14')
-
 
70
    }
-
 
71
 
73
 
72
 
74
 
73
    testCompile "junit:junit:4.12"
75
    testCompile "junit:junit:4.12"
74
	//provided 'org.projectlombok:lombok:1.18.2'
76
    //provided 'org.projectlombok:lombok:1.18.2'
75
}
77
}
76
 
78
 
77
test {
79
test {
78
    testLogging.showStandardStreams = true
80
    testLogging.showStandardStreams = true
79
    // for enable or disable test cases
81
    // for enable or disable test cases
80
 
82
 
81
    exclude 'com/spice/profitmandi/service/generic/GenericServiceTest.class'
83
    exclude 'com/spice/profitmandi/service/generic/GenericServiceTest.class'
82
}
-
 
83
84
}
-
 
85