forked from freyacodes/archived-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
124 lines (103 loc) · 3.95 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
allprojects {
repositories {
mavenCentral() // main maven repo
jcenter() // some other stuff
maven { url 'https://dl.bintray.com/napster/SqlSauce' }
maven { url 'https://dl.bintray.com/palantir/releases' }
mavenLocal() // useful for developing
maven { url "https://jitpack.io" } // build projects directly from github
}
apply plugin: 'idea'
group = 'com.fredboat'
}
subprojects {
buildscript {
ext {
//@formatter:off
//plugin versions
gradleGitVersion = '2.1.0'
shadowVersion = '2.0.3'
springBootVersion = '2.0.1.RELEASE'
propDepsVersion = '0.0.9.RELEASE'
kotlinVersion = '1.3.20'
//@formatter:on
}
repositories {
maven { url "https://plugins.gradle.org/m2/" }
maven { url 'https://repo.spring.io/plugins-release' }
mavenCentral()
}
dependencies {
classpath "gradle.plugin.com.gorylenko.gradle-git-properties:gradle-git-properties:${gradleGitVersion}"
classpath "com.github.jengelman.gradle.plugins:shadow:${shadowVersion}"
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath "io.spring.gradle:propdeps-plugin:${propDepsVersion}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion"
}
}
apply plugin: 'java'
sourceCompatibility = 11
targetCompatibility = 11
compileJava.options.encoding = 'UTF-8'
compileJava.options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
test {
useJUnitPlatform()
}
ext {
//@formatter:off
sentinelVersion = 'd8680e86'
springBootVersion = "${springBootVersion}"
kotlinVersion = "${kotlinVersion}"
//audio deps
lavaplayerVersion = '1.3.22'
lavalinkVersion = 'cab6c587'
//utility deps
jsonOrgVersion = '20180130'
commonsTextVersion = '1.3'
commonsIOVersion = '2.6'
commonsCodecVersion = '1.11'
commonsCollectionsVersion = '4.1'
snakeYamlVersion = '1.19' //do not upgrade to 1.20, app wont start up
fastUtilVersion = '8.1.1'
togglzVersion = '2.6.0.Final'
guavaVersion = '24.1-jre'
bucket4jVersion = '3.1.1'
gsonVersion = '2.8.2'
amqpVersion = "2.0.4.RELEASE"
jacksonKotlinVersion = "2.9.+"
//logging / monitoring deps
logbackVersion = '1.2.3'
sentryVersion = '1.7.2'
prometheusClientVersion = '0.3.0'
//http / web deps
okhttpVersion = '3.10.0'
//QA deps
spotbugsVersion = '3.1.2'
napsterAnnotations = '0.0.1'
//testing deps
junitVersion = '5.1.0'
apiGuardianVersion = '1.0.0'
dockerComposeRuleVersion = '0.33.0'
postgresJdbcVersion = '42.2.2'
rerunnerVersion = '1.1.0'
//@formatter:on
}
}
version = '4.0'
ext {
moduleName = 'FredBoat-Root'
}
task wrapper(type: Wrapper) {
gradleVersion = '4.10.2'
//noinspection UnnecessaryQualifiedReference
distributionType = Wrapper.DistributionType.ALL
}
//create a simple version file that we will be reading to create appropriate docker tags
void versionTxt() {
new File("$projectDir/VERSION.txt").text = "$rootProject.version\n"
}
versionTxt()