Skip to content

Commit

Permalink
Fix final build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb committed Jun 10, 2021
1 parent 942495d commit e83f5e0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 14 deletions.
32 changes: 22 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ archivesBaseName = project.archives_base_name
version = gitVersion()
group = project.maven_group

configurations {
provided
compile.extendsFrom(provided)
}
//configurations {
// provided
// compile.extendsFrom(provided)
//}

dependencies {
// To change the versions see the gradle.properties file
Expand All @@ -23,8 +23,14 @@ dependencies {
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

// compile 'org.yaml:snakeyaml:1.27'
provided 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.1'
modImplementation 'com.fasterxml.jackson.core:jackson-databind:2.11.1'
modImplementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.1'

include 'com.fasterxml.jackson.core:jackson-annotations:2.11.1'
include 'com.fasterxml.jackson.core:jackson-databind:2.11.1'
include 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.1'
include 'com.fasterxml.jackson.core:jackson-core:2.11.1'
include 'org.yaml:snakeyaml:1.29'
}

processResources {
Expand Down Expand Up @@ -57,12 +63,18 @@ jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}"}
}

from {
configurations.provided.collect { it.isDirectory() ? it : zipTree(it) }
}
}

//jar {
// from("LICENSE") {
// rename { "${it}_${project.archivesBaseName}"}
// }
//
// from {
// configurations.provided.collect { it.isDirectory() ? it : zipTree(it) }
// }
//}

// configure the maven publication
publishing {
publications {
Expand Down
7 changes: 4 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
"modid.mixins.json"
],
"depends": {
"fabricloader": ">=0.7.4",
"fabric": ">=0.28.0",
"minecraft": "1.16.x"
"fabricloader": ">=0.11.3",
"fabric": "*",
"minecraft": "1.17.x",
"java": ">=16"
}
}
2 changes: 1 addition & 1 deletion src/main/resources/modid.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"required": true,
"minVersion": "0.8",
"package": "net.fabricmc.diorite.mixin",
"compatibilityLevel": "JAVA_8",
"compatibilityLevel": "JAVA_16",
"mixins": ["ServerLoginNetworkHandlerAccessor"],
"client": [],
"injectors": {
Expand Down

0 comments on commit e83f5e0

Please sign in to comment.