This repository has been archived by the owner on Aug 27, 2023. It is now read-only.
forked from ryanjohn1/onboarding
-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
55 lines (42 loc) · 1.56 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
mavenCentral()
mavenLocal()
}
dependencies {
classpath "com.android.tools.build:gradle:${project.property('android-plugin.version')}"
}
}
allprojects {
// NOTE: project.group and project.version must be defined before including
// maven-support.gradle since it uses these values...
project.group = ( project.hasProperty('pom.groupId')
? project.property('pom.groupId') : "" )
project.version =
( project.hasProperty('pom.version') ? project.property('pom.version') : "1.0" )
apply from: "$rootDir/gradle-fury/gradle/maven-support.gradle"
// forces all changing dependencies (i.e. SNAPSHOTs) to automagicially download
// (thanks, @BillBarnhill!)
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
}
}
repositories {
jcenter()
mavenCentral()
mavenLocal()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "http://repo.maven.apache.org/maven2" }
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
if (project.hasProperty('profile') && project.profile.split(',').contains("ci")) {
apply from: "$rootDir/gradle-fury/gradle/quality.gradle"
}
}
apply from: "$rootDir/gradle-fury/gradle/encryption.gradle"
apply from: "$rootDir/gradle-fury/gradle/site.gradle"