-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
106 lines (94 loc) · 2.37 KB
/
settings.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
/*
* Developed by Mahtaran & the Amuzil community in 2023
* Any copyright is dedicated to the Public Domain.
* <https://unlicense.org>
*/
import java.net.URL
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven("https://maven.minecraftforge.net")
maven("https://maven.parchmentmc.org")
}
// languages
val kotlinVersion: String by settings
// build
val dokkaVersion: String by settings
val dotenvVersion: String by settings
val taskinfoVersion: String by settings
// code quality
val detektVersion: String by settings
val koverVersion: String by settings
val sonarqubeVersion: String by settings
val spotlessVersion: String by settings
// documentation
// forge
val forgeGradleVersion: String by settings
val librarianVersion: String by settings
// publish
plugins {
// languages
kotlin("jvm") version kotlinVersion
// build
id("org.jetbrains.dokka") version dokkaVersion
id("co.uzzu.dotenv.gradle") version dotenvVersion
id("org.barfuin.gradle.taskinfo") version taskinfoVersion
// publish
// code quality
id("io.gitlab.arturbosch.detekt") version detektVersion
id("org.jetbrains.kotlinx.kover") version koverVersion
id("org.sonarqube") version sonarqubeVersion
id("com.diffplug.spotless") version spotlessVersion
// documentation
// forge
id("net.minecraftforge.gradle") version forgeGradleVersion
id("org.parchmentmc.librarian.forgegradle") version librarianVersion
}
}
buildscript {
repositories {
maven("https://repo.spongepowered.org/repository/maven-public/")
maven("https://jitpack.io")
}
// languages
// build
val komaVersion: String by settings
// code quality
// documentation
// forge
val mixinGradleVersion: String by settings
// publish
dependencies {
// languages
// build
classpath("cc.ekblad", "4koma", komaVersion)
// code quality
// documentation
// forge
classpath("org.spongepowered", "mixingradle", mixinGradleVersion)
// publish
}
}
val projectName: String by settings
rootProject.name = projectName
plugins { id("org.danilopianini.gradle-pre-commit-git-hooks") version "[1.1.1,2)" }
gitHooks {
preCommit {
from {
"""
./gradlew check
"""
.trimIndent()
}
}
commitMsg {
from {
URL(
"https://gist.githubusercontent.com/mahtaran/b202b92a26fdd52c78197e7373cb3a91/raw/amuzil-commit-msg-git-hook.sh"
)
.readText()
}
}
createHooks(true)
}