blob: 950446d554c38c1466dadd62bde3db33415d2b9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package moe.nea.archenemy.mojang
import org.gradle.api.Project
import java.io.File
abstract class ArchenemySharedExtension(val rootProject: Project) {
init {
require(rootProject == rootProject.rootProject)
}
fun getLocalCacheDirectory(): File {
return rootProject.rootDir.resolve(".gradle/archenemy")
}
fun getDownloadMinecraftVersionManifestTask(): DownloadMinecraftVersionManifest {
return rootProject.tasks.getByName("downloadMinecraftVersionManifest") as DownloadMinecraftVersionManifest
}
val minecraftProvider = MinecraftProvider(this)
}
|