Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShadowJar can not be extracted #7061

Closed
kevinwee0712 opened this issue Mar 27, 2019 · 3 comments
Closed

ShadowJar can not be extracted #7061

kevinwee0712 opened this issue Mar 27, 2019 · 3 comments
Labels

Comments

@kevinwee0712
Copy link

🐛 Bug Report

org.gradle.api.UncheckedIOException: Cannot create directory META-INF/versions/9 as it already exists, but is not a directory

image

To Reproduce

Detailed steps to reproduce the behaviour:

1.Create a gradle project.
2.Depend on selenium 3.141.+
3.Trigger shadow jar gradle task.
4.Find fat jar under build/libs folder.
5.Extract that fat jar.

Expected behavior

Shadow jar should be extracted successfully.

Test script or set of commands reproducing this issue

  1. Project depends on selenium version large than 3.141.0:
    ext {
    seleniumVersion = '3.141.+'
    }

dependencies {
compile "org.seleniumhq.selenium:selenium-java:${seleniumVersion}"
compile "org.seleniumhq.selenium:selenium-support:${seleniumVersion}"
}

  1. Use com.github.jengelman.gradle.plugins:shadow:4.0.3 to create a shadow jar

buildscript {
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.3'
}
}
apply plugin: 'com.github.johnrengelman.shadow'

  1. Extract shadow jar.

This bug is introduced by this pr:

https://github.com/seleniumhq/selenium/commit/199f9388b3cf953ba5d3a79846dadd08a7dc2824?diff=unified

@barancev
Copy link
Member

Could you please provide a complete sample project instead of a narrative description?

@barancev
Copy link
Member

OK, nevermind, I've found the root cause.

@barancev
Copy link
Member

Fixed by commit 0ff52db

@lock lock bot locked and limited conversation to collaborators Aug 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants