generated from Kord-Extensions/template
-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.gradle.kts
102 lines (81 loc) · 2.02 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import com.expediagroup.graphql.plugin.gradle.config.GraphQLSerializer
import dev.kordex.gradle.plugins.kordex.DataCollection
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
plugins {
`cozy-module`
`shadow-module`
id("com.github.jakemarsden.git-hooks")
}
allprojects {
repositories {
mavenLocal()
}
}
dependencies {
detektPlugins(libs.detekt)
detektPlugins(libs.detekt.libraries)
implementation(libs.excelkt)
implementation(libs.kmongo)
implementation(libs.rgxgen)
implementation(libs.ktor.client.encoding)
implementation(libs.commons.text)
implementation(libs.homoglyph)
implementation(libs.jansi)
implementation(libs.jsoup)
implementation(libs.semver)
implementation(libs.logback)
implementation(libs.logback.groovy)
implementation(libs.logging)
implementation(libs.groovy)
implementation(platform(libs.kotlin.bom))
implementation(libs.kotlin.stdlib)
implementation(libs.kx.ser)
implementation(libs.graphql)
implementation(projects.moduleAma)
implementation(projects.moduleLogParser)
implementation(projects.moduleModeration)
implementation(projects.moduleRoleSync)
}
kordEx {
version = "2.2.1-SNAPSHOT"
bot {
dataCollection(DataCollection.Minimal)
mainClass = "org.quiltmc.community.AppKt"
}
module("dev-unsafe")
module("func-phishing")
module("func-tags")
module("func-welcome")
module("pluralkit")
}
graphql {
client {
schemaFile = rootProject.file("github.graphql")
// sdlEndpoint = "https://docs.github.com/public/schema.docs.graphql"
packageName = "quilt.ghgen"
serializer = GraphQLSerializer.KOTLINX
}
}
gitHooks {
setHooks(
mapOf("pre-commit" to "applyLicenses detekt")
)
}
tasks {
jar {
manifest {
attributes(
"Main-Class" to "org.quiltmc.community.AppKt"
)
if (System.getenv("GITHUB_SHA") != null) {
attributes(
"Implementation-Version" to System.getenv("GITHUB_SHA")
)
}
}
}
}