Subversion Repositories SmartDukaan

Rev

Rev 23947 | Rev 27028 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22427 ashik.ali 1
apply plugin: 'java'
2
apply plugin: 'maven'
3
apply plugin: 'war'
22874 ashik.ali 4
apply plugin: "eclipse"
22427 ashik.ali 5
 
6
group = 'com.profitmandi'
7
version = '0.0.1-SNAPSHOT'
8
 
9
description = """profitmandi-web"""
10
 
11
sourceCompatibility = 1.8
12
targetCompatibility = 1.8
13
 
14
 
15
 
16
repositories {
17
 
26217 amit.gupta 18
     maven { url "https://repo.maven.apache.org/maven2" }
22427 ashik.ali 19
     mavenCentral()
20
 
21
}
22531 ashik.ali 22
 
23
task run{
24
	Set environments = ["dev", "staging", "prod"]
25
	def environment = "dev"
26
    if ( project.hasProperty("env") ) {
27
    	environment = project.getProperty("env")
28
    	if(!environments.contains(environment)){ 
29
    		logger.warn("Invalid Environment value, Choose any 'dev', 'staging', 'prod'");
30
    		environment = "dev"
31
    	} 
32
    }else{ 
33
    	logger.warn("Invalid key")
34
    }
35
    ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
36
		entry( key: "profile", value: environment)
37
	}
38
	logger.info("Build is being build by "+environment)
39
}
40
 
41
tasks.build.doLast(){
42
	ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
43
		entry( key: "profile", value: "dev")
44
	}
45
}
46
 
47
 
22427 ashik.ali 48
dependencies {
49
	compile project (':profitmandi-common')
50
    compile project (':profitmandi-dao')
51
    compile (group: 'io.springfox', name: 'springfox-swagger-ui', version:'2.5.0'){ 
52
    	exclude(module: 'slf4j-api')
53
    }
54
    compile (group: 'io.springfox', name: 'springfox-swagger2', version:'2.5.0'){
55
    	exclude(module: 'slf4j-api')
56
    }
57
    compile group: 'com.eclipsesource.minimal-json', name: 'minimal-json', version:'0.9.4'
58
    compile group: 'com.google.code.gson', name: 'gson', version:'2.8.0'
59
    compile (group: 'eu.medsea.mimeutil', name: 'mime-util', version:'2.1.1'){ 
60
    	exclude(module: 'slf4j-api')
61
    	exclude(module: 'slf4j-log4j12')
62
    	exclude(module: 'log4j')
63
    }
23704 amit.gupta 64
   //compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.5'
23947 tejbeer 65
 
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'
69
 
22427 ashik.ali 70
}