Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support configuring repositories in allprojects and subprojects blocks #19

Open
Legion2 opened this issue Jan 23, 2022 · 1 comment
Open
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested

Comments

@Legion2
Copy link

Legion2 commented Jan 23, 2022

I want to configure gitlab repositories for all subprojects and therefore use the subprojects in my root gradle.build.kts file. I applied the plugin in the settings.gradle.kts file using the plugins block:

plugins {
    id("at.schrottner.gitlab-repositories") version "0.5.0"
}

because I want to apply my own gradle plugin, which is hosted in a gitlab repository and therefore the gradle-gitlab-repositories must already be applied before the buildscript block of the root gradle build file is evaluated.

If I use val gitLab = the<at.schrottner.gradle.GitlabRepositoriesExtension>() to access the extension in the subprojects block I get Extension of type 'GitlabRepositoriesExtension' does not exist. Currently registered extension types: [ExtraPropertiesExtension]. If I also apply the plugins in the subprojects block, I get Cannot add extension with name 'gitLab', as there is an extension already registered with that name..

@aepfli aepfli added bug Something isn't working help wanted Extra attention is needed labels Jan 24, 2022
@aepfli
Copy link
Owner

aepfli commented Jan 26, 2022

@Legion2 may i ask for some help her, can you provide me a "reduced" setup - build.gradle and settings.gradle file - I reworked the test structure, and i can best handle this with more details. thank you

@aepfli aepfli added the question Further information is requested label Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants