Subversion Repositories SmartDukaan

Rev

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

Rev 32171 Rev 33258
Line 14... Line 14...
14
targetCompatibility = 1.8
14
targetCompatibility = 1.8
15
ext['log4j2.version'] = '2.15.0'
15
ext['log4j2.version'] = '2.15.0'
16
 
16
 
17
 
17
 
18
repositories {
18
repositories {
19
        
19
 
20
     mavenCentral()
20
    mavenCentral()
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
 
Line 45... Line 45...
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
	}
-
 
56
 
52
 
57
	compile(group: 'org.apache.velocity', name: 'velocity-tools', version: '2.0') {
53
    compile(group: 'org.apache.velocity', name: 'velocity-tools', version: '1.3') {
58
		exclude(module: 'commons-logging')
54
		exclude(module: 'commons-logging')
59
		exclude(module: 'commons-digester')
55
		exclude(module: 'commons-digester')
60
		//exclude(module: 'commons-collections')
56
		//exclude(module: 'commons-collections')
61
		exclude(module: 'dom4j')
57
		exclude(module: 'dom4j')
62
		exclude(module: 'antlr')
58
		exclude(module: 'antlr')
63
		exclude(module: 'velocity')
59
		exclude(module: 'velocity')
64
 
60
 
65
	}
61
	}
66
   	compile 'com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6'
62
    compile 'com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6'
67
   	compile 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6:'
63
    compile 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6:'
68
	compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
64
	compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
69
	compile group: 'org.apache.commons', name: 'commons-csv', version: '1.5'
65
	compile group: 'org.apache.commons', name: 'commons-csv', version: '1.5'
70
	compile 'org.apache.poi:poi-ooxml:3.16'
66
	compile 'org.apache.poi:poi-ooxml:3.16'
71
    // https://mvnrepository.com/artifact/org.xhtmlrenderer/core-renderer
67
    // https://mvnrepository.com/artifact/org.xhtmlrenderer/core-renderer
72
	compile group: 'org.xhtmlrenderer', name: 'core-renderer', version: 'R8'
68
    compile(group: 'org.xhtmlrenderer', name: 'core-renderer', version: 'R8') {
-
 
69
        exclude(module: 'bcprov-jdk14')
-
 
70
    }
73
 
71
 
74
 
72
 
75
	
-
 
76
	
-
 
77
	
-
 
78
    testCompile "junit:junit:4.12"
73
    testCompile "junit:junit:4.12"
79
	//provided 'org.projectlombok:lombok:1.18.2'
74
	//provided 'org.projectlombok:lombok:1.18.2'
80
}
75
}
81
 
76
 
82
test {
77
test {
83
    testLogging.showStandardStreams = true
78
    testLogging.showStandardStreams = true
84
    // for enable or disable test cases
79
    // for enable or disable test cases
85
    
80
 
86
    exclude 'com/spice/profitmandi/service/generic/GenericServiceTest.class'
81
    exclude 'com/spice/profitmandi/service/generic/GenericServiceTest.class'
87
}
82
}
88
83