@@ -51,28 +51,32 @@ shadowJar {
51
51
}
52
52
53
53
dependencies {
54
- compileOnly files(' lib/spigot-1.13.2.jar' )
55
- api " org.spigotmc:spigot-api:$minecraftVersion -R0.1-SNAPSHOT"
54
+ // spigo dependencies
55
+ implementation " org.spigotmc:spigot-api:$minecraftVersion -R0.1-SNAPSHOT"
56
+ implementation ' io.netty:netty-all:4.1.30.Final' // netty is shadowed inside spigot jar
57
+ implementation files(' lib/spigot-1.13.2.jar' ) // for NMS
58
+
59
+ // other plugins
60
+ implementation (' net.milkbowl.vault:VaultAPI:1.7' ) { transitive = false }
61
+ implementation (' net.ess3:Essentials:2.13-SNAPSHOT' ) { transitive = false }
62
+ if (gradle. hasProperty(" useLocalDependencies" ) && gradle. useLocalDependencies) {
63
+ implementation project(" :LanguageUtils" )
64
+ } else {
65
+ implementation ' cat.nyaa:LangUtils:2.1-SNAPSHOT'
66
+ }
67
+
68
+ // 3rd party packages to be shadowed
56
69
api ' javax.persistence:javax.persistence-api:2.2'
57
- api ' io.netty:netty-all:4.1.30.Final '
70
+ api ' com.udojava:EvalEx:2.1 '
58
71
shadow ' javax.persistence:javax.persistence-api:2.2'
59
72
shadow ' com.udojava:EvalEx:2.1'
73
+
74
+ // Annotation precessor
75
+ compileOnly ' org.librazy:NyaaUtilsLangChecker:2.0-SNAPSHOT'
60
76
annotationProcessor ' org.librazy:NyaaUtilsLangChecker:2.0-SNAPSHOT'
61
77
annotationProcessor " org.spigotmc:spigot-api:$minecraftVersion -R0.1-SNAPSHOT"
62
- compileOnly ' org.librazy:NyaaUtilsLangChecker:2.0-SNAPSHOT'
63
- compileOnly(' net.milkbowl.vault:VaultAPI:1.7' ) {
64
- transitive = false
65
- }
66
- compileOnly(' net.ess3:Essentials:2.13-SNAPSHOT' ) {
67
- transitive = false
68
- }
69
- if (gradle. hasProperty(" useLocalDependencies" ) && gradle. useLocalDependencies) {
70
- compile project(" :LanguageUtils" )
71
- } else {
72
- compileOnly(' cat.nyaa:LangUtils:2.1-SNAPSHOT' ) {
73
- transitive = false
74
- }
75
- }
78
+
79
+ // Testing
76
80
testImplementation ' org.mockito:mockito-core:2.18.3'
77
81
testImplementation ' org.xerial:sqlite-jdbc:3.21.0.1'
78
82
}
@@ -137,4 +141,4 @@ javadoc {
137
141
docTitle = " <b>NyaaCore</b>"
138
142
}
139
143
}
140
- }
144
+ }
0 commit comments