-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
56 lines (48 loc) · 1.34 KB
/
build.gradle.kts
File metadata and controls
56 lines (48 loc) · 1.34 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
plugins {
`maven-publish`
kotlin("jvm") version "2.3.0"
}
group = "me.znotchill"
version = project.property("version")!!
repositories {
mavenCentral()
maven("https://repo.znotchill.me/repository/maven-releases/")
maven("https://redirector.kotlinlang.org/maven/bootstrap")
maven(url = "https://central.sonatype.com/repository/maven-snapshots/") {
content {
includeModule("net.minestom", "minestom")
includeModule("net.minestom", "testing")
}
}
}
dependencies {
testImplementation(kotlin("test"))
compileOnly("net.minestom:minestom:${project.property("minestom_version")}")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(25)
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
groupId = "me.znotchill"
artifactId = "blossom"
version
}
}
repositories {
maven {
name = "znotchill"
url = uri("https://repo.znotchill.me/repository/maven-releases/")
credentials {
username = findProperty("zRepoUsername") as String? ?: System.getenv("MAVEN_USER")
password = findProperty("zRepoPassword") as String? ?: System.getenv("MAVEN_PASS")
}
}
mavenLocal()
}
}