#!/usr/bin/env groovy /* * Copyright to the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ String version = "3.0.1" String rootDir = ".." ["net.jini:jsk-platform":"lib", "net.jini:jsk-lib":"lib", "net.jini:jsk-dl":"lib-dl", "net.jini:jsk-resources":"lib", "net.jini:groovy-config":"lib", "net.jini.lookup:serviceui":"lib", "org.apache.river:fiddler":"lib", "org.apache.river:fiddler-dl":"lib-dl", "org.apache.river:mahalo":"lib", "org.apache.river:mahalo-dl":"lib-dl", "org.apache.river:mercury":"lib", "org.apache.river:mercury-dl":"lib-dl", "org.apache.river:norm":"lib", "org.apache.river:norm-dl":"lib-dl", "org.apache.river:outrigger":"lib", "org.apache.river:outrigger-dl":"lib-dl", "org.apache.river:reggie":"lib", "org.apache.river:reggie-dl":"lib-dl", "org.apache.river:start":"lib", "org.apache.river:browser":"lib", "org.apache.river:tools":"lib"].each {artifact, subDir -> String[] parts = artifact.split(":") String gId = parts[0] String aId = parts[1] String dir = rootDir+"/"+subDir String installCommand = "mvn install:install-file "+ "-Dversion=${version} "+ "-Dpackaging=jar "+ "-DgroupId=${gId} "+ "-DartifactId=${aId} "+ "-Dfile=${dir}/${aId}.jar "+ "-DpomFile=./${aId}.pom " println installCommand Process process = installCommand.execute() process.consumeProcessOutputStream(System.out) process.consumeProcessErrorStream(System.err) process.waitFor() }