Skip to content

Commit de6376c

Browse files
committed
Reorder optional Maven params
1 parent 622a46e commit de6376c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main/kotlin/dev/deftu/gradle/tools/repo.gradle.kts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ repositories {
77
mavenLocal()
88

99
// General
10-
optionalMaven("repo.deftu.releases", "Deftu Releases", "https://maven.deftu.dev/releases/")
11-
optionalMaven("repo.jitpack", "JitPack", "https://jitpack.io/")
12-
optionalMaven("repo.deftu.snapshots", "Deftu Snapshots", "https://maven.deftu.dev/snapshots/")
10+
optionalMaven("repo.deftu.releases", "https://maven.deftu.dev/releases/", "Deftu Releases")
11+
optionalMaven("repo.jitpack", "https://jitpack.io/", "JitPack")
12+
optionalMaven("repo.deftu.snapshots", "https://maven.deftu.dev/snapshots/", "Deftu Snapshots")
1313

1414
// Minecraft
15-
optionalMaven("repo.essential", "Essential", "https://repo.essential.gg/repository/maven-public/")
16-
optionalMaven("repo.kff", "KotlinForForge", "https://thedarkcolour.github.io/KotlinForForge/")
15+
optionalMaven("repo.essential", "https://repo.essential.gg/repository/maven-public/", "Essential")
16+
optionalMaven("repo.kff", "https://thedarkcolour.github.io/KotlinForForge/", "KotlinForForge")
1717

18-
optionalMaven("repo.deftu.mirror", "Deftu Mirror", "https://maven.deftu.dev/mirror") {
18+
optionalMaven("repo.deftu.mirror", "https://maven.deftu.dev/mirror", "Deftu Mirror") {
1919
exclusiveContent {
2020
filter {
2121
includeGroup("com.terraformersmc") // Mod Menu
2222
}
2323
}
2424
}
2525

26-
optionalMaven("repo.sponge", "SpongePowered", "https://repo.spongepowered.org/maven/") {
26+
optionalMaven("repo.sponge", "https://repo.spongepowered.org/maven/", "SpongePowered") {
2727
exclusiveContent {
2828
filter {
2929
includeGroup("org.spongepowered")
@@ -34,8 +34,8 @@ repositories {
3434

3535
fun RepositoryHandler.optionalMaven(
3636
propertyName: String,
37-
name: String? = null,
3837
url: String,
38+
name: String? = null,
3939
block: ArtifactRepository.() -> Unit = { }
4040
) {
4141
if (!project.propertyBoolOr(propertyName, true)) {

0 commit comments

Comments
 (0)