-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
78 lines (66 loc) · 1.81 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'net.minecrell.plugin-yml.bukkit' version '0.5.3'
}
group 'dev.selena.test'
version '1.0'
apply plugin: 'idea'
defaultTasks('build')
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
repositories {
mavenCentral()
mavenLocal()
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
name "Release"
url "https://repo.selenadevelopment.com/releases"
}
maven {
name "Snapshots"
url "https://repo.selenadevelopment.com/snapshots"
}
maven {
url "https://nexus.iridiumdevelopment.net/repository/maven-releases/"
}
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
implementation "dev.selena.lua:LuaCore:1.1.0-Dev5-SNAPSHOT"
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
}
build {
dependsOn shadowJar
}
shadowJar {
dependsOn(jar)
if (System.getenv("BUILD_NUMBER") == null) {
archiveFileName.set(rootProject.name + "-" + rootProject.version + ".jar")
} else {
archiveFileName.set(rootProject.name + "-" + rootProject.version + "-b" + System.getenv("BUILD_NUMBER") + ".jar")
}
dependencies {
include(dependency('dev.selena.lua:LuaCore'))
}
relocate "dev.selena.lua.", "dev.selena.libs"
zip64 true
subprojects.each { subproject ->
from subproject.sourceSets.main.output.classesDirs
from subproject.sourceSets.main.output.resourcesDir
}
configurations = [project.configurations.getByName("runtimeClasspath")]
}
bukkit {
main = "dev.selena.tests.LuaTest"
authors = ["Selena"]
version = 1.1
apiVersion = 1.19
}