Skip to content

Commit

Permalink
## Fixes
Browse files Browse the repository at this point in the history
- Fixed issue with okhttp3
  • Loading branch information
Awakened-Redstone committed Jul 14, 2022
1 parent 6d60f27 commit bea54c1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
17 changes: 9 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,20 @@ dependencies {
include modImplementation(fabricApi.module("fabric-lifecycle-events-v1", project.fabric_version))
include modImplementation(fabricApi.module("fabric-api-base", project.fabric_version))

includeTransitive implementation('net.dv8tion:JDA:4.4.0_352') {
include implementation('net.dv8tion:JDA:4.4.0_352') {
exclude module: 'opus-java'
exclude group: 'okhttp3', module: "okhttp"
}

include implementation('com.squareup.okhttp3:okhttp:4.9.0')
include 'com.fasterxml.jackson.core:jackson-annotations:2.10.1'
include 'com.fasterxml.jackson.core:jackson-databind:2.10.1'
include 'com.fasterxml.jackson.core:jackson-core:2.10.1'
include 'com.neovisionaries:nv-websocket-client:2.14'
include 'org.apache.commons:commons-collections4:4.1'
include 'com.squareup.okhttp3:okhttp:3.13.0'
include 'com.squareup.okio:okio:1.17.2'
include 'net.sf.trove4j:trove4j:3.0.3'
}

configurations.getByName("includeTransitive").resolvedConfiguration.resolvedArtifacts.forEach(dep -> {
if (!dep.id.componentIdentifier.displayName.contains("slf4j-api"))
dependencies.add("include", dep.id.componentIdentifier.displayName)
})

compileJava {
sourceCompatibility = 17
targetCompatibility = 17
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx2G
minecraft_version=1.19.1-pre2
yarn_mappings=1.19.1-pre2+build.2
loader_version=0.14.8
mod_version=1.1.1
mod_version=1.1.2
maven_group=com.awakenedredstone
archives_base_name=autowhitelist

Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
],
"depends": {
"fabricloader": ">=0.13.2",
"minecraft": ">1.18.1"
"fabric-language-kotlin": "*",
"minecraft": ">=1.19"
}
}

0 comments on commit bea54c1

Please sign in to comment.