generated from neoforged/MDK
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
83 lines (71 loc) · 2.41 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import com.github.minecraftschurlimods.helperplugin.api
import com.github.minecraftschurlimods.helperplugin.version
plugins {
idea
id("net.neoforged.gradle.userdev")
id("com.github.minecraftschurlimods.helperplugin")
}
helper.withApiSourceSet()
helper.withDataGenSourceSet()
helper.withTestSourceSet()
repositories {
mavenLocal()
mavenCentral()
maven {
name = "blamejared Maven"
url = uri("https://maven.blamejared.com")
content {
includeGroup("mezz.jei")
}
}
}
val jei = helper.dependencies.jei()
dependencies {
implementation(helper.neoforge())
testImplementation(helper.testframework())
// jei for integration
val jeiApiDep = helper.minecraftVersion.zip(jei.version) { mc, version -> "mezz.jei:jei-${mc}-common-api:${version}" }
val jeiDep = helper.minecraftVersion.zip(jei.version) { mc, version -> "mezz.jei:jei-${mc}-neoforge:${version}" }
compileOnly(jeiApiDep)
if (!helper.runningInCI.getOrElse(false)) {
runtimeOnly(jeiDep)
}
testImplementation("org.junit.jupiter:junit-jupiter:${project.properties["junit_version"]}")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
sourceSets.forEach {
it.compileOnlyConfigurationName("org.jetbrains:annotations:23.0.0")
}
}
helper.withCommonRuns()
helper.withGameTestRuns()
helper.withDataGenRuns()
minecraft.accessTransformers.file("src/main/resources/META-INF/accesstransformer.cfg")
tasks.javadoc {
classpath = sourceSets.api.get().compileClasspath
source = sourceSets.api.get().allJava
}
helper.publication.pom {
organization {
name = "Minecraftschurli Mods"
url = "https://github.com/MinecraftschurliMods"
}
developers {
developer {
id = "minecraftschurli"
name = "Minecraftschurli"
email = "[email protected]"
url = "https://github.com/Minecraftschurli"
organization = "Minecraftschurli Mods"
organizationUrl = "https://github.com/MinecraftschurliMods"
timezone = "Europe/Vienna"
}
developer {
id = "ichhabehunger54"
name = "IchHabeHunger54"
url = "https://github.com/IchHabeHunger54"
organization = "Minecraftschurli Mods"
organizationUrl = "https://github.com/MinecraftschurliMods"
timezone = "Europe/Vienna"
}
}
}