Subversion Repositories SmartDukaan

Rev

Rev 34860 | Rev 35851 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34860 Rev 35832
Line 25... Line 25...
25
    maven { url "https://repo.maven.apache.org/maven2" }
25
    maven { url "https://repo.maven.apache.org/maven2" }
26
    maven { url 'https://jitpack.io' }
26
    maven { url 'https://jitpack.io' }
27
    mavenLocal()
27
    mavenLocal()
28
}
28
}
29
 
29
 
30
task copyEnv {
30
task run {
31
    Set environments = ["dev", "staging", "prod", "run"]
31
    Set environments = ["dev", "staging", "prod"]
32
    def environment = "dev"
32
    def environment = "dev"
33
    if (project.hasProperty("env")) {
33
    if (project.hasProperty("env")) {
34
        if (environments.contains(project.getProperty("env"))) {
34
        if (environments.contains(project.getProperty("env"))) {
35
            environment = project.getProperty("env");
35
            environment = project.getProperty("env");
36
        } else {
36
        } else {
Line 38... Line 38...
38
            logger.info("Environment set to dev");
38
            logger.info("Environment set to dev");
39
        }
39
        }
40
    } else {
40
    } else {
41
        logger.info("Environment set to dev");
41
        logger.info("Environment set to dev");
42
    }
42
    }
43
    copy {
-
 
44
        from "src/main/resources/META-INF"
43
    ant.propertyfile(file: "src/main/resources/META-INF/env.property") {
45
        into "src/main/resources/META-INF"
-
 
46
        include("${environment}.properties")
44
        entry(key: "profile", value: environment)
47
        rename "${environment}.properties", "env.properties"
-
 
48
    }
45
    }
49
    logger.info("Build is being built by " + environment)
46
    logger.info("Build is being built by " + environment)
50
}
47
}
51
 
48
 
-
 
49
tasks.build.doLast() {
-
 
50
    ant.propertyfile(file: "src/main/resources/META-INF/env.property") {
-
 
51
        entry(key: "profile", value: "dev")
-
 
52
    }
-
 
53
}
-
 
54
 
52
 
55
 
53
dependencies {
56
dependencies {
54
    compile group: 'org.jsoup', name: 'jsoup', version: '1.7.2'
-
 
55
    compile('org.springframework.boot:spring-boot-starter') {
57
    compile('org.springframework.boot:spring-boot-starter') {
56
        exclude(module: 'logback-classic')
58
        exclude(module: 'logback-classic')
57
        exclude(module: 'spring-boot-starter-logging')
59
        exclude(module: 'spring-boot-starter-logging')
58
    }
60
    }
59
    implementation group: 'org.springframework', name: 'spring-context-support', version: '4.3.6.RELEASE'
61
    implementation group: 'org.springframework', name: 'spring-context-support', version: '4.3.6.RELEASE'
Line 72... Line 74...
72
    //dependency needed to resolve okhttp and further required for selenium
74
    //dependency needed to resolve okhttp and further required for selenium
73
    implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.3.70'
75
    implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.3.70'
74
 
76
 
75
    // https://mvnrepository.com/artifact/opencv/opencv
77
    // https://mvnrepository.com/artifact/opencv/opencv
76
    //implementation group: 'org.openpnp', name: 'opencv', version: '4.3.0-0'
78
    //implementation group: 'org.openpnp', name: 'opencv', version: '4.3.0-0'
77
    implementation group: 'org.openpnp', name: 'opencv', version: '3.4.2-0'
79
    //implementation group: 'org.openpnp', name: 'opencv', version: '3.4.2-0'
-
 
80
    // https://mvnrepository.com/artifact/org.openpnp/opencv
-
 
81
    implementation group: 'org.openpnp', name: 'opencv', version: '4.9.0-0'
78
    //implementation group: 'org.openpnp', name: 'opencv', version: '4.5.1-2'
82
    //implementation group: 'org.openpnp', name: 'opencv', version: '4.5.1-2'
79
    implementation('com.google.auth:google-auth-library-oauth2-http:1.17.0') {
83
    implementation('com.google.auth:google-auth-library-oauth2-http:1.17.0') {
80
        exclude group: 'org.apache.httpcomponents', module: 'httpclient'
84
        exclude group: 'org.apache.httpcomponents', module: 'httpclient'
81
        exclude group: 'com.google.guava', module: 'guava'
85
        exclude group: 'com.google.guava', module: 'guava'
82
    }
86
    }
83
 
87
 
-
 
88
    dependencies {
-
 
89
        implementation 'org.jsoup:jsoup:1.18.1'
-
 
90
    }
-
 
91
 
-
 
92
 
84
 
93
 
85
    implementation('org.springframework.boot:spring-boot-starter-actuator') {
94
    implementation('org.springframework.boot:spring-boot-starter-actuator') {
86
        exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
95
        exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
87
    }
96
    }
88
 
97
 
Line 109... Line 118...
109
    implementation 'com.zaxxer:HikariCP:3.4.5' // Use the latest version
118
    implementation 'com.zaxxer:HikariCP:3.4.5' // Use the latest version
110
    implementation 'net.lingala.zip4j:zip4j:2.11.5'
119
    implementation 'net.lingala.zip4j:zip4j:2.11.5'
111
 
120
 
112
}
121
}
113
 
122
 
114
defaultTasks 'copyEnv', 'build'
-
 
115
123
defaultTasks 'run', 'build'
-
 
124
116
125