From 1a65a004929d0fd4e12d7bc835af5c4587bed67e Mon Sep 17 00:00:00 2001 From: Prototik Date: Mon, 22 Jun 2015 17:00:20 +0700 Subject: [PATCH] Normilize repositories --- build.gradle | 63 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 40 insertions(+), 23 deletions(-) diff --git a/build.gradle b/build.gradle index 339d789..58ba660 100644 --- a/build.gradle +++ b/build.gradle @@ -4,27 +4,21 @@ import kcauldron.InstallBundle buildscript { repositories { + maven { + name 'prok' + url 'https://repo.prok.pw/' + } + maven { + name 'forge' + url 'http://files.minecraftforge.net/maven' + } mavenCentral() - mavenLocal() - maven { - name = "forge" - url = "http://files.minecraftforge.net/maven" - } - maven { - name = "sonatype" - url = "https://oss.sonatype.org/content/repositories/snapshots/" - } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' } } -repositories { - maven { url 'https://repo.prok.pw/' } - jcenter() -} - tasks.whenTaskAdded { if (it.name.startsWith('publish')) it.dependsOn 'preparePublication' } @@ -34,6 +28,23 @@ apply plugin: 'cauldron' apply plugin: 'maven-publish' 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 { version = '1.7.10' mcpVersion = '9.05' @@ -116,9 +127,8 @@ dependencies { 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-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 'net.sf.jopt-simple:jopt-simple:4.5' libraries 'org.yaml:snakeyaml:1.9' libraries 'commons-lang:commons-lang:2.6' libraries 'org.avaje:ebean:2.7.3' @@ -275,17 +285,24 @@ publishing { } } -tasks.buildPackages { - dependsOn packageUniversal, packageChangelog, packageBundle, jar -} - tasks.generateProjectCauldron << { def file = new File('eclipse/cauldron/build.gradle') file.append(''' repositories { - maven { - url 'https://prok.pw/repo' - } + 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() } dependencies { ''')