Summer Repo

本人的Maven Repo

使用此仓库

如果是maven

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>

如果是Gradle

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")
        }
    }
}

如果为了娱乐选择Mill

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