Skip to content

Commit

Permalink
add copy jars
Browse files Browse the repository at this point in the history
  • Loading branch information
IAFEnvoy committed Nov 30, 2024
1 parent fa62066 commit 5cb6f5d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,19 @@ subprojects {
}
}
}

tasks.register('copyJars', Copy) {
from('fabric/build/libs') {
include "${rootProject.archives_base_name}-${rootProject.mod_version}.jar"
rename { String fileName ->
"${rootProject.archives_base_name}-${rootProject.mod_version}-fabric.jar"
}
}
from('forge/build/libs') {
include "${rootProject.archives_base_name}-${rootProject.mod_version}.jar"
rename { String fileName ->
"${rootProject.archives_base_name}-${rootProject.mod_version}-forge.jar"
}
}
into 'build/libs'
}

0 comments on commit 5cb6f5d

Please sign in to comment.