-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
107 lines (90 loc) · 3.34 KB
/
build.gradle
File metadata and controls
107 lines (90 loc) · 3.34 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
plugins {
id 'java'
id 'com.gradleup.shadow' version '8.3.0'
id 'maven-publish'
}
allprojects {
group = 'space.commandf1.amlegit'
version = '1.0-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
apply plugin: 'java'
apply plugin: 'maven-publish'
publishing {
publications {
maven(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
}
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
tasks.withType(JavaExec) {
jvmArgs += [
'-Dorg.bytedeco.javacpp.maxbytes=4G', // 最大内存
'-Dorg.bytedeco.javacpp.maxphysicalbytes=8G' // 物理内存
]
}
}
build {
dependsOn shadowJar
}
shadowJar {
archiveFileName = "AmLegit.jar"
relocate 'com.samjakob.spigui', 'space.commandf1.amlegit.libs.spigui'
relocate 'com.github.mardssss.commandlib', 'space.commandf1.amlegit.libs.commandlib'
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
repositories {
// mavenCentral()
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url 'https://oss.sonatype.org/content/groups/public/' }
maven { url 'https://repo.hpfxd.com/releases/' }
maven { url 'https://repo.andrei1058.dev/releases/' }
maven { url 'https://jitpack.io' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://repo.dmulloy2.net/repository/public/' }
maven { url 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url 'https://repo.codemc.io/repository/maven-public/' }
maven { url 'https://repo.codemc.io/repository/maven-releases/' }
maven { url 'https://repo.codemc.io/repository/maven-snapshots/' }
maven { url 'https://repo.codemc.io/repository/nms/' }
maven { url 'https://simonsator.de/repo/' }
maven { url 'https://maven.citizensnpcs.co/repo' }
maven { url 'https://repo.alessiodp.com/releases/' }
maven { url 'https://repo.andrei1058.dev/releases/' }
maven { url 'https://repo.papermc.io/repository/maven-public/' }
maven { url 'https://repo.glaremasters.me/repository/concuncan/' }
maven { url 'https://repo.aikar.co/content/groups/aikar/' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
compileOnly files('libs/bruhspigot.jar')
compileOnly files('libs/PlaceholderAPI-2.11.6.jar')
compileOnly files('libs/packetevents-spigot-2.8.0.jar')
implementation 'org.jetbrains:annotations:24.0.0'
implementation 'com.samjakob:SpiGUI:1.4.1'
implementation files('libs/CommandLib-1.0.2-SNAPSHOT.jar')
compileOnly 'org.projectlombok:lombok:1.18.36'
annotationProcessor 'org.projectlombok:lombok:1.18.36'
testCompileOnly 'org.projectlombok:lombok:1.18.36'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.36'
}
test {
useJUnitPlatform()
}