-
-
Notifications
You must be signed in to change notification settings - Fork 371
Expand file tree
/
Copy pathstonecutter.gradle.kts
More file actions
134 lines (118 loc) · 3.5 KB
/
Copy pathstonecutter.gradle.kts
File metadata and controls
134 lines (118 loc) · 3.5 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
plugins {
alias(libs.plugins.loom) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.detekt) apply false
id("dev.kikugie.stonecutter")
}
allprojects {
group = "at.hannibal2.skyhanni"
val buildToolsPath = when (name) {
"SkyHanni" -> layout.projectDirectory.dir("buildTools")
"annotation-processors", "detekt" -> layout.projectDirectory.dir("../buildTools")
else -> layout.projectDirectory.dir("../../buildTools")
}
/**
* The version of the project.
* Stable version
* Beta version
* Bugfix version
*/
version = providers.fileContents(buildToolsPath.file("PROJECT_VERSION")).asText.map { it.trim() }.get()
repositories {
mavenCentral()
mavenLocal()
// Fabric
exclusiveContent {
forRepository {
maven("https://maven.fabricmc.net")
}
filter {
includeGroup("net.fabricmc")
includeGroup("net.fabricmc.fabric-api")
}
}
// Mixin
exclusiveContent {
forRepository {
maven("https://repo.spongepowered.org/repository/maven-public")
}
filter {
includeGroup("org.spongepowered")
}
}
// DevAuth
exclusiveContent {
forRepository {
maven("https://pkgs.dev.azure.com/djtheredstoner/DevAuth/_packaging/public/maven/v1")
}
filter {
includeGroup("me.djtheredstoner")
}
}
// libautoupdate and shots
exclusiveContent {
forRepository {
maven("https://repo.nea.moe/releases")
}
filter {
includeGroup("moe.nea")
}
}
// moulconfig and a few detekt rules
exclusiveContent {
forRepositories(
repositories.mavenLocal(),
repositories.maven("https://maven.notenoughupdates.org/releases"),
)
filter {
includeGroup("org.notenoughupdates")
includeGroup("org.notenoughupdates.moulconfig")
}
}
// Hypixel mod api
exclusiveContent {
forRepository {
maven("https://repo.hypixel.net/repository/Hypixel")
}
filter {
includeGroup("net.hypixel")
}
}
// Modrinth
exclusiveContent {
forRepository {
maven("https://api.modrinth.com/maven")
}
filter {
includeGroup("maven.modrinth")
}
}
// Rei for compat plugin
exclusiveContent {
forRepository {
maven("https://maven.shedaniel.me")
}
filter {
includeGroup("me.shedaniel")
includeGroup("dev.architectury")
includeGroup("me.shedaniel.cloth")
}
}
maven("https://jitpack.io") {
// NotEnoughUpdates (compiled against), Changelog builder, Preprocessor, Discord IPC
content {
includeGroupByRegex("(com|io)\\.github\\..*")
}
}
}
}
stonecutter active "26.1"
stonecutter handlers {
configure("fsh", "vsh") {
commenter = line("//")
}
}
stonecutter parameters {
filters.include("**/*.fsh", "**/*.vsh")
}