2013-04-24 23:22:10 +02:00
|
|
|
apply plugin: 'maven'
|
|
|
|
apply plugin: 'java'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
url "http://s3.amazonaws.com/Minecraft.Download/libraries"
|
|
|
|
}
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'net.minecraft'
|
|
|
|
archivesBaseName = 'launchwrapper'
|
2013-08-29 13:57:16 +02:00
|
|
|
version = '1.7'
|
2013-04-24 23:22:10 +02:00
|
|
|
|
|
|
|
dependencies {
|
2013-06-08 21:46:50 +02:00
|
|
|
compile 'net.sf.jopt-simple:jopt-simple:4.5'
|
2013-04-24 23:22:10 +02:00
|
|
|
compile 'org.ow2.asm:asm-debug-all:4.1'
|
|
|
|
compile 'org.lwjgl.lwjgl:lwjgl:2.8.5'
|
|
|
|
}
|
|
|
|
|
2013-09-25 21:13:43 +02:00
|
|
|
task sourcesJar(type: Jar) {
|
|
|
|
classifier = 'sources'
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
|
|
|
|
2013-04-24 23:22:10 +02:00
|
|
|
artifacts {
|
|
|
|
archives jar
|
2013-09-25 21:13:43 +02:00
|
|
|
archives sourcesJar
|
2013-04-24 23:22:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
def repoDir = new File(projectDir, "repo")
|
|
|
|
repoDir.mkdirs()
|
|
|
|
|
|
|
|
uploadArchives {
|
|
|
|
repositories {
|
|
|
|
mavenDeployer {
|
|
|
|
repository(url: "file://" + repoDir.absolutePath)
|
|
|
|
|
|
|
|
pom.project {
|
|
|
|
description 'Minecraft LegacyLauncher'
|
|
|
|
url 'http://github.com/Mojang/LegacyLauncher'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
doLast {
|
|
|
|
// Purge all annoying files that arent needed
|
|
|
|
repoDir.traverse(type: groovy.io.FileType.FILES, nameFilter: ~/.*\.(xml|sha1|md5)$/) {
|
|
|
|
it.delete()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-09-25 21:13:43 +02:00
|
|
|
|
|
|
|
clean << {
|
|
|
|
repoDir.deleteDir()
|
|
|
|
}
|