-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
52 lines (43 loc) · 1.06 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
`maven-publish`
}
group = "dev.emortal"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains:annotations:24.0.1")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.3")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
publishing {
repositories {
maven {
name = "development"
url = uri("https://repo.emortal.dev/snapshots")
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_SECRET")
}
}
}
publications {
create<MavenPublication>("maven") {
groupId = "dev.emortal"
artifactId = "rayfast"
val commitHash = System.getenv("COMMIT_HASH_SHORT")
val releaseVersion = System.getenv("RELEASE_VERSION")
version = commitHash ?: releaseVersion ?: "local"
from(components["java"])
}
}
}
tasks.test {
useJUnitPlatform()
}