Skip to content

Make gradle plugin available for easy/conventional gradle usage #4311

@maxandersen

Description

@maxandersen

Today we need a lot of scaffolding in users gradle setup:

plugins {
    id 'java'
}

apply plugin: 'io.quarkus'

pluginManagement {
    repositories {
        mavenCentral()
        gradlePluginPortal()
    }
    resolutionStrategy {
        eachPlugin {
            if (requested.id.id == 'io.quarkus') {
                useModule("io.quarkus:quarkus-gradle-plugin:${requested.version}")
            }
        }
    }
}

where if we published to gradle registry users would just need this:

plugins {
    id 'java'
    id 'io.quarkus'
}

for now it is assumed we must make the gradle plugin an actual gradle project to make this happen - need to verify that

Metadata

Metadata

Assignees

Labels

area/gradleGradlearea/platformIssues related to definition and interaction with Quarkus Platformkind/enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions