Subversion Repositories SmartDukaan

Rev

Rev 34101 | Rev 34688 | 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
ext['log4j2.version'] = '2.16.0'
repositories {

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

task copyEnv {
    Set environments = ["dev", "staging", "prod", "run"]
    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 built 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')
    }
    implementation group: 'org.springframework', name: 'spring-context-support', version: '4.3.6.RELEASE'

    compile group: 'org.apache.velocity', name: 'velocity', version: '1.7'
    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'
    implementation 'org.apache.httpcomponents:httpclient:4.5.13'
    implementation 'org.bouncycastle:bcprov-jdk16:1.45'
    //dependency needed to resolve okhttp and further required for selenium
    implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.3.70'

    // https://mvnrepository.com/artifact/opencv/opencv
    //implementation group: 'org.openpnp', name: 'opencv', version: '4.3.0-0'
    implementation group: 'org.openpnp', name: 'opencv', version: '3.4.2-0'
    //implementation group: 'org.openpnp', name: 'opencv', version: '4.5.1-2'
    implementation('com.google.auth:google-auth-library-oauth2-http:1.17.0') {
        exclude group: 'org.apache.httpcomponents', module: 'httpclient'
        exclude group: 'com.google.guava', module: 'guava'
    }


    implementation('org.springframework.boot:spring-boot-starter-actuator') {
        exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
    }

    implementation('io.micrometer:micrometer-core') {
        exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
    }

    implementation('io.micrometer:micrometer-registry-prometheus') {
        exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
    }

    implementation 'org.springframework.boot:spring-boot-starter-log4j2'

    implementation('org.springframework.boot:spring-boot-starter-web') {
        exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
    }
    implementation 'org.aspectj:aspectjweaver'
    implementation ('org.springframework.boot:spring-boot-starter-security'){
        exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
    }

}

defaultTasks 'copyEnv', 'build'