-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
63 lines (50 loc) · 1.47 KB
/
build.gradle
File metadata and controls
63 lines (50 loc) · 1.47 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
57
58
59
60
61
62
63
plugins {
id 'java'
id 'maven-publish'
}
group = 'pt.supercrafting.menu'
version = '1.0'
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
repositories {
mavenCentral()
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
}
}
dependencies {
implementation('it.unimi.dsi:fastutil:8.5.15')
implementation("net.kyori:adventure-api:4.23.0")
compileOnly("net.kyori:adventure-text-serializer-legacy:4.23.0")
compileOnly("io.papermc.paper:paper-api:1.21.7-R0.1-SNAPSHOT")
compileOnly('org.jetbrains:annotations:26.0.2')
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}
publishing {
String buildNumber = System.getenv('GITHUB_RUN_NUMBER');
publications {
maven(MavenPublication) {
groupId = project.group
artifactId = 'menu-api'
version = project.version + (buildNumber ? "-${buildNumber}" : '')
from components.java
}
}
repositories {
maven {
credentials {
username System.getenv('GITHUB_USERNAME')
password System.getenv('GITHUB_TOKEN')
}
name = "menu-api"
String owner = System.getenv('GITHUB_USERNAME')
String repository = 'MenuAPI'
url = "https://maven.pkg.github.com/${owner}/${repository}"
}
}
}