Skip to content

Commit

Permalink
Fix action (#114)
Browse files Browse the repository at this point in the history
* Fix release action.

* Generate sourceJar for shadowed modules.
  • Loading branch information
aoli-al authored Feb 9, 2025
1 parent 369df7a commit 18411fc
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ jobs:
publish:
runs-on: ${{ matrix.operating-system }}
permissions:
contents: read
packages: write
contents: write
strategy:
fail-fast: false
matrix:
Expand Down
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ configure(allprojects - rootProject -
}
}
if (components.findByName("shadow") == null) from(components["java"])
else from(components["shadow"])
else {
from(components["shadow"])
artifact(tasks["sourceJar"])
}
if (project.name != "jvmti") {
artifact(dokkaJavadocJar)
artifactId = project.base.archivesName.get()
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kotlin.code.style=official
group=org.pastalab.fray
version=0.2.3-SNAPSHOT
version=0.2.4-SNAPSHOT
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
Expand Down
5 changes: 5 additions & 0 deletions instrumentation/agent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ tasks.jar {
enabled = false
}

tasks.register<Jar>("sourceJar") {
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}

tasks.test {
useJUnitPlatform()
}
4 changes: 4 additions & 0 deletions plugins/base/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ tasks.jar {
enabled = false
}

tasks.register<Jar>("sourceJar") {
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}

tasks.test {
useJUnitPlatform()
Expand Down

0 comments on commit 18411fc

Please sign in to comment.