-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle
45 lines (36 loc) · 902 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
37
38
39
40
41
42
43
44
45
plugins {
id 'java'
}
version = "2.7.0"
group = "com.blank038.servermarket"
repositories {
maven {
name = "AyStudio-Repository"
url = "https://repo.mc9y.com/snapshots"
}
}
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
jar {
from project(':folia').sourceSets.main.output
from project(':bukkit').sourceSets.main.output
}
subprojects.each { subproject -> evaluationDependsOn(subproject.path) }
tasks.register('allJar', Jar) {
dependsOn subprojects.tasks.build
archiveBaseName = 'ServerMarket'
subprojects.each { subproject ->
from subproject.configurations.archives.allArtifacts.files.collect {
zipTree(it)
}
}
}
tasks.jar.enabled = false
artifacts {
archives allJar
}
processResources {
setFilteringCharset("UTF-8")
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}