forked from CivMC/SimpleAdminHacks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
61 lines (54 loc) · 1.32 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
53
54
55
56
57
58
59
60
61
import net.civmc.civgradle.common.util.civRepo
plugins {
`java-library`
`maven-publish`
id("net.civmc.civgradle.plugin") version "1.0.0-SNAPSHOT"
}
// Temporary hack:
// Remove the root build directory
gradle.buildFinished {
project.buildDir.deleteRecursively()
}
allprojects {
group = "net.civmc.simpleadminhacks"
version = "2.0.0-SNAPSHOT"
description = "SimpleAdminHacks"
}
subprojects {
apply(plugin = "net.civmc.civgradle.plugin")
apply(plugin = "java-library")
apply(plugin = "maven-publish")
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
repositories {
mavenCentral()
civRepo("CivMC/CivModCore")
civRepo("CivMC/NameLayer")
civRepo("CivMC/Citadel")
civRepo("CivMC/CombatTagPlus")
civRepo("CivMC/BanStick")
maven("https://repo.dmulloy2.net/repository/public/")
maven("https://ci.frostcast.net/plugin/repository/everything")
maven("https://jitpack.io")
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/CivMC/SimpleAdminHacks")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
}
}