diff options
Diffstat (limited to 'fabric/build.gradle')
-rw-r--r-- | fabric/build.gradle | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/fabric/build.gradle b/fabric/build.gradle index 4fa2a38..8200bfb 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -17,7 +17,7 @@ repositories { // for more information about repositories. } dependencies { - implementation project(path: ':common') + implementation project(":common") // To change the versions see the gradle.properties file minecraft "com.mojang:minecraft:${project.minecraft_version}" mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" @@ -76,7 +76,12 @@ jar { 'MixinConfigs': 'modid.mixin.json' } } +task copyCustomJar(type: Copy) { + from jar // Specify the customJar task as the source + into project.projectDir // Set the destination directory (e.g., project root) +} +copyCustomJar.dependsOn jar // configure the maven publication publishing { publications { @@ -92,4 +97,11 @@ publishing { // The repositories here will be used for publishing your artifact, not for // retrieving dependencies. } -}
\ No newline at end of file +} +sourceSets { + main { + resources { + project(':common').sourceSets.main.resources.srcDirs + } + } +} |