2013-04-24 23:22:10 +02:00
|
|
|
apply plugin: 'maven'
|
|
|
|
apply plugin: 'java'
|
2013-12-16 17:01:10 +01:00
|
|
|
apply plugin: 'eclipse'
|
2013-04-24 23:22:10 +02:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven {
|
2013-12-18 15:19:37 +01:00
|
|
|
url "https://libraries.minecraft.net/"
|
2013-04-24 23:22:10 +02:00
|
|
|
}
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'net.minecraft'
|
|
|
|
archivesBaseName = 'launchwrapper'
|
2015-06-20 19:10:57 +02:00
|
|
|
version = '1.12'
|
2014-08-20 09:36:47 +02:00
|
|
|
sourceCompatibility = 1.6
|
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'
|
2014-08-15 21:48:53 +02:00
|
|
|
compile 'org.ow2.asm:asm-debug-all:5.0.3'
|
|
|
|
compile 'org.lwjgl.lwjgl:lwjgl:2.9.1'
|
2013-12-16 17:01:10 +01:00
|
|
|
compile 'org.apache.logging.log4j:log4j-core:2.0-beta9'
|
|
|
|
compile 'org.apache.logging.log4j:log4j-api:2.0-beta9'
|
2013-04-24 23:22:10 +02:00
|
|
|
}
|
|
|
|
|
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
|
2013-12-18 15:19:37 +01:00
|
|
|
repoDir.traverse(type: groovy.io.FileType.FILES, nameFilter: ~/.*\.(xml(?:\.sha1)?|md5)$/) {
|
2013-04-24 23:22:10 +02:00
|
|
|
it.delete()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-09-25 21:13:43 +02:00
|
|
|
|
|
|
|
clean << {
|
|
|
|
repoDir.deleteDir()
|
|
|
|
}
|