Skip to content
Permalink
Browse files

Add a way to use a locally installed plugin with the main project

  • Loading branch information...
lacasseio committed Oct 7, 2019
1 parent 30b788b commit 4be11088d131b23b406eea6c0ab228117e0f3ccd
@@ -18,7 +18,7 @@ buildScan {

allprojects {
group = "dev.gradleplugins"
version = "0.0.22-SNAPSHOT"
version = rootProject.file("version.txt").readText()

apply<GitHubSourceControlManagerPlugin>()
configure<GitHubSourceControlManagerExtension> {
@@ -1,3 +1,23 @@
pluginManagement {
if (System.getProperty("dev.gradleplugins.useLocal") != null && (System.getProperty("dev.gradleplugins.useLocal") == "true" || System.getProperty("dev.gradleplugins.useLocal") == "")) {

repositories {
mavenLocal()
gradlePluginPortal()
}

val version = file("version.txt").readText()
resolutionStrategy {
eachPlugin {
if (requested.id.namespace == "dev.gradleplugins") {
useModule("dev.gradleplugins:gradle-plugin-development:${version}")
}
}
}
}
}


rootProject.name = "toolbox"


@@ -42,3 +42,7 @@ afterEvaluate {
tasks.register("release") {
dependsOn("bintrayUpload")
}

tasks.register("install") {
dependsOn("publishToMavenLocal")
}
@@ -125,6 +125,10 @@ tasks.register("release") {
dependsOn("publishPlugins")
}

tasks.register("install") {
dependsOn("publishToMavenLocal")
}

shadedArtifact {
packagesToRelocate.set(listOf("org.objectweb.asm", "org.objectweb.asm.util"))
}
@@ -51,4 +51,8 @@ tasks.register("release") {
dependsOn("bintrayUpload")
}

tasks.register("install") {
dependsOn("publishToMavenLocal")
}

// TODO: fix all javadoc issues
@@ -0,0 +1 @@
0.0.22-SNAPSHOT

0 comments on commit 4be1108

Please sign in to comment.
You can’t perform that action at this time.