Closed Miloszp22 closed 2 years ago
Well, a nearly day passed and I figure out what was the problem. I needed to add these things:
configurations{
addtojar
}
dependencies {
implementation "com.sparkjava:spark-core:2.9.3"
addtojar "com.sparkjava:spark-core:2.9.3"
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
from {
configurations.addtojar.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
}
}
So I tried importing java spark to fabric mod and when I build mod and lunch server it gives me an error saying that spark doesn't exist can someone help? My build.gardle: