-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow configurations for dependencies in setups
Also made it so that bStats and ItemNBT-API were excluded from AnnoyinG API when implementing
- Loading branch information
Showing
3 changed files
with
72 additions
and
17 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/main/kotlin/xyz/srnyx/gradlegalaxy/data/AnnoyingAPIReturn.kt
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,18 @@ | ||
package xyz.srnyx.gradlegalaxy.data | ||
|
||
import org.gradle.api.artifacts.ExternalModuleDependency | ||
|
||
import xyz.srnyx.gradlegalaxy.utility.setupAnnoyingAPI | ||
|
||
|
||
class AnnoyingAPIReturn(private val dependencyModule: ExternalModuleDependency? = null, private val annoyingAPIModule: ExternalModuleDependency) { | ||
/** | ||
* The configuration for the dependency that was added via [setupAnnoyingAPI] | ||
*/ | ||
fun dependency(configuration: ExternalModuleDependency.() -> Unit) = dependencyModule?.let(configuration) | ||
|
||
/** | ||
* The configuration for Annoying API's implementation that was added via [setupAnnoyingAPI] | ||
*/ | ||
fun annoyingAPI(configuration: ExternalModuleDependency.() -> Unit) = annoyingAPIModule.configuration() | ||
} |
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