-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
52 lines (42 loc) · 1.26 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
plugins {
java
id("maven-publish")
id("io.papermc.paperweight.userdev") version "1.5.2" apply false
}
group = "com.owen1212055"
version = "1.5.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
}
subprojects {
apply(plugin = "java")
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
}
publishing {
publications {
create<MavenPublication>("maven") {
evaluationDependsOn(":api")
evaluationDependsOn(":nms")
groupId = group as String
artifactId = "particlehelper"
from(project(":api").components["java"])
artifact((project(":nms").tasks["reobfJar"] as io.papermc.paperweight.tasks.RemapJar).outputJar)
}
tasks.withType<GenerateModuleMetadata> {
enabled = false
}
}
repositories {
maven {
name = "bytecodespace"
val releasesRepoUrl = uri("https://repo.bytecode.space/repository/maven-releases/")
val snapshotsRepoUrl = uri("https://repo.bytecode.space/repository/maven-snapshots/")
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
credentials(PasswordCredentials::class)
}
}
}