Browse Source
Previously, the Gradle plugin’s ProjectLibraries produced a new library for every file dependency, even if the dependencies where on the same file. This would lead to a repackaging failure due to multiple libraries having the same name. This commit updates ProjectLibraries to treat file dependencies on the same file as a single library, thereby resolving the name clash. Fixes gh-1646pull/2035/head
7 changed files with 67 additions and 11 deletions
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
buildscript { |
||||
repositories { |
||||
mavenLocal() |
||||
} |
||||
dependencies { |
||||
classpath "org.springframework.boot:spring-boot-gradle-plugin:${project.bootVersion}" |
||||
} |
||||
} |
||||
|
||||
subprojects { |
||||
apply plugin: 'java' |
||||
|
||||
dependencies { |
||||
compile rootProject.files {'lib/foo.jar'} |
||||
} |
||||
} |
||||
|
||||
apply plugin: 'spring-boot' |
||||
|
||||
springBoot { |
||||
mainClass = 'foo.bar.Baz' |
||||
} |
||||
|
||||
dependencies { |
||||
compile project(':one') |
||||
compile project(':two') |
||||
} |
||||
|
||||
@ -0,0 +1,3 @@
@@ -0,0 +1,3 @@
|
||||
|
||||
include 'one' |
||||
include 'two' |
||||
Loading…
Reference in new issue