-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (55 loc) · 1.45 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
import org.apache.tools.ant.filters.ReplaceTokens
apply plugin: 'java'
//apply plugin: "Java-library"
group = 'com.gmail.necnionch.myplugin'
version = '1.1.2+1.21.3'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
configurations {
collectJars
}
repositories {
mavenCentral()
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven {
url = "https://jitpack.io"
}
maven {
name = "codemc-snapshots"
url = "https://repo.codemc.io/repository/maven-snapshots/"
}
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT'
implementation files("lib/Multiverse-Core-4.2.2.jar")
implementation files("lib/Multiverse-Portals-4.2.0.jar")
implementation files("lib/worldedit-bukkit-7.1.0.jar")
implementation 'net.wesjd:anvilgui:1.10.3-SNAPSHOT'
collectJars 'net.wesjd:anvilgui:1.10.3-SNAPSHOT'
}
processResources {
// from(sourceSets.main.resources.srcDirs) {
filter(
ReplaceTokens,
tokens: [version: version]
)
// }
}
jar {
from {
configurations.collectJars.collect {
it.isDirectory() ? it : zipTree(it)
}
}
into("source") {
from "src/main/java"
}
}
compileJava.options.encoding = 'UTF-8'