-
-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathbuild.gradle
More file actions
93 lines (80 loc) · 2.71 KB
/
build.gradle
File metadata and controls
93 lines (80 loc) · 2.71 KB
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
plugins {
id 'checkstyle'
id 'org.mvplugins.multiverse-plugin' version '1.0.1'
id 'org.mvplugins.kotlin-test-only' version '1.0.1'
}
group = 'org.mvplugins.multiverse.inventories'
description = 'Multiverse-Inventories'
repositories {
maven {
name = 'benwoo1110'
url = uri('https://repo.c0ding.party/multiverse-beta')
}
}
configure(apiDependencies) {
serverApiVersion = '1.21.4-R0.1-SNAPSHOT'
mockBukkitServerApiVersion = '1.21'
mockBukkitVersion = '4.31.1'
}
dependencies {
// Core
// TODO update to correct version once we have it published
externalPlugin 'org.mvplugins.multiverse.core:multiverse-core:5.0.0-SNAPSHOT'
// Config
shadowed 'com.dumptruckman.minecraft:JsonConfiguration:1.2-SNAPSHOT'
shadowed 'net.minidev:json-smart:2.5.1'
// Utils
shadowed('com.dumptruckman.minecraft:Logging:1.1.1') {
exclude group: 'junit', module: 'junit'
}
// Other plugins for import
externalPlugin('uk.co:MultiInv:3.0.6') {
exclude group: '*', module: '*'
}
externalPlugin('me.drayshak:WorldInventories:1.0.2') {
exclude group: '*', module: '*'
}
// hk2 for annotation processing only
compileOnly('org.glassfish.hk2:hk2-api:3.0.3') {
exclude group: '*', module: '*'
}
annotationProcessor 'org.glassfish.hk2:hk2-metadata-generator:3.0.3'
testAnnotationProcessor 'org.glassfish.hk2:hk2-metadata-generator:3.0.3'
}
shadowJar {
relocate 'com.dumptruckman.minecraft.util.Logging', 'org.mvplugins.multiverse.inventories.utils.InvLogging'
relocate 'com.dumptruckman.minecraft.util.DebugLog', 'org.mvplugins.multiverse.inventories.utils.DebugFileLogger'
relocate 'com.dumptruckman.bukkit.configuration', 'org.mvplugins.multiverse.inventories.utils.configuration'
relocate 'net.minidev', 'org.mvplugins.multiverse.inventories.utils.minidev'
dependencies {
exclude(dependency {
it.moduleGroup == 'org.ow2.asm'
})
exclude(dependency {
it.moduleGroup == 'org.jetbrains'
})
}
}
checkstyle {
toolVersion = '6.1.1'
configFile file('config/mv_checks.xml')
ignoreFailures = true
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/Multiverse/Multiverse-Inventories"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
maven {
// todo: remove before mv5 release
name = "multiverseBeta"
url = "https://repo.c0ding.party/multiverse-beta"
credentials(PasswordCredentials)
}
}
}