-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5ccf01
commit 44e2835
Showing
6 changed files
with
28 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,4 +62,8 @@ tasks { | |
filter(org.apache.tools.ant.filters.EscapeUnicode::class.java) | ||
} | ||
} | ||
|
||
remapJar { | ||
enabled = false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
buildSrc/src/main/kotlin/net/blueberrymc/gradle/buildSrc/actions/DownloadClientJarAction.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package net.blueberrymc.gradle.buildSrc.actions | ||
|
||
import net.blueberrymc.gradle.buildSrc.Util | ||
import net.blueberrymc.gradle.buildSrc.constants.CLIENT_JAR_URL | ||
import net.blueberrymc.gradle.buildSrc.constants.MINECRAFT_VERSION | ||
import net.blueberrymc.gradle.buildSrc.tasks.BaseBlueberryTask | ||
import org.gradle.api.Action | ||
import java.io.File | ||
|
||
class DownloadClientJarAction : Action<BaseBlueberryTask> { | ||
override fun execute(task: BaseBlueberryTask) { | ||
val destination = File(task.project.projectDir, "work/Minecraft/$MINECRAFT_VERSION/client.jar") | ||
task.outputs.file(destination) | ||
task.doLast { | ||
Util.downloadFile(CLIENT_JAR_URL, destination) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters