-
-
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.
feat: multi project and lots of updates
* now we're using a multi project system * updated to the latest blossom to support new features * removed .sdkmanrc * added jitpack.yml * added custom dotenv support * updated to gradle 8.5 * updated dependencies * removed .idea/ folder * updated some workflow actions. # What's next? * finish setting up a new build system (the final jar should be written under ./build instead of ./simplecoreapi/build) * finish adding modules
- Loading branch information
Showing
59 changed files
with
217 additions
and
424 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
plugins { | ||
id("net.kyori.blossom") version "2.1.0" // Placeholder injection | ||
} | ||
|
||
kotlin { | ||
sourceSets { | ||
main { | ||
kotlin.srcDir("src/main/kotlin-templates") | ||
resources.srcDir("src/main/resources-templates") | ||
} | ||
} | ||
} | ||
|
||
sourceSets { | ||
main { | ||
blossom { | ||
val variables = mapOf( | ||
"name" to rootProject.name, | ||
"version" to "${project.version}", | ||
"description" to project.description, | ||
"git_short" to (env["GIT_COMMIT_SHORT_HASH"] ?: "unknown"), | ||
"git_full" to (env["GIT_COMMIT_LONG_HASH"] ?: "unknown") | ||
) | ||
|
||
kotlinSources { | ||
variables.forEach(this::property) | ||
} | ||
|
||
resources { | ||
variables.forEach(this::property) | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
build-info/src/main/kotlin-templates/xyz/theprogramsrc/simplecoreapi/BuildInfo.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,31 @@ | ||
package xyz.theprogramsrc.simplecoreapi | ||
|
||
/** | ||
* Gets the short version of the commit hash | ||
* @return The short commit hash | ||
*/ | ||
const val getShortHash: String = "{{ git_short }}" | ||
|
||
/** | ||
* Gets the full version of the commit hash | ||
* @return The full commit hash | ||
*/ | ||
const val getFullHash: String = "{{ git_full }}" | ||
|
||
/** | ||
* Gets the version of SimpleCoreAPI | ||
* @return The version of SimpleCoreAPI | ||
*/ | ||
const val getVersion: String = "{{ version }}" | ||
|
||
/** | ||
* Gets the name of the project ('SimpleCoreAPI') | ||
* @return The name of the project | ||
*/ | ||
const val getName: String = "{{ name }}" | ||
|
||
/** | ||
* Gets the description of the project | ||
* @return The description of the project | ||
*/ | ||
const val getDescription: String = "{{ description }}" |
2 changes: 1 addition & 1 deletion
2
src/main/resources/bungee.yml → ...fo/src/main/resource-templates/bungee.yml
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,3 +1,3 @@ | ||
name: 'SimpleCoreAPI' | ||
main: 'xyz.theprogramsrc.simplecoreapi.bungee.BungeeLoader' | ||
version: '@version@' | ||
version: '{{ version }}' |
2 changes: 1 addition & 1 deletion
2
src/main/resources/plugin.yml → ...fo/src/main/resource-templates/plugin.yml
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,4 +1,4 @@ | ||
name: 'SimpleCoreAPI' | ||
main: 'xyz.theprogramsrc.simplecoreapi.spigot.SpigotLoader' | ||
version: '@version@' | ||
version: '{{ version }}' | ||
api-version: '1.13' |
2 changes: 1 addition & 1 deletion
2
src/main/resources/velocity-plugin.json → ...n/resource-templates/velocity-plugin.json
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
Oops, something went wrong.