forked from CivMC/FactoryMod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
56 lines (49 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
53
54
55
56
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.factorymod"
version = "3.0.0-SNAPSHOT"
description = "FactoryMod"
}
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")
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/CivMC/FactoryMod")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
}
}