2019-12-24 10:08:51 +00:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'maven'
|
|
|
|
|
|
|
|
ext.channel = 'snapshot'
|
2020-07-03 15:20:20 +00:00
|
|
|
ext.dlVersion = '2'
|
2020-06-26 02:46:10 +00:00
|
|
|
ext.mcVersion = '1.16.1'
|
2019-12-24 10:08:51 +00:00
|
|
|
|
|
|
|
group = 'de.oceanlabs.mcp'
|
|
|
|
version = dlVersion + '-' + mcVersion
|
|
|
|
archivesBaseName = 'mcp_' + ext.channel
|
|
|
|
|
|
|
|
def downloadCSV(name) {
|
|
|
|
mkdir 'mcp'
|
2019-12-24 11:25:03 +00:00
|
|
|
def out = new File("$projectDir/mcp/" + name)
|
2019-12-24 10:08:51 +00:00
|
|
|
new URL('http://export.mcpbot.bspk.rs/' + name).withInputStream{ i -> out.withOutputStream{ it << i }}
|
|
|
|
}
|
|
|
|
|
|
|
|
task downloadCSVs {
|
2020-07-03 15:20:20 +00:00
|
|
|
// Temporarily disabled
|
|
|
|
// downloadCSV('fields.csv')
|
|
|
|
// downloadCSV('methods.csv')
|
|
|
|
// downloadCSV('params.csv')
|
2019-12-24 10:08:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
extension = 'zip'
|
2019-12-31 07:27:53 +00:00
|
|
|
from 'custom/fields.csv'
|
|
|
|
from 'custom/methods.csv'
|
|
|
|
from 'mcp/params.csv'
|
2019-12-24 10:08:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
install {
|
|
|
|
repositories.mavenInstaller {
|
|
|
|
pom.groupId = project.group;
|
|
|
|
pom.version = project.version
|
|
|
|
pom.artifactId = 'mcp_' + project.channel
|
|
|
|
}
|
|
|
|
}
|