Skip to content

Commit

Permalink
patch: separated simplecoreapi into different modules for the differe…
Browse files Browse the repository at this point in the history
…nt runtimes.
  • Loading branch information
Im-Fran committed Aug 4, 2024
1 parent 6f910e9 commit f42a497
Show file tree
Hide file tree
Showing 70 changed files with 586 additions and 850 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/deploy-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ 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
20 changes: 12 additions & 8 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
35 changes: 0 additions & 35 deletions build-info/build.gradle.kts
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/"))
}
}
}
Loading

0 comments on commit f42a497

Please sign in to comment.