Subversion Repositories SmartDukaan

Rev

Rev 32170 | Rev 33258 | Go to most recent revision | 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 {
19
 
29901 amit.gupta 20
     mavenCentral()
22426 ashik.ali 21
     mavenLocal()
22
}
22530 ashik.ali 23
 
24
 
25
task run{
26
	Set environments = ["dev", "staging", "prod"]
27
	def environment = "dev"
28
    if ( project.hasProperty("env") ) {
29
    	environment = project.getProperty("env")
30
    	if(!environments.contains(environment)){ 
31
    		logger.warn("Invalid Environment value, Choose any 'dev', 'staging', 'prod'");
32
    		environment = "dev"
33
    	} 
34
    }else{ 
35
    	logger.warn("Invalid key")
36
    }
37
    ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
38
		entry( key: "profile", value: environment)
39
	}
26216 amit.gupta 40
	logger.warn("Build is being build by "+environment)
22530 ashik.ali 41
}
42
 
43
tasks.build.doLast(){
44
	ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
45
		entry( key: "profile", value: "dev")
46
	}
47
}
48
 
22426 ashik.ali 49
dependencies {
50
    compile project (':profitmandi-common')
51
    compile project (':profitmandi-dao')
30471 amit.gupta 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
 
57
	compile(group: 'org.apache.velocity', name: 'velocity-tools', version: '2.0') {
58
		exclude(module: 'commons-logging')
59
		exclude(module: 'commons-digester')
60
		//exclude(module: 'commons-collections')
61
		exclude(module: 'dom4j')
62
		exclude(module: 'antlr')
63
		exclude(module: 'velocity')
64
 
65
	}
23871 amit.gupta 66
   	compile 'com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6'
67
   	compile 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6:'
68
	compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
23951 amit.gupta 69
	compile group: 'org.apache.commons', name: 'commons-csv', version: '1.5'
25716 amit.gupta 70
	compile 'org.apache.poi:poi-ooxml:3.16'
29901 amit.gupta 71
    // https://mvnrepository.com/artifact/org.xhtmlrenderer/core-renderer
32171 jai.hind 72
	compile group: 'org.xhtmlrenderer', name: 'core-renderer', version: 'R8'
29901 amit.gupta 73
 
74
 
24313 amit.gupta 75
 
76
 
77
 
22860 ashik.ali 78
    testCompile "junit:junit:4.12"
24313 amit.gupta 79
	//provided 'org.projectlombok:lombok:1.18.2'
22426 ashik.ali 80
}
22860 ashik.ali 81
 
82
test {
83
    testLogging.showStandardStreams = true
23114 ashik.ali 84
    // for enable or disable test cases
85
 
23175 ashik.ali 86
    exclude 'com/spice/profitmandi/service/generic/GenericServiceTest.class'
22860 ashik.ali 87
}