-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
79 lines (65 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
77
78
79
plugins {
id 'java'
id 'maven-publish'
id "com.github.johnrengelman.shadow" version "7.1.1"
}
apply plugin: 'maven-publish'
group = 'io.github.divios'
version = '3.2.4'
sourceCompatibility = 1.8 // java 8
targetCompatibility = 1.8
repositories {
mavenCentral()
mavenLocal()
maven { url = "https://jitpack.io" }
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
name = 'placeholderapi'
url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}
maven {
name = "sonatype-oss-snapshots"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT'
compileOnly 'me.clip:placeholderapi:2.11.1'
implementation 'org.jetbrains:annotations:22.0.0'
compileOnly 'net.kyori:adventure-platform-bukkit:4.0.1'
implementation 'net.kyori:adventure-text-minimessage:4.2.0-SNAPSHOT'
testImplementation('junit:junit:4.13.2')
testImplementation "org.mockito:mockito-core:1.9.5"
testImplementation 'org.powermock:powermock-module-junit4:2.0.9'
testImplementation 'org.powermock:powermock-api-mockito2:2.0.9'
testImplementation 'com.github.seeseemelk:MockBukkit-v1.16:1.5.2'
}
shadowJar {
relocate('org.jetbrains.annotations', 'io.github.divios.dependencies.annotations')
relocate('org.intellij', 'io.github.divios.dependencies.intellij')
relocate('net.kyori', 'io.github.divios.dependencies.miniText')
minimize()
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = group
artifactId = 'jText'
version = version
from components.java
}
}
}
compileJava.dependsOn(clean)
build.dependsOn shadowJar