2016-08-16 22:29:10 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'groovy'
|
|
|
|
id 'maven'
|
|
|
|
|
|
|
|
id 'idea'
|
|
|
|
id 'eclipse'
|
|
|
|
|
|
|
|
id 'net.minecrell.licenser' version '0.2.1'
|
2016-08-15 10:22:14 +00:00
|
|
|
}
|
|
|
|
|
2016-08-16 22:29:10 +00:00
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
2016-08-16 22:40:57 +00:00
|
|
|
group = 'net.fabricmc'
|
2016-08-16 22:29:10 +00:00
|
|
|
archivesBaseName = project.name.toLowerCase()
|
|
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
|
2016-08-15 10:22:14 +00:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2016-08-15 18:04:08 +00:00
|
|
|
maven {
|
2016-08-16 22:29:10 +00:00
|
|
|
name = 'fabric'
|
|
|
|
url = 'http://maven.fabricmc.net/'
|
2016-08-15 18:04:08 +00:00
|
|
|
}
|
|
|
|
maven {
|
2016-08-16 22:29:10 +00:00
|
|
|
name = 'cuchaz'
|
|
|
|
url = 'http://maven.cuchazinteractive.com/'
|
2016-08-15 10:22:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
deployerJars
|
|
|
|
shade
|
|
|
|
compile.extendsFrom shade
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile gradleApi()
|
|
|
|
shade 'org.zeroturnaround:zt-zip:1.9'
|
|
|
|
compile 'org.slf4j:slf4j-api:1.7.21'
|
|
|
|
compile 'org.slf4j:slf4j-simple:1.7.21'
|
|
|
|
shade 'com.google.code.gson:gson:2.6.2'
|
|
|
|
shade 'commons-io:commons-io:1.4'
|
|
|
|
shade 'com.google.guava:guava:19.0'
|
2016-08-17 19:48:42 +00:00
|
|
|
shade 'net.fabricmc:blending-jar:0.1.1.6'
|
2016-08-16 22:29:10 +00:00
|
|
|
|
2016-08-16 18:19:05 +00:00
|
|
|
shade 'net.fabricmc:enigma:0.11.+'
|
2016-08-15 18:04:08 +00:00
|
|
|
shade 'org.javassist:javassist:3.+'
|
|
|
|
shade 'org.bitbucket.mstrobel:procyon-decompiler:0.5.28-enigma'
|
|
|
|
shade 'org.javassist:javassist:3.20.0-GA'
|
2016-08-16 22:29:10 +00:00
|
|
|
shade 'de.sciss:syntaxpane:1.1.+'
|
|
|
|
}
|
|
|
|
|
|
|
|
license {
|
|
|
|
header file('HEADER')
|
|
|
|
include '**/*.java'
|
2016-08-15 10:22:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main.compileClasspath += configurations.shade;
|
|
|
|
main.runtimeClasspath += configurations.shade;
|
|
|
|
test.compileClasspath += configurations.shade;
|
|
|
|
test.runtimeClasspath += configurations.shade;
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
configurations.shade.each { dep ->
|
|
|
|
from(project.zipTree(dep)) {
|
|
|
|
exclude 'META-INF', 'META-INF/**'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-15 18:04:08 +00:00
|
|
|
uploadArchives {
|
|
|
|
repositories {
|
|
|
|
mavenDeployer {
|
2016-08-16 22:29:10 +00:00
|
|
|
if (project.hasProperty('mavenPass')) {
|
|
|
|
repository(url: 'http://mavenupload.modmuss50.me/') {
|
|
|
|
authentication(userName: 'buildslave', password: project.getProperty('mavenPass'))
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
repository(url: 'file:///var/www/maven/')
|
2016-08-15 18:04:08 +00:00
|
|
|
}
|
2016-08-16 22:29:10 +00:00
|
|
|
|
2016-08-15 18:04:08 +00:00
|
|
|
pom {
|
|
|
|
artifactId = project.archivesBaseName
|
2016-08-16 22:29:10 +00:00
|
|
|
|
2016-08-15 18:04:08 +00:00
|
|
|
project {
|
2016-08-16 22:29:10 +00:00
|
|
|
name = project.name
|
|
|
|
description = project.description
|
|
|
|
packaging = 'jar'
|
|
|
|
url = project.url
|
|
|
|
|
2016-08-15 18:04:08 +00:00
|
|
|
scm {
|
2016-08-16 22:29:10 +00:00
|
|
|
url = 'https://github.com/FabricMC/fabric-loom'
|
|
|
|
connection = 'scm:git:git@github.com:FabricMC/fabric-loom.git'
|
|
|
|
developerConnection = 'scm:git:git@github.com:FabricMC/fabric-loom.git'
|
2016-08-15 18:04:08 +00:00
|
|
|
}
|
2016-08-16 22:29:10 +00:00
|
|
|
|
2016-08-15 18:04:08 +00:00
|
|
|
issueManagement {
|
2016-08-16 22:29:10 +00:00
|
|
|
system = 'GitHub'
|
|
|
|
url = 'https://github.com/FabricMC/fabric-loom/issues'
|
2016-08-15 18:04:08 +00:00
|
|
|
}
|
2016-08-16 22:29:10 +00:00
|
|
|
|
2016-08-15 18:04:08 +00:00
|
|
|
licenses {
|
|
|
|
license {
|
2016-08-16 22:29:10 +00:00
|
|
|
name = 'MIT License'
|
|
|
|
url = 'https://github.com/FabricMC/fabric-loom/blob/master/LICENSE'
|
|
|
|
distribution = 'repo'
|
2016-08-15 18:04:08 +00:00
|
|
|
}
|
|
|
|
}
|
2016-08-16 22:29:10 +00:00
|
|
|
|
2016-08-15 18:04:08 +00:00
|
|
|
developers {
|
|
|
|
developer {
|
2016-08-16 22:29:10 +00:00
|
|
|
id = 'modmuss50'
|
|
|
|
name = 'modmuss50'
|
2016-08-15 18:04:08 +00:00
|
|
|
roles { role 'developer' }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-08-16 22:29:10 +00:00
|
|
|
|
|
|
|
task wrapper(type: Wrapper) {
|
|
|
|
gradleVersion = '2.14.1'
|
|
|
|
}
|