update for core plugin v0.2.0
- update task ltd.hlaeja.plugin.hlaeja-common-plugin.service-container.gradle.kts - update publishing ltd.hlaeja.plugin.hlaeja-common-plugin.library-publish.gradle.kts - update publishing in build.gradle.kts - update catalog version
This commit is contained in:
@@ -1,23 +1,16 @@
|
||||
import java.lang.System.getenv
|
||||
|
||||
plugins {
|
||||
id("ltd.hlaeja.plugin.hlaeja-core-plugin")
|
||||
`maven-publish`
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
|
||||
fun retrieveConfiguration(
|
||||
property: String,
|
||||
environment: String,
|
||||
): String? = project.findProperty(property)?.toString() ?: getenv(environment)
|
||||
|
||||
maven {
|
||||
url = uri("https://maven.pkg.github.com/swordsteel/${project.name}")
|
||||
name = "GitHubPackages"
|
||||
credentials {
|
||||
username = retrieveConfiguration("repository.user", "REPOSITORY_USER")
|
||||
password = retrieveConfiguration("repository.token", "REPOSITORY_TOKEN")
|
||||
username = config.find("repository.user", "REPOSITORY_USER")
|
||||
password = config.find("repository.token", "REPOSITORY_TOKEN")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user