Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
23723 amit.gupta 1
buildscript {
2
	ext {
3
		springBootVersion = '2.0.2.RELEASE'
4
	}
5
	repositories {
6
		mavenCentral()
7
	}
8
	dependencies {
9
		classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
10
	}
11
}
12
 
25750 amit.gupta 13
 
23723 amit.gupta 14
apply plugin: 'java'
15
apply plugin: 'eclipse'
16
apply plugin: 'org.springframework.boot'
17
apply plugin: 'io.spring.dependency-management'
18
 
19
group = 'com.smartdukaan'
20
version = '0.0.1-SNAPSHOT'
21
sourceCompatibility = 1.8
22
 
23
repositories {
24
 
26216 amit.gupta 25
     maven { url "https://repo.maven.apache.org/maven2" }
23723 amit.gupta 26
     mavenLocal()
27
}
28
 
29
task copyEnv{
30
	Set environments = ["dev", "staging", "prod"]
31
	def environment = "dev"
32
	if ( project.hasProperty("env") ) {
33
		if (environments.contains(project.getProperty("env"))) {
34
			environment = project.getProperty("env");
35
		} else {
36
    		logger.warn("Invalid Environment value, Choose any 'dev', 'staging', 'prod'");
37
	    	logger.info("Environment set to dev");
38
    	}
39
	} else {
40
    	logger.info("Environment set to dev");
41
	}
42
	copy {
43
		from "src/main/resources/META-INF"
44
		into "src/main/resources/META-INF"
45
		include("${environment}.properties")
46
		rename "${environment}.properties", "env.properties"
47
	}
48
	logger.info("Build is being build by "+environment)
49
}
50
 
51
 
52
dependencies {
25750 amit.gupta 53
	compile group: 'org.jsoup', name: 'jsoup', version: '1.7.2'
23723 amit.gupta 54
	compile('org.springframework.boot:spring-boot-starter') {
55
		exclude (module: 'logback-classic')
56
		exclude (module: 'spring-boot-starter-logging')
57
	}
28389 amit.gupta 58
	//implementation group: 'org.springframework', name: 'spring-context', version: '4.3.6.RELEASE'
59
	implementation group: 'org.springframework', name: 'spring-context-support', version: '4.3.6.RELEASE'
28380 tejbeer 60
 
28389 amit.gupta 61
	compile group: 'org.apache.velocity',  name: 'velocity', version: '1.7'
23723 amit.gupta 62
	compile 'org.springframework.boot:spring-boot-starter-log4j2'
63
	compile ('org.springframework.boot:spring-boot-starter-cache'){
64
		exclude (module: 'logback-classic')
65
		exclude (module: 'spring-boot-starter-logging')
66
		}
67
    compile project (':profitmandi-common')
68
    compile project (':profitmandi-dao')
24434 amit.gupta 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'
25750 amit.gupta 72
	compile group: 'org.jsoup', name: 'jsoup', version: '1.11.3'
73
	compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '2.41.0'
26215 amit.gupta 74
	implementation 'org.jsoup:jsoup:1.11.3'
25750 amit.gupta 75
 
76
 
23723 amit.gupta 77
}
78
 
79
defaultTasks 'copyEnv', 'build'