-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
49 lines (43 loc) · 1.21 KB
/
build.gradle.kts
File metadata and controls
49 lines (43 loc) · 1.21 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
plugins {
kotlin("jvm") version "2.3.0"
id("java")
id("idea")
id("com.gradle.plugin-publish") version "1.2.1"
id("com.hypherionmc.modutils.orion") version "2.0.16"
}
apply(plugin = "maven-publish")
kotlin {
jvmToolchain(25)
}
group = "com.hypherionmc.hyloom"
version = orion.versioning.buildVersion()
description = "Hytale Server modding environment setup plugin"
repositories {
mavenCentral()
}
dependencies {
implementation(gradleApi())
}
gradlePlugin {
plugins {
create("hyloomPlugin") {
id = "com.hypherionmc.hyloom"
description = project.description
displayName = "Hyloom"
version = project.version
implementationClass = "com.hypherionmc.hyloom.plugin.HyloomPlugin"
tags.set(listOf("gradle", "hytale", "modding", "server plugin"))
}
}
}
publishing {
repositories {
maven {
url = uri("https://maven.firstdark.dev/${if (orion.getProperty("releaseType") == "snapshot") { "snapshots"} else { "releases" } }")
credentials {
username = System.getenv("MAVEN_USER")
password = System.getenv("MAVEN_PASS")
}
}
}
}