generated from UndefinedCreations/Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
96 lines (82 loc) · 2.1 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
plugins {
java
kotlin("jvm") version "1.9.22"
`maven-publish`
id("com.gradleup.shadow") version "8.3.5"
}
apply(plugin = "maven-publish")
val projectGroupId = "com.undefined"
val projectVersion = "0.0.70"
val projectArtifactId = "stellar"
group = projectGroupId
version = projectVersion
val minecraftVersion = "1.20.6"
repositories {
mavenCentral()
mavenLocal()
maven("https://repo.codemc.io/repository/maven-snapshots/")
}
publishing {
repositories {
maven {
name = "UndefinedCreations"
url = uri("https://repo.undefinedcreations.com/releases")
credentials(PasswordCredentials::class) {
username = System.getenv("MAVEN_NAME")
password = System.getenv("MAVEN_SECRET")
}
}
}
publications {
register<MavenPublication>("maven") {
groupId = projectGroupId
artifactId = projectArtifactId
version = projectVersion
from(components["java"])
}
}
}
allprojects {
apply(plugin = "java")
apply(plugin = "java-library")
apply(plugin = "maven-publish")
version = projectVersion
repositories {
mavenCentral()
mavenLocal()
maven {
name = "minecraft-repo"
url = uri("https://libraries.minecraft.net/")
}
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib")
implementation("net.kyori:adventure-api:4.17.0")
implementation("net.kyori:adventure-platform-bukkit:4.3.4")
implementation("net.kyori:adventure-text-minimessage:4.17.0")
implementation("net.kyori:adventure-text-serializer-legacy:4.17.0")
}
}
dependencies {
api(project(":spigot:api"))
api(project(":spigot:common"))
}
tasks {
publish {
finalizedBy(project(":paper:api").tasks["publish"])
}
shadowJar {
archiveClassifier = ""
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}
java {
withSourcesJar()
withJavadocJar()
disableAutoTargetJvm()
}
kotlin {
jvmToolchain(21)
}