本人的Maven Repo
pom.xml
<repositories>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/NekoSummer/summer</url>
</repository>
</repositories>
设置settings.xml
<servers>
<server>
<id>github</id>
<username>GitHub Username</username>
<password>GitHub Token</password>
</server>
</servers>
Groovy DSL
repositories {
maven {
url = 'https://maven.pkg.github.com/NekoSummer/summer'
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.token") ?: System.getenv("GITHUB_TOKEN")
}
}
}
Kotlin DSL
repositories {
maven {
url = uri("https://maven.pkg.github.com/NekoSummer/summer")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.token") as String? ?: System.getenv("GITHUB_TOKEN")
}
}
}
build.mill.yaml
repositories:
- https://maven.pkg.github.com/NekoSummer/summer
设置credentials.properties
github.username=GitHub Username
github.password=GitHub Token
github.host=maven.pkg.github.com