forked from Creators-of-Aeronautics/Simulated-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
98 lines (81 loc) · 2.76 KB
/
build.gradle
File metadata and controls
98 lines (81 loc) · 2.76 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
plugins {
// https://projects.neoforged.net/neoforged/moddevgradle
id 'net.neoforged.moddev' version '2.0.140' apply false
}
allprojects {
if (project == rootProject) {
version = '1.0.0'
}
}
def configureModSubprojects(String modName) {
configure(subprojects.findAll { it.path.startsWith(":${modName}:") }) {
def modProps = new Properties()
file("${rootProject.projectDir}/${modName}/gradle.properties").withInputStream { modProps.load(it) }
modProps.each { key, value ->
project.ext.set(key.toString(), value)
}
version = project.mod_version
group = modProps.group
description = modProps.description
}
}
configureModSubprojects('simulated')
configureModSubprojects('aeronautics')
configureModSubprojects('offroad')
subprojects {
repositories {
mavenLocal()
mavenCentral()
exclusiveContent { // Sable
forRepository {
maven {
url = "https://maven.ryanhcode.dev/releases"
name = "RyanHCode Maven"
}
}
filter {
includeGroup("dev.ryanhcode.sable")
includeGroup("dev.ryanhcode.sable-companion")
}
}
def ryanUsername = System.getenv('local_maven_user') ?: project.findProperty('ryanhcodeMavenUser') ?: ''
def ryanPassword = System.getenv('local_maven_token') ?: project.findProperty('ryanhcodeMavenToken') ?: ''
if (ryanUsername != '' && ryanPassword != '') {
maven {
url = "https://maven.ryanhcode.dev/private"
authentication {
basic(BasicAuthentication)
}
credentials {
username = ryanUsername
password = ryanPassword
}
}
}
maven { url = "https://maven.createmod.net" } // Create, Ponder, Flywheel
maven { url = "https://mvn.devos.one/snapshots" } // Registrate
maven { url = "https://raw.githubusercontent.com/Fuzss/modresources/main/maven/" } // ForgeConfigAPIPort
maven { url = "https://maven.theillusivec4.top/" } // Curios API
maven {
name = 'Jared maven'
url = 'https://maven.blamejared.com/'
}
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
maven {
url = "https://maven.squiddev.cc"
content {
includeGroup("cc.tweaked")
}
}
}
}