This repository has been archived by the owner on Dec 9, 2021. It is now read-only.
forked from lyndseyy/GameManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (52 loc) · 1.52 KB
/
build.gradle
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
plugins {
id 'com.github.johnrengelman.shadow' version '7.0.0'
id 'java'
id 'maven-publish'
}
group 'cc.lynzie'
version '1.0.0'
repositories {
mavenCentral()
maven { url "https://repo.aikar.co/content/groups/aikar/" }
maven { url "https://papermc.io/repo/repository/maven-public/" }
maven {
url = uri("https://maven.pkg.github.com/otvmc/GameManager")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
compileJava {
options.compilerArgs += ["-parameters"]
options.fork = true
options.forkOptions.executable = 'javac'
}
dependencies {
compileOnly "io.papermc.paper:paper-api:1.17.1-R0.1-SNAPSHOT"
implementation "co.aikar:acf-paper:0.5.0-SNAPSHOT"
}
shadowJar {
relocate 'co.aikar.commands', 'cc.lynzie.minigame.acf'
relocate 'co.aikar.locale', 'cc.lynzie.minigame.acf.locales'
}
test {
useJUnitPlatform()
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/otvmc/GameManager")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from components.java
}
}
}