Subversion Repositories SmartDukaan

Rev

Rev 23723 | Rev 25750 | 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
 
13
apply plugin: 'java'
14
apply plugin: 'eclipse'
15
apply plugin: 'org.springframework.boot'
16
apply plugin: 'io.spring.dependency-management'
17
 
18
group = 'com.smartdukaan'
19
version = '0.0.1-SNAPSHOT'
20
sourceCompatibility = 1.8
21
 
22
repositories {
23
 
24
     maven { url "http://repo.maven.apache.org/maven2" }
25
     mavenLocal()
26
}
27
 
28
task copyEnv{
29
	Set environments = ["dev", "staging", "prod"]
30
	def environment = "dev"
31
	if ( project.hasProperty("env") ) {
32
		if (environments.contains(project.getProperty("env"))) {
33
			environment = project.getProperty("env");
34
		} else {
35
    		logger.warn("Invalid Environment value, Choose any 'dev', 'staging', 'prod'");
36
	    	logger.info("Environment set to dev");
37
    	}
38
	} else {
39
    	logger.info("Environment set to dev");
40
	}
41
	copy {
42
		from "src/main/resources/META-INF"
43
		into "src/main/resources/META-INF"
44
		include("${environment}.properties")
45
		rename "${environment}.properties", "env.properties"
46
	}
47
	logger.info("Build is being build by "+environment)
48
}
49
 
50
 
51
dependencies {
52
	compile('org.springframework.boot:spring-boot-starter') {
53
		exclude (module: 'logback-classic')
54
		exclude (module: 'spring-boot-starter-logging')
55
	}
56
	compile 'org.springframework.boot:spring-boot-starter-log4j2'
57
	compile ('org.springframework.boot:spring-boot-starter-cache'){
58
		exclude (module: 'logback-classic')
59
		exclude (module: 'spring-boot-starter-logging')
60
		}
61
    compile project (':profitmandi-common')
62
    compile project (':profitmandi-dao')
24434 amit.gupta 63
    compile 'com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6'
64
   	compile 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6:'
65
	compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
23723 amit.gupta 66
}
67
 
68
defaultTasks 'copyEnv', 'build'