Subversion Repositories SmartDukaan

Rev

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

Rev 22427 Rev 22531
Line 16... Line 16...
16
        
16
        
17
     maven { url "http://repo.maven.apache.org/maven2" }
17
     maven { url "http://repo.maven.apache.org/maven2" }
18
     mavenCentral()
18
     mavenCentral()
19
 
19
 
20
}
20
}
-
 
21
 
-
 
22
task run{
-
 
23
	Set environments = ["dev", "staging", "prod"]
-
 
24
	def environment = "dev"
-
 
25
    if ( project.hasProperty("env") ) {
-
 
26
    	environment = project.getProperty("env")
-
 
27
    	if(!environments.contains(environment)){ 
-
 
28
    		logger.warn("Invalid Environment value, Choose any 'dev', 'staging', 'prod'");
-
 
29
    		environment = "dev"
-
 
30
    	} 
-
 
31
    }else{ 
-
 
32
    	logger.warn("Invalid key")
-
 
33
    }
-
 
34
    ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
-
 
35
		entry( key: "profile", value: environment)
-
 
36
	}
-
 
37
	logger.info("Build is being build by "+environment)
-
 
38
}
-
 
39
 
-
 
40
tasks.build.doLast(){
-
 
41
	ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
-
 
42
		entry( key: "profile", value: "dev")
-
 
43
	}
-
 
44
}
-
 
45
 
-
 
46
 
21
dependencies {
47
dependencies {
22
	compile project (':profitmandi-common')
48
	compile project (':profitmandi-common')
23
    compile project (':profitmandi-dao')
49
    compile project (':profitmandi-dao')
24
    compile (group: 'io.springfox', name: 'springfox-swagger-ui', version:'2.5.0'){ 
50
    compile (group: 'io.springfox', name: 'springfox-swagger-ui', version:'2.5.0'){ 
25
    	exclude(module: 'slf4j-api')
51
    	exclude(module: 'slf4j-api')