This repository was archived by the owner on Dec 10, 2022. It is now read-only.
forked from Moulberry/MinestomWorldEdit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·101 lines (85 loc) · 2.42 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
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_18
}
repositories {
mavenCentral()
maven { url 'https://repo.spongepowered.org/maven' }
maven { url 'https://repo.velocitypowered.com/snapshots/' }
maven { url 'https://jitpack.io' }
maven {
name = "IntellectualSites Releases"
url = uri("https://mvn.intellectualsites.com/content/repositories/releases/")
}
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-all.jar')
def jarArtifact = artifacts.add('archives', jarFile.get().asFile) {
type 'jar'
builtBy 'jar'
}
dependencies {
compileOnly 'com.github.Minestom:Minestom:-SNAPSHOT'
//compileOnly("net.pixelravens:PixelLib:b114")
implementation('com.google.guava:guava:31.1-jre')
implementation("com.sk89q.worldedit:worldedit-core:7.2.12")
implementation('org.spongepowered:configurate-yaml:4.1.2');
}
shadowJar {
}
build.dependsOn shadowJar
compileJava.options.encoding = 'UTF-8'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(18)
}
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/MinestomPlugins/World-Edit")
credentials {
username = "Window5000"
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
groupId 'me.window'
artifactId 'worldedit'
version '1.1'
artifact jarArtifact
}
}
}