Skip to content

Commit

Permalink
cleanup buildscript
Browse files Browse the repository at this point in the history
  • Loading branch information
LCLPYT committed Jun 16, 2023
1 parent bdec36f commit 078f363
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
java
`java-gradle-plugin`
`maven-publish`
id("gradle-build-utils").version("1.4.0")
id("gradle-build-utils").version("1.5.3")
}

repositories {
Expand Down Expand Up @@ -50,32 +50,6 @@ tasks.getByName<Test>("test") {
useJUnitPlatform()
}

fun setupRepo(repositoryHandler: RepositoryHandler) {
repositoryHandler.maven {

}
}

publishing {
repositories {
maven {
val env = System.getenv()
if (listOf("DEPLOY_URL", "DEPLOY_USER", "DEPLOY_PASSWORD").all(env::containsKey)) {
credentials {
username = env["DEPLOY_USER"]
password = env["DEPLOY_PASSWORD"]
}
url = uri(env["DEPLOY_URL"]!!)
}
else if (listOf("mavenHost", "mavenUser", "mavenPassword").all(props::containsKey)) {
credentials {
username = props.getProperty("mavenUser")
password = props.getProperty("mavenPassword")
}
url = uri(props.getProperty("mavenHost")!!)
} else {
url = uri("file:///${project.projectDir}/repo")
}
}
}
buildUtils.setupPublishRepository(repositories, props)
}

0 comments on commit 078f363

Please sign in to comment.