Skip to content

Commit

Permalink
Update build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
Hummel009 authored Nov 2, 2024
1 parent bf2650f commit 2ce034c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions h-forge-1.7.10/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ minecraft {
}

tasks {
register("copyForgeUnpacked") {
doLast {
val userHome = System.getProperty("user.home")
val gradleUserHome = System.getenv("GRADLE_USER_HOME") ?: "$userHome/.gradle"
val sourceDir = File("$gradleUserHome/caches/minecraft/net/minecraftforge/forge/1.7.10-10.13.4.1614-1.7.10")
val targetDir =
File("$userHome/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.10-10.13.4.1614-1.7.10")
targetDir.mkdirs()
sourceDir.copyRecursively(targetDir, overwrite = false)
}
}
runClient {
dependsOn("copyForgeUnpacked")
}
withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
}
Expand Down

0 comments on commit 2ce034c

Please sign in to comment.