0
IntelliJでGradleを使用しています。 私は瓶を作るとき、それはサブモジュール "コア"の重複したクラスを持つ瓶を作ります。 3つのクラス。 プロジェクト全体の私のbuild.gradleです。重複したクラスGradleを使用した出力ジャー
allprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
group = 'be.isach'
version = '1.2-RELEASE'
compileJava.options.encoding = 'UTF-8'
configurations {
shaded
compile.extendsFrom shaded
}
afterEvaluate{
jar {
dependsOn configurations.shaded
from configurations.shaded.collect {
it.isDirectory() ?
it :
zipTree(it)
}
}
}
}
dependencies{
subprojects.each{ p ->
shaded(p) {
transitive false
}
}
}
subprojects {
repositories {
mavenLocal()
mavenCentral()
ivy {
url 'http://www.tcpr.ca/files/'
layout 'pattern', {
artifact '[module]/[module]-[revision].[ext]'
}
}
maven {
url 'https://hub.spigotmc.org/nexus/content/groups/public/'
}
maven {
url 'https://oss.sonatype.org/content/groups/public/'
}
maven {
url 'http://nexus.theyeticave.net/content/repositories/pub_releases'
}
maven {
url 'http://repo.md-5.net/content/repositories/releases'
}
maven {
url 'http://repo.howaner.de'
}
maven {
url 'http://repo.dmulloy2.net/content/groups/public/'
}
}
}
私はGoogleで多くのことを探索しますが、これについては何も見つかりませんでした。私は何が間違っているのか分かりません。