# HG changeset patch # User Jaroslav Tulach # Date 1435320596 -7200 # Node ID da5e694d2b3c9c5936c502fbe930df7816d4bf3e # Parent cf1503da2456b46677cbf0ed286614d660126a1b Using groupId=com.oracle.[suite.name] when deploying the artifacts. Iterating thru all distributions (except ap ones). Using name of the JAR file as artifactId. diff -r cf1503da2456 -r da5e694d2b3c mx.truffle/mx_truffle.py --- a/mx.truffle/mx_truffle.py Fri Jun 26 09:42:29 2015 +0200 +++ b/mx.truffle/mx_truffle.py Fri Jun 26 14:09:56 2015 +0200 @@ -1206,10 +1206,18 @@ def maven_install_truffle(args): """install Truffle into your local Maven repository""" - for name in ['TRUFFLE', 'TRUFFLE_TCK', 'TRUFFLE_DSL_PROCESSOR', 'TRUFFLE_SL']: + for name in mx._dists: + dist = mx._dists[name] + if dist.isProcessorDistribution: + continue mx.archive(["@" + name]) - path = mx._dists[name].path - mx.run(['mvn', 'install:install-file', '-DgroupId=com.oracle', '-DartifactId=' + name.lower(), '-Dversion=' + graal_version('SNAPSHOT'), '-Dpackaging=jar', '-Dfile=' + path]) + path = dist.path + slash = path.rfind('/') + dot = path.rfind('.') + if dot <= slash: + raise Exception('Dot should be after / in ' + path) + artifactId = path[slash + 1: dot] + mx.run(['mvn', 'install:install-file', '-DgroupId=com.oracle.' + dist.suite.name, '-DartifactId=' + artifactId, '-Dversion=' + graal_version('SNAPSHOT'), '-Dpackaging=jar', '-Dfile=' + path]) def c1visualizer(args): """run the Cl Compiler Visualizer""" diff -r cf1503da2456 -r da5e694d2b3c mx.truffle/suite.py --- a/mx.truffle/suite.py Fri Jun 26 09:42:29 2015 +0200 +++ b/mx.truffle/suite.py Fri Jun 26 14:09:56 2015 +0200 @@ -329,7 +329,7 @@ # ------------- Distributions ------------- "TRUFFLE" : { - "path" : "build/truffle.jar", + "path" : "build/truffle-api.jar", "subDir" : "truffle", "sourcesPath" : "build/truffle.src.zip", "javaCompliance" : "1.7",