Handling Maven GitLab dependencies made easy. Define multiple tokens and selectively apply them to repositories, remove the need for repeating Credential handling blocks for different environments.
Eclipse Public License 2.0
13
stars
1
forks
source link
Support configuring repositories in allprojects and subprojects blocks #19
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..
@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
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: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 thesubprojects
block I getExtension of type 'GitlabRepositoriesExtension' does not exist. Currently registered extension types: [ExtraPropertiesExtension]
. If I also apply the plugins in the subprojects block, I getCannot add extension with name 'gitLab', as there is an extension already registered with that name.
.