forked from QuiltMC/cozy-discord
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
128 lines (104 loc) · 2.77 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
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
import com.expediagroup.graphql.plugin.gradle.config.GraphQLSerializer
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
/*
* 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`
application
id("com.github.jakemarsden.git-hooks")
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
google()
maven {
name = "Sonatype Snapshots (Legacy)"
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}
maven {
name = "Sonatype Snapshots"
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots")
}
maven {
name = "Fabric"
url = uri("https://maven.fabricmc.net")
}
maven {
name = "QuiltMC (Releases)"
url = uri("https://maven.quiltmc.org/repository/release/")
}
maven {
name = "QuiltMC (Snapshots)"
url = uri("https://maven.quiltmc.org/repository/snapshot/")
}
maven {
name = "JitPack"
url = uri("https://jitpack.io")
}
}
}
dependencies {
implementation("io.ktor:ktor-client-encoding:2.2.4")
detektPlugins(libs.detekt)
detektPlugins(libs.detekt.libraries)
ksp(libs.kordex.annotationProcessor)
implementation(libs.excelkt)
implementation(libs.kmongo)
implementation(libs.rgxgen)
implementation(libs.kordex.annotations)
implementation(libs.kordex.core)
implementation(libs.kordex.mappings)
implementation(libs.kordex.phishing)
implementation(libs.kordex.pluralkit)
implementation(libs.kordex.unsafe)
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(libs.scrimage)
// implementation(project(":module-log-parser"))
// implementation(project(":module-welcome"))
// implementation(project(":module-user-cleanup"))
// implementation(project(":module-tags"))
// implementation(project(":module-moderation"))
implementation(libs.bundles.cozy.modules)
}
graphql {
client {
schemaFile = rootProject.file("github.graphql")
// sdlEndpoint = "https://docs.github.com/public/schema.docs.graphql"
packageName = "quilt.ghgen"
serializer = GraphQLSerializer.KOTLINX
}
}
application {
mainClass.set("org.quiltmc.community.AppKt")
}
gitHooks {
setHooks(
mapOf("pre-commit" to "updateLicense detekt")
)
}
tasks {
jar {
manifest {
attributes(
"Main-Class" to "org.quiltmc.community.AppKt"
)
}
}
}