-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
58 lines (48 loc) · 1.3 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
plugins {
id 'java'
id 'maven-publish'
}
group = 'io.github.divios'
version = '1.8.3'
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 = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
}
dependencies {
implementation 'org.jetbrains:annotations:22.0.0'
compileOnly 'org.spigotmc:spigot-api:1.18.1-R0.1-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'
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = group
artifactId = 'jCommands'
from components.java
}
}
}
compileJava.dependsOn(clean)