-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathbuild.gradle
63 lines (56 loc) · 2.42 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
62
63
architectury {
common(rootProject.enabled_platforms.split(","))
}
loom {
accessWidenerPath = file("src/main/resources/vs_eureka.accesswidener")
}
dependencies {
implementation(annotationProcessor("io.github.llamalad7:mixinextras-common:$mixin_extras_version"))
// We depend on fabric loader here to use the fabric @Environment annotations and get the mixin dependencies
// Do NOT use other classes from fabric loader
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
// Remove the next line if you don't want to depend on the API
// modApi "me.shedaniel:architectury:${rootProject.architectury_version}"
modApi("org.valkyrienskies:valkyrienskies-120-common:${rootProject.vs2_version}")
compileOnly("org.valkyrienskies.core:api:${rootProject.vs_core_version}")
compileOnly("org.valkyrienskies.core:api-game:${rootProject.vs_core_version}")
compileOnly("org.valkyrienskies.core:util:${rootProject.vs_core_version}")
compileOnly("org.valkyrienskies.core:impl:${rootProject.vs_core_version}")
api "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10"
api "org.jetbrains.kotlin:kotlin-reflect:1.9.10"
}
publishing {
publications {
mavenCommon(MavenPublication) {
groupId = "org.valkyrienskies.eureka"
version = project.version
artifactId = rootProject.archives_base_name + "-" + project.name
from components.java
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
if (project.vs_maven_username && project.vs_maven_password) {
println "Publishing to VS Maven"
maven {
url = project.vs_maven_url
credentials {
username = project.vs_maven_username
password = project.vs_maven_password
}
}
}
// Add repositories to publish to here.
if (System.getenv("GITHUB_ACTOR") != null) {
println "Publishing to Github Packages"
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ValkyrienSkies/Eureka")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
}