Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: GradleUp/shadow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9.0.0-beta10
Choose a base ref
...
head repository: GradleUp/shadow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9.0.0-beta11
Choose a head ref

Commits on Mar 5, 2025

  1. Copy the full SHA
    6fff303 View commit details
  2. Copy the full SHA
    daf664f View commit details
  3. Polish ShadowSpec (#1307)

    * Fix overloads of ShadowJar.transform
    
    * Overload relocate
    
    * Overload append
    
    * Update changelog
    
    * Remove throwing
    
    * Rearrange
    
    * Remove ShadowSpec from return values
    
    * Move KClass overloads into ShadowJar to make them reified
    
    * Rearrange
    Goooler authored Mar 5, 2025
    Copy the full SHA
    c8b6991 View commit details
  4. Remove redundant types from function returns (#1308)

    We don't call them as "builders".
    
    Follow up c8b6991.
    Goooler authored Mar 5, 2025
    Copy the full SHA
    379c645 View commit details
  5. Copy the full SHA
    92486cb View commit details

Commits on Mar 6, 2025

  1. Simplify code snippets executor (#1310)

    * Override the code
    
    * Comments
    
    * Tweak the regex
    
    * Cleanups
    
    * Tweak CodeSnippetExtractor
    
    * Optimize matching logic
    Goooler authored Mar 6, 2025
    Copy the full SHA
    d68d4b5 View commit details
  2. Fix sub unordered lists (#1311)

    They were not honored by pymdownx.
    Goooler authored Mar 6, 2025
    Copy the full SHA
    eeb2a13 View commit details
  3. Update dependency com.vanniktech:gradle-maven-publish-plugin to v0.31…

    ….0 (#1312)
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 6, 2025
    Copy the full SHA
    22f6e98 View commit details
  4. Copy the full SHA
    dca3932 View commit details
  5. Add Kotlin DSL examples in docs (#1306)

    * Update docs/application-plugin/README.md
    
    * Update snippet parser and add Kotlin DSL runner
    
    * Update docs/configuration/dependencies/README.md
    
    * Update docs/configuration/filtering/README.md
    
    * Update docs/configuration/merging/README.md
    
    * Update docs/configuration/minimizing/README.md
    
    * Update docs/configuration/relocation/README.md
    
    * Update docs/configuration/reproducible-builds/README.md
    
    * Update docs/configuration/README.md
    
    * Update docs/custom-tasks/README.md
    
    * Update docs/getting-started/README.md
    
    * Update docs/kmp-plugin/README.md
    
    * Update docs/multi-project/README.md
    
    * Update docs/plugins/README.md
    
    * Update docs/publishing/README.md
    
    * Trim spaces
    
    * Fix tabbed details
    
    * No need to apply java plugin for application plugin
    
    * Cleanups
    Goooler authored Mar 6, 2025
    Copy the full SHA
    6fab5ad View commit details

Commits on Mar 7, 2025

  1. Copy the full SHA
    11af32b View commit details
  2. Unify plugin names

    All "Gradle Shadow" things should be renamed to "Shadow" or "Shadow Gradle Plugin".
    Goooler committed Mar 7, 2025
    Copy the full SHA
    a37bf0e View commit details
  3. Update NOTICE file and minor adjustments (#1316)

    * Update NOTICE
    
    * Update .gitignore
    
    * Delete site folder in clean task
    
    * Should be Shadow contributors
    
    * Cleanups
    Goooler authored Mar 7, 2025
    Copy the full SHA
    4bc6801 View commit details
  4. Fix typos in docs (#1317)

    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
    3 people authored Mar 7, 2025
    Copy the full SHA
    8a8620a View commit details
  5. Copy the full SHA
    1b57fc8 View commit details
  6. Copy the full SHA
    2cdc112 View commit details
  7. Copy the full SHA
    feb5558 View commit details
  8. Update compatibility matrix (#1319)

    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    Goooler and Copilot authored Mar 7, 2025
    Copy the full SHA
    b9d4a93 View commit details
  9. Fix relocation exclusion for file patterns like kotlin/kotlin.kotlin_…

    …builtins (#1313)
    
    * Test `preserveKotlinBuiltins`
    
    * It passes for `include`
    
    * Revert "It passes for `include`"
    
    This reverts commit 7986ffe.
    
    * Flag withDebug
    
    * Compat file pattern like `kotlin/kotlin.kotlin_builtins`
    
    * Revert "Flag withDebug"
    
    This reverts commit e943280.
    
    * Note issues
    
    * Update changelog
    
    * Add a unit test case
    
    * Use to `FilenameUtils` avoid `InvalidPathException` on Windows
    
    * Rename classPattern to filePattern
    
    * Check the file without extension
    Goooler authored Mar 7, 2025
    Copy the full SHA
    6f1f666 View commit details
  10. Tidy up RelocateClassContext (#1320)

    * Use relocateClass extensions
    
    * Merge context classes
    
    * Publish extensions
    Goooler authored Mar 7, 2025
    Copy the full SHA
    ac75467 View commit details
  11. Copy the full SHA
    706ff36 View commit details
  12. Rearrange task outcome and caching tests (#1323)

    * A new FilteringCachingTest
    
    * Tweak contains checks
    
    * Use assertCompositeExecutions
    
    * Remove SUCCESS check for canRegisterCustomShadowJarTask
    
    * Remove FAILED check for failBuildIfProcessingBadJar
    
    * Remove FAILED check for honorDuplicatesStrategyWithThrowing
    
    * Remove configurationCachingOfConfigurationsIsUpToDate as no inputs changed
    
    * Fix style
    
    * Reduce all assertions
    Goooler authored Mar 7, 2025
    Copy the full SHA
    5e211a9 View commit details

Commits on Mar 10, 2025

  1. Add a test for relocating all packages but certain one (#1325)

    * Test `relocateAllPackagesButSomeone`
    
    * Use ParameterizedTest
    
    * Cleanups
    
    * Rename
    Goooler authored Mar 10, 2025
    Copy the full SHA
    e067276 View commit details
  2. Copy the full SHA
    a71acf4 View commit details

Commits on Mar 11, 2025

  1. Revert "Double maxParallelForks (#1326)"

    This reverts commit a71acf4.
    Goooler committed Mar 11, 2025
    Copy the full SHA
    85f58bc View commit details
  2. Support using type-safe dependency accessors in `ShadowJar.dependenci…

    …es` (#1322)
    
    * Update dependency resolution for types
    
    * Update filterProjectDependencies
    
    * Update excludeDependency
    
    * Try to wrap accessors with `dependency`
    
    * Remove the usage of DependencyValueSource
    
    * Accept any for project
    
    * Update changelog
    
    * Note "Using type-safe dependency accessors"
    Goooler authored Mar 11, 2025
    Copy the full SHA
    2c0d047 View commit details
  3. Copy the full SHA
    f1ab294 View commit details
  4. Copy the full SHA
    0ceb3b3 View commit details
  5. Fix documentTest dir (#1331)

    Goooler authored Mar 11, 2025
    Copy the full SHA
    5037c63 View commit details
  6. Copy the full SHA
    8aa41ea View commit details
  7. Merge dependency and project overloads in DependencyFilter (#1328)

    They are merged to accept `Any`.
    Goooler authored Mar 11, 2025
    Copy the full SHA
    ce7c148 View commit details

Commits on Mar 12, 2025

  1. Divide blocks

    Goooler committed Mar 12, 2025
    Copy the full SHA
    1a123ee View commit details
  2. Copy the full SHA
    d48c3fa View commit details
  3. Copy the full SHA
    6457e1b View commit details
  4. Set Main-Class attr for KMP 2.1.0 or above (#1337)

    * Set mainClass from kotlin.jvm().mainRun
    
    * Update docs
    
    * Fix mainClass and version checker
    
    * Wrap mainClass in provider block for CC
    
    * Update changelog
    
    * Add null check and test `canSetMainClassAttribute`
    
    ---------
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    Goooler and Copilot authored Mar 12, 2025
    Copy the full SHA
    b5bcde9 View commit details
  5. Show how to integrate with Groovy and Scala plugins (#1338)

    * Declare JvmName for writeClass for Kotlin
    
    * Replace isJava
    
    * Fix file suffixes
    
    * Add GroovyPluginTest
    
    * Add ScalaPluginTest
    
    * Add docs
    Goooler authored Mar 12, 2025
    Copy the full SHA
    a3e46ba View commit details
  6. Document Kotlin JVM plugin (#1339)

    * Rename files
    
    * Mention things about Kotlin JVM plugin
    
    * Fix kt writing
    
    * Note stdlib things
    
    * Fix typo
    
    * Remove duplicates
    
    ---------
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    Goooler and Copilot authored Mar 12, 2025
    Copy the full SHA
    a6aff56 View commit details
  7. Reorganize doc navigations (#1340)

    * Remove "Shadowing Gradle Plugins"
    
    * Update "Default Java/Kotlin/Groovy Tasks"
    
    * Update Gradle Plugins nav
    
    * Update docs/getting-started/README.md
    
    Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
    
    * Merge introductions
    
    * Move introduction/README.md out
    
    * Compat image for GMF
    
    * Note "I"
    
    * Add myself into "Maintainers"
    
    ---------
    
    Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
    Goooler and gemini-code-assist[bot] authored Mar 12, 2025
    Copy the full SHA
    dbbceb9 View commit details
  8. Document relocate only trick (#1341)

    * Document relocating project resources only
    
    * Test `relocateProjectResourcesOnly`
    Goooler authored Mar 12, 2025
    Copy the full SHA
    84acecd View commit details

Commits on Mar 13, 2025

  1. Improve entry checks (#1342)

    * Add `containsFileEntriesOnly`
    
    * Optimize `containsEntries`
    
    * Optimize `doesNotContainEntries`
    
    * Rename assertions to match the ones in AssertK
    
    * Replace `containsNone` checks
    
    * Tweak autoRelocation
    
    * Cleanups
    
    * Revert changes for `preserveLastModifiedCorrectly`
    Goooler authored Mar 13, 2025
    Copy the full SHA
    6faea4c View commit details
  2. Document handing DuplicatesStrategy (#1343)

    Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    3 people authored Mar 13, 2025
    Copy the full SHA
    2760e69 View commit details
  3. Copy the full SHA
    8a8b0d0 View commit details
  4. Copy the full SHA
    35c1512 View commit details

Commits on Mar 14, 2025

  1. Copy the full SHA
    36b8cfb View commit details
  2. Update .gitattributes

    Goooler authored Mar 14, 2025
    Copy the full SHA
    e47a492 View commit details
  3. Optimize SVG files by SVGO

    Goooler committed Mar 14, 2025
    Copy the full SHA
    1adbb42 View commit details
  4. Update kotlin monorepo to v2.1.20-RC3 (#1347)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 14, 2025
    Copy the full SHA
    a943377 View commit details
  5. Update dependency org.junit:junit-bom to v5.12.1 (#1346)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 14, 2025
    Copy the full SHA
    d872d45 View commit details

Commits on Mar 15, 2025

  1. Copy the full SHA
    8464ed0 View commit details
  2. Deploy sites by official actions (#1350)

    * Move dokka step into .github/actions/deploy-site/action.yml
    
    * Use `actions/upload-pages-artifact` and `actions/deploy-pages`
    
    Refs https://github.com/squidfunk/mkdocs-material/blob/0e75aef9ea9028dc5a2dea34fb5da8afb14911ae/.github/workflows/documentation.yml#L92-L112
    Goooler authored Mar 15, 2025
    Copy the full SHA
    0c15f49 View commit details
Showing with 3,264 additions and 15,850 deletions.
  1. +1 −1 .gemini/config.yaml
  2. +3 −2 .gitattributes
  3. +3 −0 .github/CONTRIBUTING.md
  4. +22 −0 .github/actions/deploy-site/action.yml
  5. +1 −1 .github/workflows/ci.yml
  6. +18 −0 .github/workflows/deploy.yml
  7. +7 −8 .github/workflows/release.yml
  8. +18 −15 .gitignore
  9. +1 −3,835 .idea/icon.svg
  10. +0 −5 NOTICE
  11. +10 −11 README.md
  12. +62 −65 api/shadow.api
  13. +10 −6 build.gradle.kts
  14. +53 −10 docs/README.md
  15. +5 −4 docs/about/README.md
  16. +111 −54 docs/application-plugin/README.md
  17. +28 −5 docs/changes/README.md
  18. +104 −46 docs/configuration/README.md
  19. +289 −101 docs/configuration/dependencies/README.md
  20. +34 −14 docs/configuration/filtering/README.md
  21. +363 −174 docs/configuration/merging/README.md
  22. +56 −24 docs/configuration/minimizing/README.md
  23. +107 −35 docs/configuration/relocation/README.md
  24. +19 −8 docs/configuration/reproducible-builds/README.md
  25. +48 −23 docs/custom-tasks/README.md
  26. +118 −64 docs/getting-started/README.md
  27. +45 −20 docs/{plugins → gradle-plugins}/README.md
  28. +91 −0 docs/groovy-and-scala-plugins/README.md
  29. +1 −110 docs/images/logo+type.orig.svg
  30. +1 −6,099 docs/images/logo+type.svg
  31. +1 −64 docs/images/logo.orig.svg
  32. +1 −3,835 docs/images/logo.svg
  33. +0 −43 docs/introduction/README.md
  34. +0 −37 docs/kmp-plugin/README.md
  35. +124 −0 docs/kotlin-plugins/README.md
  36. +15 −6 docs/multi-project/README.md
  37. +180 −91 docs/publishing/README.md
  38. +2 −2 gradle.properties
  39. +3 −3 gradle/libs.versions.toml
  40. +1 −1 lint-baseline.xml
  41. +5 −5 mkdocs.yml
  42. +36 −0 src/documentTest/kotlin/com/github/jengelman/gradle/plugins/shadow/DocCodeSnippetTest.kt
  43. +61 −0 src/documentTest/kotlin/com/github/jengelman/gradle/plugins/shadow/snippet/CodeSnippetExtractor.kt
  44. +9 −0 src/documentTest/kotlin/com/github/jengelman/gradle/plugins/shadow/snippet/DslLang.kt
  45. +19 −0 src/documentTest/kotlin/com/github/jengelman/gradle/plugins/shadow/snippet/GroovyBuildExecutable.kt
  46. +19 −0 src/documentTest/kotlin/com/github/jengelman/gradle/plugins/shadow/snippet/KotlinBuildExecutable.kt
  47. +110 −0 src/documentTest/kotlin/com/github/jengelman/gradle/plugins/shadow/snippet/SnippetExecutable.kt
  48. +18 −11 src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/ApplicationPluginTest.kt
  49. +66 −42 src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/BasePluginTest.kt
  50. +42 −86 src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/FilteringTest.kt
  51. +44 −0 src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/GroovyPluginTest.kt
  52. +57 −136 src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/JavaPluginTest.kt
  53. +0 −54 src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/KmpPluginTest.kt
  54. +120 −0 src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/KotlinPluginsTest.kt
  55. +14 −15 src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/MinimizeTest.kt
  56. +17 −14 src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/PublishingTest.kt
  57. +144 −28 src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/RelocationTest.kt
  58. +44 −0 src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/ScalaPluginTest.kt
  59. +197 −0 src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/caching/FilteringCachingTest.kt
  60. +5 −5 ...nctionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/caching/MinimizationCachingTest.kt
  61. +8 −8 ...functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/caching/RelocationCachingTest.kt
  62. +10 −121 src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/caching/ShadowJarCachingTest.kt
  63. +5 −5 ...unctionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/caching/TransformerCachingTest.kt
  64. +1 −6 ...Test/kotlin/com/github/jengelman/gradle/plugins/shadow/transformers/ServiceFileTransformerTest.kt
  65. +3 −3 ...functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/transformers/TransformersTest.kt
  66. +1 −1 ...unctionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/util/AppendableMavenRepository.kt
  67. +17 −13 src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/util/JarPath.kt
  68. +13 −0 src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/util/JvmLang.kt
  69. +2 −2 src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/util/RunProcess.kt
  70. +0 −35 src/integrationTest/kotlin/com/github/jengelman/gradle/plugins/shadow/DocCodeSnippetTest.kt
  71. +0 −22 ...grationTest/kotlin/com/github/jengelman/gradle/plugins/shadow/executable/CodeSnippetExecutable.kt
  72. +0 −92 ...egrationTest/kotlin/com/github/jengelman/gradle/plugins/shadow/executable/CodeSnippetExtractor.kt
  73. +0 −71 ...integrationTest/kotlin/com/github/jengelman/gradle/plugins/shadow/executor/GroovyBuildExecutor.kt
  74. +0 −9 src/integrationTest/kotlin/com/github/jengelman/gradle/plugins/shadow/executor/NoopExecutor.kt
  75. +0 −10 src/integrationTest/kotlin/com/github/jengelman/gradle/plugins/shadow/executor/SnippetExecutor.kt
  76. +0 −27 src/integrationTest/kotlin/com/github/jengelman/gradle/plugins/shadow/fixture/GroovyDslFixture.kt
  77. +0 −5 src/integrationTest/kotlin/com/github/jengelman/gradle/plugins/shadow/fixture/SnippetFixture.kt
  78. +18 −14 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowApplicationPlugin.kt
  79. +25 −1 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowKmpPlugin.kt
  80. +26 −16 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/internal/AbstractDependencyFilter.kt
  81. +1 −7 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/internal/DefaultInheritManifest.kt
  82. +2 −0 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/internal/RelocatorRemapper.kt
  83. +0 −11 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/internal/Utils.kt
  84. +0 −6 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/relocation/RelocateClassContext.kt
  85. +0 −6 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/relocation/RelocatePathContext.kt
  86. +19 −0 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/relocation/RelocationContext.kt
  87. +1 −1 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/relocation/Relocator.kt
  88. +14 −6 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/relocation/SimpleRelocator.kt
  89. +3 −14 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/DependencyFilter.kt
  90. +5 −2 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/InheritManifest.kt
  91. +2 −0 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowCopyAction.kt
  92. +46 −56 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowJar.kt
  93. +36 −44 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/tasks/ShadowSpec.kt
  94. +2 −3 ...otlin/com/github/jengelman/gradle/plugins/shadow/transformers/ComponentsXmlResourceTransformer.kt
  95. +2 −3 ...tlin/com/github/jengelman/gradle/plugins/shadow/transformers/Log4j2PluginsCacheFileTransformer.kt
  96. +1 −1 ...ain/kotlin/com/github/jengelman/gradle/plugins/shadow/transformers/ManifestAppenderTransformer.kt
  97. +1 −1 ...ain/kotlin/com/github/jengelman/gradle/plugins/shadow/transformers/ManifestResourceTransformer.kt
  98. +1 −1 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/transformers/ResourceTransformer.kt
  99. +3 −5 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/transformers/ServiceFileTransformer.kt
  100. +1 −1 src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/transformers/TransformerContext.kt
  101. +11 −2 src/test/kotlin/com/github/jengelman/gradle/plugins/shadow/relocation/SimpleRelocatorTest.kt
  102. +1 −1 ...test/kotlin/com/github/jengelman/gradle/plugins/shadow/transformers/ServiceFileTransformerTest.kt
2 changes: 1 addition & 1 deletion .gemini/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
have_fun: true
code_review:
disable: true
disable: false
comment_severity_threshold: MEDIUM
max_review_comments: -1
pull_request_opened:
5 changes: 3 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
* text=auto eol=lf

gradlew binary
gradlew.bat binary
*.bat text eol=crlf
*.jar binary
*.svg binary
3 changes: 3 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Contributing to Shadow Gradle Plugin

Thank you for considering contributing
22 changes: 22 additions & 0 deletions .github/actions/deploy-site/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Deploy Site'
description: 'Deploy site to GitHub Pages'

runs:
using: 'composite'
steps:
- uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: true
- name: Prepare API documentation
shell: bash
run: ./gradlew dokkaHtml --no-configuration-cache
- name: Build Site
shell: bash
run: |
# Don't cache it to track updates.
pip install mkdocs-material
mkdocs build
- uses: actions/upload-pages-artifact@v3
with:
path: site
- uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ jobs:
publish-snapshot:
needs: build
runs-on: ubuntu-latest
if: github.repository == 'GradleUp/shadow' && github.ref == 'refs/heads/main'
if: github.event.repository.fork == false && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
18 changes: 18 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Deploy

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
if: github.event.repository.fork == false
environment:
name: github-pages
permissions:
contents: write
id-token: write
pages: write
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/deploy-site
15 changes: 7 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -8,9 +8,13 @@ on:
jobs:
release:
runs-on: ubuntu-latest
if: github.repository == 'GradleUp/shadow'
if: github.event.repository.fork == false
environment:
name: github-pages
permissions:
contents: write
id-token: write
pages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
@@ -21,20 +25,15 @@ jobs:
with:
cache-read-only: true
# Disable CC due to https://github.com/gradle/gradle/issues/22779
- run: ./gradlew publish publishPlugins dokkaHtml --no-configuration-cache
- run: ./gradlew publish publishPlugins --no-configuration-cache
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_SECRET }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USER }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_KEY_PASSWORD }}
- name: Deploy site
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
pip install mkdocs-material
mkdocs gh-deploy --force
- uses: ./.github/actions/deploy-site
- name: Extract release notes
# TODO: replace this after https://github.com/ffurrer2/extract-release-notes/pull/355 is merged.
uses: Goooler/extract-release-notes@6e686e7a607d03716b7cff561371a82065b22c33
33 changes: 18 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
*.un~
.fleet
.gradle
.kotlin
build

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
*.iws
.idea
build
.gradle
*.orig
out
.gradletasknamecache
.gradle-test-kit
classes/

### VS Code ###
.vscode
bin

### Mac OS ###
.DS_Store
jd-gui.cfg
bin/
.vscode/
.kotlin
# Generated by Dokka, it's depended on by MkDocs.
docs/api/

### MkDocs ###
docs/api
site
Loading