I’m confused. I thought I’d been doing this for some time, but this introduces a new wrinkle.
I’ve developed a package of plugins based on the nebula rpm plugin version 3.4.0 . I’ve successfully created several buildscripts that apply my plugins, which exist only in my maven local repository.
Now, however, I require a new feature in that plugin. I forked the os.nebula plugin and added my feature, and call my version 3.4.1, deploying it to my maven local repository, as I did my package of plugins. I now want to make my plugins apply my version of nebula-rpm and not 3.4.0.
The build script for my plugin package, which depends on nebula.rpm, is now failing saying that it could not find my plugin in the gradle core plugins or the gradle central plugin repo.
I’ve tried all the following strategies and none works.
1- no buildscript element
plugins {
id 'jacoco'
id 'com.gradle.plugin-publish' version '0.9.3'
id "nebula.rpm" version "3.4.1"
id "groovy"
id "maven-publish"
}
2- Add build script with repositories
buildscript {
repositories {
mavenCentral name: "nexus", artifactUrls: ["http://corporate.maven.central/nexus/content/groups/corporate-public-group"]
mavenLocal()
}
}
plugins {
id 'jacoco'
id 'com.gradle.plugin-publish' version '0.9.3'
id "nebula.rpm" version "3.4.1"
id "groovy"
id "maven-publish"
}
3- Add build script with repositories and dependencies
buildscript {
repositories {
mavenCentral name: "nexus", artifactUrls: ["http://corporate.maven.central/nexus/content/groups/corporate-public-group"]
mavenLocal()
}
dependencies {
classpath group: 'com.netflix', name: 'nebula.rpm',
version: '3.4.1'
}
}
plugins {
id 'jacoco'
id 'com.gradle.plugin-publish' version '0.9.3'
id "nebula.rpm" version "3.4.1"
id "groovy"
id "maven-publish"
}