-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature]: Adapt to dynamically configurable tools (#251)
- Loading branch information
1 parent
173aeb9
commit 134aa03
Showing
20 changed files
with
732 additions
and
308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 0 additions & 39 deletions
39
...et/neoforged/gradle/common/runtime/naming/tasks/UnapplyOfficialMappingsToCompiledJar.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...atform/src/main/groovy/net/neoforged/gradle/dsl/platform/extensions/LibraryManager.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package net.neoforged.gradle.dsl.platform.extensions | ||
|
||
import net.neoforged.gradle.dsl.platform.model.Library | ||
import org.gradle.api.provider.Provider | ||
|
||
/** | ||
* Defines a manager for libraries. | ||
*/ | ||
interface LibraryManager { | ||
|
||
/** | ||
* Gets the classpath of a library. | ||
* | ||
* @param library The library to get the classpath of. | ||
* @return The classpath of the library. | ||
*/ | ||
Provider<Set<String>> getClasspathOf(Provider<String> library); | ||
|
||
/** | ||
* Gets the libraries that a library depends on. | ||
* | ||
* @param library The library to get the dependencies of. | ||
* @return The dependencies of the library. | ||
*/ | ||
Provider<Set<Library>> getLibrariesOf(Provider<String> library); | ||
|
||
/** | ||
* Gets the classpath of a library. | ||
* | ||
* @param library The library to get the classpath of. | ||
* @return The classpath of the library. | ||
*/ | ||
Provider<Set<String>> getClasspathOf(String library); | ||
|
||
/** | ||
* Gets the libraries that a library depends on. | ||
* | ||
* @param library The library to get the dependencies of. | ||
* @return The dependencies of the library. | ||
*/ | ||
Provider<Set<Library>> getLibrariesOf(String library); | ||
} |
Oops, something went wrong.