Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -95,25 +95,7 @@ mavenPublishing {
}
}

publishing {
// Both plugins should be deployed as a single artifact to ensure they can be setup automatically
publications {

create<MavenPublication>("Compositor") {
from(components["java"])

groupId = namespace
artifactId = rootProject.name.lowercase()
version = property("version") as String
}
}
}

gradlePlugin {
// Since we provide two plugins together that we want deployed as a single plugin, we should disable this to avoid
// publishing either of them separately when running through deployment pipelines.
isAutomatedPublishing = false

plugins {
// This is the main plugin. Unlike others, it needs to be applied under the settings.gradle file.
// This plugin is responsible for reading the composites file if it exists, and attempting to parse
Expand All @@ -123,12 +105,5 @@ gradlePlugin {
id = "$namespace.compositor"
implementationClass = "$group.Compositor"
}
// This plugin handles generating the gradle tasks for creating/deleting or enabling/disabling the
// composites file. It should not be applied manually, and should instead be auto-loaded in via
// the settings plugin provided above.
create("Compositor-Project-Auto") {
id = "$namespace.compositor-project-auto"
implementationClass = "$group.CompositorProjectAuto"
}
}
}
2 changes: 1 addition & 1 deletion src/main/kotlin/xyz/atrius/Compositor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ class Compositor : Plugin<Settings> {
}

private fun Settings.applyProjectPlugin() = gradle.beforeProject {
it.pluginManager.apply("io.github.atriusx.compositor-project-auto")
it.rootProject.pluginManager.apply(CompositorProjectAuto::class.java)
}
}