forked from Mqzn/Lotus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (63 loc) · 2.09 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("java")
id("maven-publish")
//id("io.github.patrick.remapper") version "1.4.0"
id "com.github.johnrengelman.shadow" version "8.1.1"
}
group = "io.github.mqzen"
version = "1.1.4"
repositories {
gradlePluginPortal()
mavenCentral()
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
// As of Gradle 5.1, you can limit this to only those
// dependencies you expect from it
content {
includeGroup 'org.bukkit'
includeGroup 'org.spigotmc'
}
}
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url = 'https://oss.sonatype.org/content/repositories/central' }
}
dependencies {
compileOnly("org.projectlombok:lombok:1.18.22")
annotationProcessor("org.projectlombok:lombok:1.18.22")
compileOnly("org.jetbrains:annotations:21.0.1")
compileOnly("net.kyori:adventure-api:4.16.0")
compileOnly("net.kyori:adventure-platform-bukkit:4.3.2")
compileOnly("net.kyori:adventure-text-minimessage:4.16.0")
compileOnly("org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT")
testCompileOnly("org.projectlombok:lombok:1.18.22")
testAnnotationProcessor("org.projectlombok:lombok:1.18.22")
testCompileOnly("org.jetbrains:annotations:21.0.1")
testImplementation("net.kyori:adventure-api:4.16.0")
testImplementation("net.kyori:adventure-platform-bukkit:4.3.2")
testImplementation("net.kyori:adventure-text-minimessage:4.16.0")
testCompileOnly("org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT")
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
url 'https://jitpack.io'
}
}
}
shadowJar {
}
tasks.register('bukkit', ShadowJar) {
archiveClassifier.set("tests")
from sourceSets.main.output, sourceSets.test.output
configurations = [project.configurations.testRuntimeClasspath]
}