-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated example-module/plugin build.gradle.kts
- Loading branch information
Showing
2 changed files
with
41 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,35 @@ | ||
group = "dev.redicloud.modules" | ||
|
||
repositories { | ||
// Repo for redicloud artifacts | ||
maven("https://repo.redicloud.dev/releases") | ||
/* | ||
Github redicloud packages (more information at https://docs.redicloud.dev/development/repository): | ||
maven("https://maven.pkg.github.com/RediCloud/cloud-v2") { | ||
credentials { | ||
username = project.findProperty("github_username") as String? ?: System.getenv("GITHUB_USERNAME") | ||
password = project.findProperty("github_token") as String? ?: System.getenv("GITHUB_TOKEN") | ||
} | ||
} | ||
*/ | ||
|
||
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots") | ||
} | ||
|
||
dependencies { | ||
// Internal usage, ignore it | ||
compileOnly(project(":apis:base-api")) | ||
|
||
// External usage, use it | ||
// compileOnly("dev.redicloud:api:${Versions.cloud}") | ||
/* | ||
Use the code below to add the cloud api (more information at https://docs.redicloud.dev/development/repository): | ||
compileOnly("dev.redicloud.api:base-api:<cloud-version>") | ||
If this should be a node module, you can add also the node-api: | ||
compileOnly("dev.redicloud.api:node-api:<cloud-version>") | ||
*/ | ||
|
||
compileOnly(BuildDependencies.SPIGOT_API) | ||
|
||
// Internal usage, ignore it! You don't need to add this | ||
compileOnly(project(":apis:base-api")) | ||
} |
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 |
---|---|---|
@@ -1,17 +1,30 @@ | ||
group = "dev.redicloud.example.plugin" | ||
|
||
repositories { | ||
// Repo for redicloud artifacts | ||
maven("https://repo.redicloud.dev/releases") | ||
/* | ||
Github redicloud packages: | ||
maven("https://maven.pkg.github.com/RediCloud/cloud-v2") { | ||
credentials { | ||
username = project.findProperty("github_username") as String? ?: System.getenv("GITHUB_USERNAME") | ||
password = project.findProperty("github_token") as String? ?: System.getenv("GITHUB_TOKEN") | ||
} | ||
} | ||
*/ | ||
|
||
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots") | ||
} | ||
|
||
dependencies { | ||
// Internal usage, ignore it | ||
compileOnly(project(":apis:base-api")) | ||
|
||
// External usage, use it | ||
// compileOnly("dev.redicloud:api:<cloud-version>") | ||
/* | ||
Use the code below to add the cloud api: | ||
compileOnly("dev.redicloud.api:base-api:<cloud-version>") | ||
*/ | ||
|
||
compileOnly(BuildDependencies.SPIGOT_API) | ||
|
||
// Internal usage, ignore it! You don't need to add this | ||
compileOnly(project(":apis:base-api")) | ||
} |