Compare commits
2 Commits
b4ef7d7da3
...
dcc1d6e53e
Author | SHA1 | Date | |
---|---|---|---|
![]() |
dcc1d6e53e | ||
![]() |
1d0de99e1d |
@ -7,7 +7,7 @@ on:
|
||||
- v*
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: eclipse-temurin:21
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the code.
|
||||
uses: actions/checkout@v4
|
||||
|
@ -4,6 +4,8 @@ import com.jessebrault.jbarchiva.JbArchivaPlugin
|
||||
import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
import org.gradle.api.publish.maven.plugins.MavenPublishPlugin
|
||||
import org.gradle.api.credentials.HttpHeaderCredentials
|
||||
import org.gradle.authentication.http.HttpHeaderAuthentication
|
||||
|
||||
class GroowtPublishPlugin implements Plugin<Project> {
|
||||
|
||||
@ -11,6 +13,25 @@ class GroowtPublishPlugin implements Plugin<Project> {
|
||||
void apply(Project project) {
|
||||
project.plugins.apply(MavenPublishPlugin)
|
||||
project.plugins.apply(JbArchivaPlugin)
|
||||
project.with {
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
name = "Gitea"
|
||||
url = uri("https://git.jessebrault.com/api/packages/jessebrault/maven")
|
||||
|
||||
credentials(HttpHeaderCredentials) {
|
||||
name = "Authorization"
|
||||
value = "token ${System.getenv("GITEA_ACCESS_TOKEN")}"
|
||||
}
|
||||
|
||||
authentication {
|
||||
header(HttpHeaderAuthentication)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user