-
Notifications
You must be signed in to change notification settings - Fork 70
/
build.gradle
27 lines (21 loc) · 936 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ant.importBuild('java/build.xml') {
antTargetName -> antTargetName + '_tweenengine'
}
task mvn_install_tweenengine(dependsOn: package_tweenengine){
ext.mvn_dir = project.hasProperty('mvn_dir') ? project.getProperty('mvn_dir') : projectDir //Default setting assumes that maven is added to your path
doLast {
exec{
def api_dir = ant.properties['api.dir']
def api_name = ant.properties['api.name']
def version = ant.properties['version']
def cmdline = 'install:install-file -Dfile=' + projectDir + '/java/build/' + api_dir + '/' + api_name + '.jar -DgroupId=com.aurelienribon -DartifactId=' + api_name + ' -Dversion=' + version + ' -Dpackaging=jar'
workingDir = mvn_dir
if (System.getProperty('os.name').toLowerCase(Locale.ROOT).contains('windows')) {
commandLine 'cmd', '/c', 'mvn.cmd ' + cmdline
} else {
commandLine 'mvn ' + cmdline
}
}
}
}
defaultTasks 'mvn_install_tweenengine'