correct description for setting up gitea maven repository in gradle
This commit is contained in:
parent
1dd75c0de5
commit
5dbe1ed718
@ -1,32 +1,32 @@
|
|||||||
# Build Scripts > Gradle
|
# Build Scripts > Gradle
|
||||||
|
|
||||||
## Gitlab Maven Repo
|
## Gitea Maven Repo
|
||||||
|
|
||||||
```gradle
|
```gradle
|
||||||
// configure ids
|
// configure ids
|
||||||
buildscript {
|
buildscript {
|
||||||
ext {
|
ext {
|
||||||
gitlabCiApiUrl = System.getenv("CI_API_V4_URL") ?: "https://gitlab.com/api/v4"
|
giteaUrl = System.getenv("GITEA_URL") ?: "https://gitea.dhswt.de"
|
||||||
gitlabCiProjectId = System.getenv("CI_PROJECT_ID") ?: "TODO add project id for building outside CI here"
|
giteaRepoNamespace = System.getenv("CI_REPOSITORY_NAMESPACE") ?: "TODO add project id for building outside CI here"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// add script
|
// add script
|
||||||
apply from: 'https://raw.githubusercontent.com/dhswt/build-scripts/master/gradle/GitlabMavenRepo.gradle'
|
apply from: 'https://gitea.dhswt.de/actions/build-scripts/raw/branch/master/gradle/GiteaMavenRepo.gradle'
|
||||||
|
|
||||||
// configure a gitlab as a source
|
// configure a gitea namespace as repository
|
||||||
project {
|
project {
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
addGitlabGroupRepository(it, "<GROUP_NAME>", "<GROUP_ID>")
|
// addGiteaRepository(it, giteaUrl, "<namespace>")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// publish to gitlab
|
// publish to gitea
|
||||||
publishing {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
addGitlabPublishingRepository(it)
|
addGiteaPublishingRepository(it, giteaUrl, giteaRepoNamespace)
|
||||||
}
|
}
|
||||||
publications {
|
publications {
|
||||||
maven(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user