3
0

Normilize repositories

This commit is contained in:
Prototik 2015-06-22 17:00:20 +07:00
parent 4ebda4d899
commit 1a65a00492

View File

@ -4,27 +4,21 @@ import kcauldron.InstallBundle
buildscript { buildscript {
repositories { repositories {
maven {
name 'prok'
url 'https://repo.prok.pw/'
}
maven {
name 'forge'
url 'http://files.minecraftforge.net/maven'
}
mavenCentral() mavenCentral()
mavenLocal()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
} }
dependencies { dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
} }
} }
repositories {
maven { url 'https://repo.prok.pw/' }
jcenter()
}
tasks.whenTaskAdded { tasks.whenTaskAdded {
if (it.name.startsWith('publish')) it.dependsOn 'preparePublication' if (it.name.startsWith('publish')) it.dependsOn 'preparePublication'
} }
@ -34,6 +28,23 @@ apply plugin: 'cauldron'
apply plugin: 'maven-publish' apply plugin: 'maven-publish'
apply plugin: 'signing' apply plugin: 'signing'
repositories {
clear()
maven {
name 'prok'
url 'https://repo.prok.pw/'
}
maven {
name 'forge'
url 'http://files.minecraftforge.net/maven'
}
maven {
name 'minecraft'
url 'https://libraries.minecraft.net/'
}
mavenCentral()
}
minecraft { minecraft {
version = '1.7.10' version = '1.7.10'
mcpVersion = '9.05' mcpVersion = '9.05'
@ -116,9 +127,8 @@ dependencies {
libraries 'org.scala-lang:scala-reflect:2.11.1' libraries 'org.scala-lang:scala-reflect:2.11.1'
libraries 'org.scala-lang:scala-swing_2.11:1.0.1' libraries 'org.scala-lang:scala-swing_2.11:1.0.1'
libraries 'org.scala-lang:scala-xml_2.11:1.0.2' libraries 'org.scala-lang:scala-xml_2.11:1.0.2'
libraries 'net.sf.jopt-simple:jopt-simple:4.5' libraries 'net.sf.jopt-simple:jopt-simple:4.7'
libraries 'lzma:lzma:0.0.1' libraries 'lzma:lzma:0.0.1'
libraries 'net.sf.jopt-simple:jopt-simple:4.5'
libraries 'org.yaml:snakeyaml:1.9' libraries 'org.yaml:snakeyaml:1.9'
libraries 'commons-lang:commons-lang:2.6' libraries 'commons-lang:commons-lang:2.6'
libraries 'org.avaje:ebean:2.7.3' libraries 'org.avaje:ebean:2.7.3'
@ -275,17 +285,24 @@ publishing {
} }
} }
tasks.buildPackages {
dependsOn packageUniversal, packageChangelog, packageBundle, jar
}
tasks.generateProjectCauldron << { tasks.generateProjectCauldron << {
def file = new File('eclipse/cauldron/build.gradle') def file = new File('eclipse/cauldron/build.gradle')
file.append(''' file.append('''
repositories { repositories {
clear()
maven { maven {
url 'https://prok.pw/repo' name 'prok'
url 'https://repo.prok.pw/'
} }
maven {
name 'forge'
url 'http://files.minecraftforge.net/maven'
}
maven {
name 'minecraft'
url 'https://libraries.minecraft.net/'
}
mavenCentral()
} }
dependencies { dependencies {
''') ''')