Skip to content

Commit

Permalink
use of gradle plugins 1.1.0-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
ypujante committed Nov 20, 2010
1 parent 0bb336d commit b7d0da6
Show file tree
Hide file tree
Showing 31 changed files with 679 additions and 711 deletions.
5 changes: 3 additions & 2 deletions agent/org.linkedin.glu.agent-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
*/

apply plugin: 'groovy'
apply plugin: 'org.linkedin.release'

dependencies {
groovy external.groovy
groovy spec.external.groovy

testCompile external.junit
testCompile spec.external.junit
}
20 changes: 10 additions & 10 deletions agent/org.linkedin.glu.agent-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@
*/

apply plugin: 'groovy'
apply plugin: 'org.linkedin.cmdline'


dependencies {
compile project(':agent:org.linkedin.glu.agent-rest-client')
compile external.restlet
compile spec.external.restlet

groovy external.groovy
groovy spec.external.groovy

runtime external.commonsCli
runtime external.slf4jLog4j
runtime external.log4j
runtime spec.external.commonsCli
runtime spec.external.slf4jLog4j
runtime spec.external.log4j
}

createCmdLineBuild(this)

// customizing package-create task to add the keys
project.'package-create' << {
def keysDir = new File(packageDir, 'conf/keys')
// customizing package-assemble task to add the keys
project.'package-assemble' << {
def keysDir = new File(project.convention.plugins.cmdline.assemblePackageFile, 'conf/keys')
mkdir keysDir
copy {
from('../org.linkedin.glu.agent-server/src/zk-config/keys') {
Expand Down
17 changes: 9 additions & 8 deletions agent/org.linkedin.glu.agent-impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,22 @@
*/

apply plugin: 'groovy'
apply plugin: 'org.linkedin.release'

dependencies {
compile project(':agent:org.linkedin.glu.agent-api')
compile external.linkedinUtilsGroovy
compile external.linkedinZookeeperImpl
compile external.sigar
compile external.mimeUtil
compile spec.external.linkedinUtilsGroovy
compile spec.external.linkedinZookeeperImpl
compile spec.external.sigar
compile spec.external.mimeUtil

groovy external.groovy
groovy spec.external.groovy

testCompile external.junit
testCompile spec.external.junit

runtime external.ivy
runtime spec.external.ivy

testRuntime external.ivy
testRuntime spec.external.ivy
}

ideaModule {
Expand Down
15 changes: 8 additions & 7 deletions agent/org.linkedin.glu.agent-rest-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@
*/

apply plugin: 'groovy'
apply plugin: 'org.linkedin.release'

dependencies {
compile project(':agent:org.linkedin.glu.agent-api')
compile external.linkedinUtilsGroovy
compile external.restlet
compile external.restletExtJson
compile external.restletExtHttpClient
compile external.httpClient
compile spec.external.linkedinUtilsGroovy
compile spec.external.restlet
compile spec.external.restletExtJson
compile spec.external.restletExtHttpClient
compile spec.external.httpClient

groovy external.groovy
groovy spec.external.groovy

testCompile external.junit
testCompile spec.external.junit
testCompile project(':agent:org.linkedin.glu.agent-impl')
testCompile project(':agent:org.linkedin.glu.agent-rest-resources')
}
9 changes: 5 additions & 4 deletions agent/org.linkedin.glu.agent-rest-resources/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
*/

apply plugin: 'groovy'
apply plugin: 'org.linkedin.release'

dependencies {
compile project(':agent:org.linkedin.glu.agent-api')
compile external.linkedinUtilsGroovy
compile external.restlet
compile external.restletExtJson
compile spec.external.linkedinUtilsGroovy
compile spec.external.restlet
compile spec.external.restletExtJson

groovy external.groovy
groovy spec.external.groovy
}
33 changes: 33 additions & 0 deletions agent/org.linkedin.glu.agent-server-impl/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Copyright 2010-2010 LinkedIn, Inc
*
* 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.
*/

apply plugin: 'groovy'

dependencies {
compile project(':agent:org.linkedin.glu.agent-impl')
compile project(':agent:org.linkedin.glu.agent-rest-resources')
compile spec.external.restlet
compile spec.external.restletExtSimple
compile spec.external.simpleFramework

groovy spec.external.groovy

testCompile project(':agent:org.linkedin.glu.agent-rest-client')

runtime spec.external.commonsCli
runtime spec.external.slf4jLog4j
runtime spec.external.log4j
}
25 changes: 25 additions & 0 deletions agent/org.linkedin.glu.agent-server-upgrade/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apply plugin: 'org.linkedin.release'
apply plugin: 'org.linkedin.cmdline'
apply plugin: 'java'

dependencies {
compile project(":agent:org.linkedin.glu.agent-server-impl")
}

cmdline {
includeRoot = false
replacementTokens = [
'agent.version': version,
'agent.name': 'org.linkedin.glu.agent-server'
]
}

// customizing package-assemble task to add sigar
project.'package-assemble' << {
copy {
from new File("${rootDir}/local-maven-repo/com/hyperic/sigar/${spec.versions.sigar}")
include '*.so'
include '*.dylib'
into new File(project.convention.plugins.cmdline.assemblePackageFile, 'lib')
}
}
Loading

0 comments on commit b7d0da6

Please sign in to comment.