forked from lavalink-devs/Lavalink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (44 loc) · 1.35 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
allprojects {
repositories {
mavenCentral() // main maven repo
jcenter() // JDA and some other stuff
mavenLocal() // useful for developing
maven { url "https://jitpack.io" } // build projects directly from github
}
group = 'lavalink'
}
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven-publish'
sourceCompatibility = 1.8
targetCompatibility = 1.8
publishing {
publications {
mavenJava(MavenPublication) {
groupId rootProject.group
artifactId moduleName
from components.java
artifact sourceJar {
classifier "sources"
}
}
}
}
compileJava.dependsOn 'clean'
compileJava.options.encoding = 'UTF-8'
compileJava.options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
task install(dependsOn: 'publishToMavenLocal')
publishToMavenLocal.dependsOn 'jar'
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
}
ext {
moduleName = 'Lavalink-Parent'
}
import org.gradle.api.tasks.wrapper.Wrapper.DistributionType
task wrapper(type: Wrapper) {
gradleVersion = '4.2.1'
distributionType = DistributionType.ALL
}