Skip to content

Commit 3d46cab

Browse files
committed
partially import planetarium's build.gradle
1 parent 5b57f93 commit 3d46cab

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

build.gradle

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,17 @@ base {
1111
}
1212

1313
repositories {
14-
// Add repositories to retrieve artifacts from in here.
15-
// You should only use this when depending on other mods because
16-
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
17-
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
18-
// for more information about repositories.
14+
exclusiveContent {
15+
forRepository {
16+
maven {
17+
name = "Modrinth"
18+
url = "https://api.modrinth.com/maven"
19+
}
20+
}
21+
filter {
22+
includeGroup "maven.modrinth"
23+
}
24+
}
1925
}
2026

2127
dependencies {
@@ -26,7 +32,7 @@ dependencies {
2632

2733
// Fabric API. This is technically optional, but you probably want it anyway.
2834
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
29-
35+
3036
}
3137

3238
processResources {
@@ -52,8 +58,8 @@ java {
5258
}
5359

5460
jar {
55-
from("LICENSE") {
56-
rename { "${it}_${project.base.archivesName.get()}"}
61+
from('LICENSE') {
62+
rename { "${it}_${base.archivesName.get()}" }
5763
}
5864
}
5965

@@ -73,4 +79,4 @@ publishing {
7379
// The repositories here will be used for publishing your artifact, not for
7480
// retrieving dependencies.
7581
}
76-
}
82+
}

0 commit comments

Comments
 (0)