You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dependencies.gradle
+70-57Lines changed: 70 additions & 57 deletions
Original file line number
Diff line number
Diff line change
@@ -4,22 +4,22 @@
4
4
* Add your dependencies here. Supported configurations:
5
5
* - api("group:name:version:classifier"): if you use the types from this dependency in the public API of this mod
6
6
* Available at runtime and compiletime for mods depending on this mod
7
-
* - api("g:n:v:c"): if you need this for internal api details of the mod, but none of it is visible via the public API
7
+
* - implementation("g:n:v:c"): if you need this for internal implementation details of the mod, but none of it is visible via the public API
8
8
* Available at runtime but not compiletime for mods depending on this mod
9
9
* - compileOnly("g:n:v:c"): if the mod you're building doesn't need this dependency during runtime at all, e.g. for optional mods
10
10
* Not available at all for mods depending on this mod, only visible at compiletime for this mod
11
-
* - compileOnly("g:n:v:c"): like compileOnly, but also visible at compiletime for mods depending on this mod
11
+
* - compileOnlyApi("g:n:v:c"): like compileOnly, but also visible at compiletime for mods depending on this mod
12
12
* Available at compiletime but not runtime for mods depending on this mod
13
-
* - runtimeOnlyNonPublishableNonPublishable("g:n:v:c"): if you want to include a mod in this mod's runClient/runServer runs, but not publish it as a dependency
13
+
* - runtimeOnlyNonPublishable("g:n:v:c"): if you want to include a mod in this mod's runClient/runServer runs, but not publish it as a dependency
14
14
* Not available at all for mods depending on this mod, only visible at runtime for this mod
15
-
* - devOnlyNonPublishable("g:n:v:c"): a combination of runtimeOnlyNonPublishableNonPublishable and compileOnly for dependencies present at both compiletime and runtime,
15
+
* - devOnlyNonPublishable("g:n:v:c"): a combination of runtimeOnlyNonPublishable and compileOnly for dependencies present at both compiletime and runtime,
16
16
* but not published as Maven dependencies - useful for RFG-deobfuscated dependencies or local testing
17
-
* - runtimeOnlyNonPublishable("g:n:v:c"): if you don't need this at compile time, but want it to be present at runtime
17
+
* - runtimeOnly("g:n:v:c"): if you don't need this at compile time, but want it to be present at runtime
18
18
* Available at runtime for mods depending on this mod
19
19
* - annotationProcessor("g:n:v:c"): mostly for java compiler plugins, if you know you need this, use it, otherwise don't worry
20
20
* - testCONFIG("g:n:v:c") - replace CONFIG by one of the above (except api), same as above but for the test sources instead of main
21
21
*
22
-
* - shadowapi("g:n:v:c"): effectively the same as API, but the dependency is included in your jar under a renamed package name
22
+
* - shadowImplementation("g:n:v:c"): effectively the same as API, but the dependency is included in your jar under a renamed package name
23
23
* Requires you to enable usesShadowedDependencies in gradle.properties
24
24
* For more info, see https://github.com/GTModpackTeam/Buildscripts/blob/master/docs/shadow.md
25
25
*
@@ -32,61 +32,74 @@
32
32
* To add a mod with CurseMaven, replace '("g:n:v:c")' in the above with 'rfg.deobf("curse.maven:project_slug-project_id:file_id")'
* Gradle names for some of the configuration can be misleading, compileOnly and runtimeOnlyNonPublishable both get published as dependencies in Maven, but compileOnly does not.
36
-
* The buildscript adds runtimeOnlyNonPublishableNonPublishable to also have a runtime dependency that's not published.
35
+
* Gradle names for some of the configuration can be misleading, compileOnlyApi and runtimeOnly both get published as dependencies in Maven, but compileOnly does not.
36
+
* The buildscript adds runtimeOnlyNonPublishable to also have a runtime dependency that's not published.
37
37
*
38
38
* For more details, see https://docs.gradle.org/8.4/userguide/java_library_plugin.html#sec:java_library_configurations_graph
0 commit comments