Skip to content

Commit

Permalink
updated example-module/plugin build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
Suqatri committed Apr 9, 2024
1 parent b6560fd commit 324fa32
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 10 deletions.
26 changes: 22 additions & 4 deletions examples/example-module/build.gradle.kts
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"))
}
25 changes: 19 additions & 6 deletions examples/example-plugin/build.gradle.kts
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"))
}

0 comments on commit 324fa32

Please sign in to comment.