Skip to content

Commit 896f93d

Browse files
committed
Fix lib compilation
1 parent 01bfe6b commit 896f93d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,14 @@ project(":"){
166166
}
167167

168168
tasks.register<Jar>("lib"){
169+
dependsOn(tasks["compileJava"])
170+
169171
archiveFileName = "$modArtifact.jar"
170172

171173
from(
172-
files("src/pyguy/jsonlib/JsonLibWrapper.java").asFileTree
174+
fileTree("build/classes/java/main") {
175+
include("pyguy/jsonlib/JsonLibWrapper.class")
176+
}
173177
)
174178

175179
metaInf.from(layout.projectDirectory.file("LICENSE"))

0 commit comments

Comments
 (0)