Skip to content

Commit

Permalink
1.0.2: Linux fixes, update CI with testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gdude2002 committed Jul 24, 2024
1 parent 371362e commit 95da4f0
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
TOKEN: "${{ secrets.TOKEN }}"

- name: Gradle (Test)
run: "./gradlew build"
run: "./gradlew build --info --stacktrace"
working-directory: "./testModule"

- name: Upload plugin JARs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
TOKEN: "${{ secrets.TOKEN }}"

- name: Gradle (Test)
run: "./gradlew build"
run: "./gradlew build --info --stacktrace"
working-directory: "./testModule"

- name: Upload plugin JARs
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,25 @@ jobs:
global: true
token: '${{ secrets.GITHUB_TOKEN }}'

- name: Gradle (Build)
uses: gradle/gradle-build-action@v3

- name: Gradle (Setup)
uses: gradle/actions/setup-gradle@v3

with:
arguments: checkLicenses build
dependency-graph: generate-and-submit

- name: Gradle (Build)
run: "./gradlew checkLicenses build publishToMavenLocal"

env:
TOKEN: "${{ secrets.TOKEN }}"

- name: Gradle (Test)
run: "./gradlew build --info --stacktrace"
working-directory: "./testModule"

- name: Gradle (Publish)
uses: gradle/gradle-build-action@v3
run: "./gradlew publishPlugins"

env:
ORG_GRADLE_PROJECT_signingKey: "${{ secrets.GPG_KEY }}"
Expand All @@ -57,9 +65,6 @@ jobs:

TOKEN: "${{ secrets.TOKEN }}"

with:
arguments: publishPlugins

- name: Create release description
run: kotlin .github/tag.main.kts

Expand Down
9 changes: 9 additions & 0 deletions changes/1.0.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Gradle Plugins 1.0.2

This version targets the recently released KordEx plugin with a bug fix.

## KordEx Plugin

This release includes the following fixes:

- Previously, the plugin would error on Linux due to a failure to create a directory for the plugin-generated resource files. This was due to Gradle's layout API unexpectedly treating subfiles starting with `/` as if they were within the filesystem root.
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,8 @@ class KordExPlugin : Plugin<Project> {
kordVersion: String?,
kordExVersion: String
) {
val outputDir = target.layout.buildDirectory.file("/generated")
val outputFile = target.layout.buildDirectory.file("/generated/kordex.properties")

if (!outputDir.get().asFile.exists()) {
outputDir.get().asFile.mkdirs()
}
val outputDir = target.layout.buildDirectory.dir("generated")
val outputFile = target.layout.buildDirectory.file("generated/kordex.properties")

val task = target.tasks.create("generateMetadata") {
group = "generation"
Expand Down

0 comments on commit 95da4f0

Please sign in to comment.