BiomesOPlenty/mappings/build.gradle
2020-08-20 14:04:09 +10:00

38 lines
No EOL
868 B
Groovy

apply plugin: 'java'
apply plugin: 'maven'
ext.channel = 'snapshot'
ext.dlVersion = '2'
ext.mcVersion = '1.16.2'
group = 'de.oceanlabs.mcp'
version = dlVersion + '-' + mcVersion
archivesBaseName = 'mcp_' + ext.channel
def downloadCSV(name) {
mkdir 'mcp'
def out = new File("$projectDir/mcp/" + name)
new URL('http://export.mcpbot.bspk.rs/' + name).withInputStream{ i -> out.withOutputStream{ it << i }}
}
task downloadCSVs {
// Temporarily disabled
// downloadCSV('fields.csv')
// downloadCSV('methods.csv')
// downloadCSV('params.csv')
}
jar {
extension = 'zip'
from 'custom/fields.csv'
from 'custom/methods.csv'
from 'mcp/params.csv'
}
install {
repositories.mavenInstaller {
pom.groupId = project.group;
pom.version = project.version
pom.artifactId = 'mcp_' + project.channel
}
}