-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
36 lines (27 loc) · 898 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2018 Gonzalo Müller Bravo.
// Licensed under the MIT License (MIT), see LICENSE.txt
plugins {
id 'all.shared.gradle.project-style-checker' version '1.0.2'
}
final LOCAL_REPO = hasProperty('localRepo')
final TARGET_REPOSITORY = {
LOCAL_REPO
? mavenLocal()
: jcenter()
}
logger.info "Gradle Repository: ${LOCAL_REPO ? 'local' : 'remote'} (change it to local with -PlocalRepo)"
ext.runningEnvironment = project.hasProperty('env')
? project.env.toLowerCase()
: GLOBAL$DEFAULT_ENVIRONMENT
logger.quiet "Enviroment: $runningEnvironment (change it with -Penv=TARGET_ENVIRONMENT)"
allprojects {
buildscript {
repositories TARGET_REPOSITORY
}
repositories TARGET_REPOSITORY
}
ext.localGradleModuleFolder = "$rootDir/local_gradle"
apply from: 'local_gradle/logger.gradle'
// Default task
///////////////
defaultTasks 'assessGradle', 'assessCommon', 'check'