Subversion Repositories SmartDukaan

Rev

Rev 27028 | 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: 'war'
22874 ashik.ali 3
apply plugin: "eclipse"
22427 ashik.ali 4
 
5
group = 'com.profitmandi'
6
version = '0.0.1-SNAPSHOT'
7
 
8
description = """profitmandi-web"""
9
 
10
sourceCompatibility = 1.8
11
targetCompatibility = 1.8
12
 
13
 
14
 
15
repositories {
16
 
26217 amit.gupta 17
     maven { url "https://repo.maven.apache.org/maven2" }
22427 ashik.ali 18
     mavenCentral()
19
 
20
}
22531 ashik.ali 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
 
22427 ashik.ali 47
dependencies {
48
	compile project (':profitmandi-common')
49
    compile project (':profitmandi-dao')
27028 tejbeer 50
 
51
 
52
    compile group: 'org.apache.velocity',  name: 'velocity', version: '1.7'
53
 
22427 ashik.ali 54
    compile (group: 'io.springfox', name: 'springfox-swagger-ui', version:'2.5.0'){ 
55
    	exclude(module: 'slf4j-api')
56
    }
57
    compile (group: 'io.springfox', name: 'springfox-swagger2', version:'2.5.0'){
58
    	exclude(module: 'slf4j-api')
59
    }
60
    compile group: 'com.eclipsesource.minimal-json', name: 'minimal-json', version:'0.9.4'
61
    compile group: 'com.google.code.gson', name: 'gson', version:'2.8.0'
62
    compile (group: 'eu.medsea.mimeutil', name: 'mime-util', version:'2.1.1'){ 
63
    	exclude(module: 'slf4j-api')
64
    	exclude(module: 'slf4j-log4j12')
65
    	exclude(module: 'log4j')
66
    }
23704 amit.gupta 67
   //compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.5'
23947 tejbeer 68
 
69
   compile 'com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6'
70
   	compile 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6:'
71
	compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
35389 amit 72
	// https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-api
73
	implementation group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.11.5'
74
 
75
 
22427 ashik.ali 76
}