Skip to content

Conversation

@Goooler
Copy link
Member

@Goooler Goooler commented Aug 28, 2024

Tests #675.


and:
JarFile jar = new JarFile(output)
assert jar.entries().collect().findAll { it.name.endsWith('.class') }.size() == 1
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you can see, Gradle APIs are included in the current jar:

https://scans.gradle.com/s/w4ng474mk6moe/tests/task/:test/details/com.github.jengelman.gradle.plugins.shadow.ShadowPluginSpec/exclude%20gradleApi()%20by%20default?top-execution=1

my/plugin/MyPlugin.class, 
org/gradle/process/internal/worker/GradleWorkerMain.class, 
org/gradle/process/internal/worker/WorkerJvmMemoryInfoSerializer$1.class, 
org/gradle/process/internal/worker/WorkerJvmMemoryInfoSerializer$JvmMemoryStatusSerializer.class, 
org/gradle/process/internal/worker/WorkerJvmMemoryInfoSerializer.class, 
org/gradle/process/internal/worker/WorkerLoggingSerializer.class,
…	

@Goooler Goooler changed the base branch from main to g/exclude-gradle-api-in-shadow August 28, 2024 03:32
@Goooler Goooler merged commit d1b2334 into g/exclude-gradle-api-in-shadow Aug 28, 2024
@Goooler Goooler deleted the add-regression-test-for-pr-459 branch August 28, 2024 03:33
@Goooler
Copy link
Member Author

Goooler commented Aug 28, 2024

Fixing this in #948.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants