Skip to content

Commit d88828c

Browse files
committed
update build.gradle
1 parent 206c648 commit d88828c

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

build.gradle

+22-18
Original file line numberDiff line numberDiff line change
@@ -51,28 +51,32 @@ shadowJar {
5151
}
5252

5353
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
5669
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'
5871
shadow 'javax.persistence:javax.persistence-api:2.2'
5972
shadow 'com.udojava:EvalEx:2.1'
73+
74+
// Annotation precessor
75+
compileOnly 'org.librazy:NyaaUtilsLangChecker:2.0-SNAPSHOT'
6076
annotationProcessor 'org.librazy:NyaaUtilsLangChecker:2.0-SNAPSHOT'
6177
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
7680
testImplementation 'org.mockito:mockito-core:2.18.3'
7781
testImplementation 'org.xerial:sqlite-jdbc:3.21.0.1'
7882
}
@@ -137,4 +141,4 @@ javadoc {
137141
docTitle = "<b>NyaaCore</b>"
138142
}
139143
}
140-
}
144+
}

0 commit comments

Comments
 (0)