Subversion Repositories SmartDukaan

Rev

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

buildscript {
        ext {
                springBootVersion = '2.0.2.RELEASE'
        }
        repositories {
                mavenCentral()
        }
        dependencies {
                classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
        }
}


apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'

group = 'com.smartdukaan'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8

repositories {
        
     maven { url "https://repo.maven.apache.org/maven2" }
     mavenLocal()
}

task copyEnv{
        Set environments = ["dev", "staging", "prod"]
        def environment = "dev"
        if ( project.hasProperty("env") ) {
                if (environments.contains(project.getProperty("env"))) {
                        environment = project.getProperty("env");
                } else {
                logger.warn("Invalid Environment value, Choose any 'dev', 'staging', 'prod'");
                logger.info("Environment set to dev");
        }
        } else {
        logger.info("Environment set to dev");
        }
        copy {
                from "src/main/resources/META-INF"
                into "src/main/resources/META-INF"
                include("${environment}.properties")
                rename "${environment}.properties", "env.properties"
        }
        logger.info("Build is being build by "+environment)
}


dependencies {
        compile group: 'org.jsoup', name: 'jsoup', version: '1.7.2'
        compile('org.springframework.boot:spring-boot-starter') {
                exclude (module: 'logback-classic')
                exclude (module: 'spring-boot-starter-logging')
        }
        compile 'org.springframework.boot:spring-boot-starter-log4j2'
        compile ('org.springframework.boot:spring-boot-starter-cache'){
                exclude (module: 'logback-classic')
                exclude (module: 'spring-boot-starter-logging')
                }
    compile project (':profitmandi-common')
    compile project (':profitmandi-dao')
    compile 'com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6'
        compile 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6:'
        compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6'
        compile group: 'org.jsoup', name: 'jsoup', version: '1.11.3'
        compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '2.41.0'
        implementation 'org.jsoup:jsoup:1.11.3'
        
        
}

defaultTasks 'copyEnv', 'build'