Subversion Repositories SmartDukaan

Rev

Rev 37685 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37685 Rev 37726
Line 35... Line 35...
35
        logger.warn("Invalid key")
35
        logger.warn("Invalid key")
36
    }
36
    }
37
    ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
37
    ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
38
        entry( key: "profile", value: environment)
38
        entry( key: "profile", value: environment)
39
    }
39
    }
-
 
40
    // Sentry/GlitchTip reports ONLY from a deliberate staging/prod build, and is
-
 
41
    // labelled with that environment. A plain local build leaves the committed
-
 
42
    // enabled=false in place, so a developer's laptop cannot post to the live board.
-
 
43
    ant.propertyfile( file: "src/main/resources/sentry.properties"){
-
 
44
        entry( key: "enabled", value: (environment == "dev" ? "false" : "true"))
-
 
45
        entry( key: "environment", value: environment)
-
 
46
    }
40
    logger.warn("Build is being build by "+environment)
47
    logger.warn("Build is being build by "+environment)
41
}
48
}
42
 
49
 
43
tasks.build.doLast(){
50
tasks.build.doLast(){
44
    ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
51
    ant.propertyfile( file: "src/main/resources/META-INF/env.property"){
45
        entry( key: "profile", value: "dev")
52
        entry( key: "profile", value: "dev")
46
    }
53
    }
-
 
54
    ant.propertyfile( file: "src/main/resources/sentry.properties"){
-
 
55
        entry( key: "enabled", value: "false")
-
 
56
        entry( key: "environment", value: "dev")
-
 
57
    }
47
}
58
}
48
 
59
 
49
dependencies {
60
dependencies {
50
    // Ships ERROR-level log events to GlitchTip (self-hosted, Sentry protocol).
61
    // Ships ERROR-level log events to GlitchTip (self-hosted, Sentry protocol).
51
    // Pinned to 7.x: 8.x drops Java 8. Verified class major version 52.
62
    // Pinned to 7.x: 8.x drops Java 8. Verified class major version 52.