-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
88 lines (77 loc) · 2.67 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
plugins {
java
`java-gradle-plugin`
`maven-publish`
id("com.gradle.plugin-publish") version "1.3.0"
id("net.neoforged.gradleutils") version "3.0.0"
}
group = "org.moddedmc.wiki"
gradleutils.version {
branches.suffixBranch()
}
project.version = gradleutils.version
logger.lifecycle("Wiki Toolkit version ${gradleutils.version}")
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
if (System.getenv("GPP_KEY") != null) {
project.ext {
set("gradle.publish.key", System.getenv("GPP_KEY"))
set("gradle.publish.secret", System.getenv("GPP_SECRET"))
}
}
repositories {
mavenCentral()
gradlePluginPortal()
maven {
name = "NeoForge"
url = uri("https://maven.neoforged.net/releases")
}
maven {
name = "FabricMC"
url = uri("https://maven.fabricmc.net")
}
}
dependencies {
compileOnly("net.neoforged:moddev-gradle:2.0.16-beta")
compileOnly("net.fabricmc:fabric-loom:1.7-SNAPSHOT")
compileOnly("net.neoforged.gradle:userdev:7.0.165")
implementation(group = "org.eclipse.jgit", name = "org.eclipse.jgit", version = "6.8.0.202311291450-r")
implementation(group = "org.zeroturnaround", name = "zt-exec", version = "1.12")
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.test {
useJUnitPlatform()
}
gradlePlugin {
website.set("https://github.com/sinytra/wikitoolkit")
vcsUrl.set("https://github.com/sinytra/wikitoolkit")
plugins {
create("wikiToolkitPlugin") {
id = "org.moddedmc.wiki.toolkit"
displayName = "ModdedMC Wiki Toolkit"
description = "Developer toolkit for the Modded Minecraft Wiki"
implementationClass = "org.moddedmc.wiki.toolkit.WikiToolkitPlugin"
tags.set(listOf("minecraft", "wiki"))
}
create("wikiToolkitRepositoriesPlugin") {
id = "org.moddedmc.wiki.toolkit.repositories"
displayName = "ModdedMC Wiki Toolkit Repositories"
description = "Configures bundled repositories for the Wiki Toolkit"
implementationClass = "org.moddedmc.wiki.toolkit.WikiToolkitRepositoriesPlugin"
tags.set(listOf("minecraft", "wiki"))
}
}
}
publishing {
repositories {
if (System.getenv("MAVEN_USER") != null) {
maven {
url = uri(System.getenv("MAVEN_URL") ?: "https://maven.su5ed.dev/releases/")
credentials {
username = System.getenv("MAVEN_USER") ?: "not"
password = System.getenv("MAVEN_PASSWORD") ?: "set"
}
}
}
}
}