修改仓库
This commit is contained in:
parent
947d57bdb9
commit
84998f01fb
17
build.gradle
17
build.gradle
@ -296,11 +296,13 @@ publishing {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.generateProjectCauldron << {
|
tasks.generateProjectCauldron {
|
||||||
|
doLast {
|
||||||
def file = new File('eclipse/cauldron/build.gradle')
|
def file = new File('eclipse/cauldron/build.gradle')
|
||||||
file.append('''
|
file.append('''
|
||||||
repositories {
|
repositories {
|
||||||
clear()
|
mavenLocal()
|
||||||
|
mavenCentral()
|
||||||
maven {
|
maven {
|
||||||
name 'yumc'
|
name 'yumc'
|
||||||
url 'http://repo.yumc.pw/content/groups/public/'
|
url 'http://repo.yumc.pw/content/groups/public/'
|
||||||
@ -313,10 +315,10 @@ repositories {
|
|||||||
name 'minecraft'
|
name 'minecraft'
|
||||||
url 'https://libraries.minecraft.net/'
|
url 'https://libraries.minecraft.net/'
|
||||||
}
|
}
|
||||||
mavenCentral()
|
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
''')
|
''')
|
||||||
configurations.libraries.resolvedConfiguration.resolvedArtifacts.collect { it.moduleVersion.id }.each { module ->
|
configurations.libraries.resolvedConfiguration.resolvedArtifacts.collect { it.moduleVersion.id }.each { module ->
|
||||||
if (['net.minecraft:server:', 'org.ow2.asm:asm-all'].findAll { (module as String).startsWith it }.size() > 0) {
|
if (['net.minecraft:server:', 'org.ow2.asm:asm-all'].findAll { (module as String).startsWith it }.size() > 0) {
|
||||||
return
|
return
|
||||||
@ -324,6 +326,7 @@ dependencies {
|
|||||||
file.append(" compile '${module}'\n")
|
file.append(" compile '${module}'\n")
|
||||||
}
|
}
|
||||||
file.append('}')
|
file.append('}')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task resolveAllDependencies {
|
task resolveAllDependencies {
|
||||||
|
Loading…
Reference in New Issue
Block a user