migrated to gitea
Some checks failed
CI / build (push) Failing after 2m27s

This commit is contained in:
2024-04-04 06:04:13 +08:00
parent bc92b75136
commit 41885f50ba
5 changed files with 60 additions and 41 deletions

View File

@@ -1,6 +1,8 @@
subprojects { subproject ->
apply plugin: 'java-library'
apply plugin: 'maven-publish'
group = "net.woggioni.gradle"
version = getProperty('version.myGradlePlugins')
java {
@@ -27,12 +29,6 @@ subprojects { subproject ->
}
repositories {
maven {
url = woggioniMavenRepositoryUrl
content {
includeGroup 'net.woggioni'
}
}
mavenCentral()
}
@@ -45,9 +41,30 @@ subprojects { subproject ->
add("testImplementation", gradleTestKit())
}
tasks.named("test", Test) {
tasks.withType(Test) {
useJUnitPlatform()
}
publishing {
repositories {
maven {
url = 'https://mvn.woggioni.net/'
}
maven {
name = "Gitea"
url = uri("https://gitea.woggioni.net/api/packages/woggioni/maven")
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token ${System.getenv()["PUBLISHER_TOKEN"]}"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}
}
childProjects.forEach { name, child ->
@@ -59,7 +76,17 @@ childProjects.forEach { name, child ->
publishing {
repositories {
maven {
url = woggioniMavenRepositoryUrl
name = "Gitea"
url = uri("https://gitea.woggioni.net/api/packages/woggioni/maven")
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token ${System.getenv()["PUBLISHER_TOKEN"]}"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}