Compare commits
No commits in common. "dcc1d6e53e39f97a25447665ba04440d7bcdf2f1" and "b4ef7d7da3f6fa6852a8819b79fab59aecaaafe9" have entirely different histories.
dcc1d6e53e
...
b4ef7d7da3
@ -7,7 +7,7 @@ on:
|
||||
- v*
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: eclipse-temurin:21
|
||||
steps:
|
||||
- name: Checkout the code.
|
||||
uses: actions/checkout@v4
|
||||
|
@ -4,8 +4,6 @@ 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> {
|
||||
|
||||
@ -13,25 +11,6 @@ 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