Clean up plugin-conventions by symlinking jf.maven-publish
This commit is contained in:
parent
591ed75b72
commit
1dc8913606
|
@ -0,0 +1 @@
|
|||
../../../../convention/src/main/kotlin/jf.maven-publish.gradle.kts
|
|
@ -1,7 +1,7 @@
|
|||
plugins {
|
||||
`java-gradle-plugin`
|
||||
id("jf.maven-publish")
|
||||
id("org.gradle.kotlin.kotlin-dsl")
|
||||
`maven-publish`
|
||||
}
|
||||
|
||||
group = rootProject.group
|
||||
|
@ -15,22 +15,3 @@ repositories {
|
|||
url = uri("https://maven.fabricmc.net/")
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
if (project.hasProperty("maven")) {
|
||||
maven(project.property("maven") as String) {
|
||||
name = "dynamic"
|
||||
|
||||
credentials(PasswordCredentials::class) {
|
||||
username = System.getenv()["MAVEN_NAME"]
|
||||
password = System.getenv()["MAVEN_TOKEN"]
|
||||
}
|
||||
authentication {
|
||||
create<BasicAuthentication>("basic")
|
||||
}
|
||||
}
|
||||
}
|
||||
mavenLocal()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue