-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
80 lines (67 loc) · 2.39 KB
/
build.gradle.kts
File metadata and controls
80 lines (67 loc) · 2.39 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
import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.util.archivesName
plugins {
// Apply the Java Gradle plugin development plugin to add support for developing Gradle plugins
id("java-gradle-plugin")
id("maven-publish")
`kotlin-dsl`
// id("net.darkhax.curseforgegradle") version "1.0.10"
// id("com.modrinth.minotaur") version "2.+"
}
group = "at.petra-k.pkpcpbp"
version = "%s-pre-%s".format(properties["pluginVersion"], System.getenv("BUILD_NUMBER"))
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
gradlePluginPortal()
}
dependencies {
implementation(gradleApi())
implementation("blue.endless:jankson:1.2.2")
implementation("com.diluv.schoomp:Schoomp:1.2.6")
implementation(group = "net.darkhax.curseforgegradle", name = "CurseForgeGradle", version = "1.0.10")
implementation(group = "com.modrinth.minotaur", name = "Minotaur", version = "2.8.7")
implementation("org.junit.jupiter:junit-jupiter:5.8.1")
}
gradlePlugin {
// Define the plugin
plugins {
create("pkpcpbp") {
id = "at.petra-k.pkpcpbp.PKPlugin"
displayName = "P.K.P.C.P.B.P."
description = "Petra Kat's Pretty Cool Publishing Boilerplate Plugin"
implementationClass = "at.petrak.pkpcpbp.PKPlugin"
}
create("pkJson5") {
id = "at.petra-k.pkpcpbp.PKJson5Plugin"
displayName = "PK Json5"
description = "Flattens/transpiles json5 to json. You can just use this plugin by itself hopefully"
implementationClass = "at.petrak.pkpcpbp.PKJson5Plugin"
}
create("pkpcpbpSubproj") {
id = "at.petra-k.pkpcpbp.PKSubprojPlugin"
displayName = "PKPCPBP (Subprojs)"
description = "Sets up PKPCPBP stuff for subprojects."
implementationClass = "at.petrak.pkpcpbp.PKSubprojPlugin"
}
}
}
publishing {
publications {
create("mavenJava", MavenPublication::class.java) {
groupId = project.group.toString()
artifactId = project.archivesName.get()
version = project.version.toString()
from(components.getByName("java"))
}
}
repositories {
maven("file:///" + System.getenv("local_maven"))
}
}
tasks.named<Test>("test") {
useJUnitPlatform()
maxHeapSize = "1G"
testLogging {
events("passed")
}
}