-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
70 lines (60 loc) · 1.42 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
import java.text.SimpleDateFormat
import java.util.Date
plugins {
kotlin("jvm") version "2.0.0"
id("java-library")
id("eclipse")
id("idea")
id("maven-publish")
id("net.neoforged.moddev") version "2.0.42-beta"
}
group = "net.valhelsia"
version = "0.1.15"
repositories {
mavenCentral()
}
neoForge {
version = project.property("neo_version") as String
interfaceInjectionData {
from("interfaces.json")
publish(file("interfaces.json"))
}
}
dependencies {
testImplementation(kotlin("test"))
implementation(kotlin("stdlib"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
tasks.withType<Jar> {
manifest {
val now = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").format(Date())
attributes(mapOf(
"Implementation-Timestamp" to now,
"MixinConfigs" to "dataforge.mixins.json",
"FMLModType" to "GAMELIBRARY"
))
}
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
artifactId = "dataforge"
from(components["java"])
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ValhelsiaTeam/DataForge")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}