This repository has been archived by the owner on Feb 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
executable file
·77 lines (61 loc) · 1.73 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
buildscript {
repositories {
jcenter()
mavenCentral()
maven {
name 'JitPack'
url 'https://jitpack.io'
}
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:6.1.0'
classpath 'com.github.IntellectualSites.FastAsyncWorldEdit:ap:1.16-462'
}
}
plugins {
id("maven-publish")
}
apply plugin: 'java-library'
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
compileJava {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
maven { url 'https://repo.spongepowered.org/maven' }
maven { url 'https://jitpack.io' }
maven { url = "https://maven.enginehub.org/repo/" }
//maven { url 'https://nexus.byteandbit.cloud/repository/maven-releases/' }
maven { url 'https://repo.spongepowered.org/repository/maven-public/' }
/*maven {
name = "byteandbit"
url = uri("https://nexus.byteandbit.cloud/repository/maven-private/")
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}*/
}
def jarFile = layout.buildDirectory.file('libs/World-Edit.jar')
def jarArtifact = artifacts.add('archives', jarFile.get().asFile) {
type 'jar'
builtBy 'jar'
}
dependencies {
compileOnly 'com.github.Minestom:Minestom:3ca74e00fa'
//compileOnly("net.pixelravens:PixelLib:b114")
compileOnly('com.google.guava:guava:31.1-jre')
compileOnly("com.sk89q.worldedit:worldedit-core:7.2.12")
compileOnly('org.spongepowered:configurate-yaml:4.1.2');
compileOnly 'com.github.HypeJet:HypeStom-Kt:7f6eaccd14'
}
shadowJar {
}
build.dependsOn shadowJar
compileJava.options.encoding = 'UTF-8'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}