This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| publications { | |
| WAR | |
| JAVADOC { | |
| classifier = 'javadocs' | |
| } | |
| RPM | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| publications.all { ManuallyDefinedArtifact dirtyPub -> | |
| if(!(dirtyPub.name)) { | |
| throw new GradleException("Requires a valid name") | |
| } | |
| sanitizeArtifactDefinition(dirtyPub) | |
| processPublication(dirtyPub) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| beforeAfterEvaluate { | |
| println "Nah, nah, nah. I'm first" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| classpath 'org.ajoberstar:gradle-git:0.5.0' // not used in this example, but it's what brings in JGit | |
| classpath 'com.jcraft:jsch.agentproxy.jsch:0.0.5' | |
| classpath 'com.jcraft:jsch.agentproxy.usocket-jna:0.0.5' | |
| classpath 'com.jcraft:jsch.agentproxy.sshagent:0.0.5' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Establish simple Gradle practices which lets a gradle project play nice in the Netflix infrastructure. | |
| */ | |
| rootProject { | |
| def nebulaDev = rootProject.hasProperty('isNebulaDev') && rootProject.isNebulaDev.toBoolean() | |
| def nebulaVer = rootProject.hasProperty('nebulaVersion') && rootProject.nebulaVersion ? rootProject.nebulaVersion : nebulaDev?'latest.snapshot':'@nebulaVersion@' | |
| if (nebulaDev) { | |
| println "+===============================================================================" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Establish simple Gradle practices which let an OSS gradle project play nice in the Netflix infrastructure | |
| * | |
| * 1. Establish artifactory repositories as sole repositories | |
| * 2. Add in artfactory plugin | |
| */ | |
| import org.apache.ivy.plugins.resolver.FileSystemResolver; | |
| import org.apache.ivy.plugins.resolver.URLResolver; | |
| // Jenkins workspace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apply plugin: "java" | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| compile "org.spockframework:spock-core:0.7-groovy-2.0" | |
| compile "org.codehaus.groovy:groovy-all:1.8.6" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def jenkins = jenkins.model.Jenkins.instance | |
| def clt = new jenkins.ClassLoaderReflectionToolkit(); | |
| def p = jenkins.pluginManager.activePlugins.find { it.shortName == 'job-dsl' } | |
| def name = 'javaposse.jobdsl.plugin.SeedJobsPropertyDescriptor' | |
| println clt.findClass(p.classLoader, name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Nov 13, 2012 1:27:52 PM hudson.ExtensionFinder$Sezpoz scout | |
| WARNING: Failed to scout javaposse.jobdsl.plugin.SeedJobsPropertyDescriptor | |
| java.lang.InstantiationException: file:/apps/builds/test-jenkins/plugins/job-dsl/WEB-INF/classes/META-INF/annotations/hudson.Extension might need to be rebuilt: java.lang.ClassNotFoundException: javaposse.jobdsl.plugin.SeedJobsPropertyDescriptor | |
| at net.java.sezpoz.IndexItem.element(IndexItem.java:144) | |
| at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:644) | |
| at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:283) | |
| at hudson.ExtensionList.load(ExtensionList.java:278) | |
| at hudson.ExtensionList.ensureLoaded(ExtensionList.java:231) | |
| at hudson.ExtensionList.iterator(ExtensionList.java:138) | |
| at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:282) |