-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (48 loc) · 1.47 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
plugins {
id 'java'
}
group 'com.quartzy'
version '1.0-SNAPSHOT'
sourceCompatibility = 8
targetCompatibility = 8
repositories {
mavenCentral()
mavenLocal()
maven { url = 'https://repo.dmulloy2.net/repository/public/' }
maven { url = 'https://hub.spigotmc.org/nexus/content/groups/public' }
}
configurations {
extraLibs
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2'
extraLibs group: 'com.github.cryptomorin', name: 'XSeries', version: '8.4.0'
}
test {
useJUnitPlatform()
}
jar {
if (project.hasProperty("jarOutput")){
File outputDir = new File(project.projectDir.absolutePath + "/" + project.property("jarOutput"))
destinationDirectory.set(outputDir)
}
}
subprojects.each { subproject -> evaluationDependsOn(subproject.path)}
task allJar(type: Jar, dependsOn: subprojects.assemble) {
if (project.hasProperty("jarOutput")){
File outputDir = new File(project.projectDir.absolutePath + "/" + project.property("jarOutput"))
destinationDirectory.set(outputDir)
}
archiveBaseName.convention("QAPI")
archiveBaseName.set("QAPI")
from { configurations.extraLibs.collect { it.isDirectory() ? it : zipTree(it) } }
subprojects.each { subproject ->
from subproject.configurations.archives.allArtifacts.files.collect {
zipTree(it)
}
}
}
artifacts {
archives allJar
}