forked from lavalink-devs/Lavalink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
52 lines (44 loc) · 1.55 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
mavenLocal()
maven("https://plugins.gradle.org/m2/")
maven("https://repo.spring.io/plugins-release")
maven("https://jitpack.io")
maven("https://m2.dv8tion.net/releases")
}
dependencies {
classpath("gradle.plugin.com.gorylenko.gradle-git-properties:gradle-git-properties:1.5.2")
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.6.6")
classpath("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.2")
classpath("com.adarshr:gradle-test-logger-plugin:1.6.0")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61")
classpath("org.jetbrains.kotlin:kotlin-allopen:1.3.61")
}
}
allprojects {
group = "lavalink"
repositories {
mavenCentral() // main maven repo
mavenLocal() // useful for developing
maven("https://m2.dv8tion.net/releases")
jcenter()
maven("https://jitpack.io") // build projects directly from GitHub
}
}
subprojects {
apply(plugin = "java")
apply(plugin = "idea")
if (project.hasProperty("includeAnalysis")) {
project.logger.lifecycle("applying analysis plugins")
apply(from = "../analysis.gradle")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.add("-Xlint:unchecked")
options.compilerArgs.add("-Xlint:deprecation")
}
}