forked from Moulberry/MixinConstraints
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
81 lines (67 loc) · 1.84 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
plugins {
java
idea
id("maven-publish")
}
version = "1.0.4"
group = "xyz.bluspring.kiltmc.mixinconstraints"
idea.module.isDownloadSources = true
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
repositories {
mavenCentral()
maven("https://maven.fabricmc.net/")
maven("https://repo.spongepowered.org/maven") // provides lexforge
maven("https://maven.neoforged.net/releases")
}
val fabric: SourceSet by sourceSets.creating {
compileClasspath += sourceSets.main.get().output
}
/*val forge: SourceSet by sourceSets.creating {
compileClasspath += sourceSets.main.get().output
}
val neoforge: SourceSet by sourceSets.creating {
compileClasspath += sourceSets.main.get().output
}*/
dependencies {
implementation("org.spongepowered:mixin:0.8.5")
implementation("org.ow2.asm:asm-tree:9.7")
implementation("org.slf4j:slf4j-api:2.0.12")
implementation("org.jetbrains:annotations:24.1.0")
"fabricImplementation"("net.fabricmc:fabric-loader:0.15.0")
}
tasks.jar {
from(fabric.output)
//from(forge.output)
//from(neoforge.output)
}
tasks.register<Jar>("sourcesJar") {
group = "build"
archiveClassifier.set("sources")
sourceSets.map { it.allSource }.forEach {
from(it)
}
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
groupId = "xyz.bluspring.kiltmc"
artifactId = "MixinConstraints"
from(components["java"])
}
}
repositories {
maven {
url = uri("https://mvn.devos.one/snapshots")
credentials {
username = System.getenv()["MAVEN_USER"]
password = System.getenv()["MAVEN_PASS"]
}
}
}
}