-
-
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.
patch: separated simplecoreapi into different modules for the differe…
…nt runtimes.
- Loading branch information
Showing
70 changed files
with
586 additions
and
850 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,18 +39,22 @@ jobs: | |
- name: Build with Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: clean test shadowJar dokkaHtml publish sonatypeCentralUpload | ||
# Now we store the artifact in the action | ||
- name: Upload the artifact | ||
arguments: clean test deploy | ||
# Now we store the artifacts in the action | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: SimpleCoreAPI | ||
path: ./build/libs/simplecoreapi.jar | ||
path: ./build/libs/simplecoreapi-*.jar | ||
# Here we upload the binary to the release | ||
- name: Upload to release | ||
uses: JasonEtco/upload-to-release@master | ||
- uses: d1ceward/draft-assets-release-action@v2 | ||
name: Upload to release | ||
with: | ||
args: ./build/libs/simplecoreapi.jar application/java-archive | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: | | ||
build/libs/simplecoreapi-bukkit.jar | ||
build/libs/simplecoreapi-paper.jar | ||
build/libs/simplecoreapi-bungee.jar | ||
build/libs/simplecoreapi-velocity.jar | ||
# Now we deploy the documents to GitHub pages | ||
- name: Deploy Dokka | ||
uses: JamesIves/[email protected] | ||
|
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,35 +0,0 @@ | ||
import org.jetbrains.dokka.gradle.DokkaTask | ||
|
||
plugins { | ||
id("net.kyori.blossom") version "2.1.0" // Placeholder injection | ||
} | ||
|
||
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) | ||
} | ||
} | ||
} | ||
} | ||
|
||
tasks.withType<DokkaTask>().configureEach { | ||
dokkaSourceSets { | ||
configureEach { | ||
sourceRoots.from(file("src/")) | ||
} | ||
} | ||
} | ||
Oops, something went wrong.