Skip to content

Commit

Permalink
Merge pull request #7 from gradle/cobexer/publishing
Browse files Browse the repository at this point in the history
TeamCity: set up publishing
  • Loading branch information
cobexer authored Sep 9, 2024
2 parents 3ad0c4c + 918acf7 commit a40c28a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .teamcity/src/main/kotlin/Publish.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Publish(build: Build, tests: TestTrigger) : BaseBuildType({
params {
param("env.GRADLE_INTERNAL_REPO_URL", "%gradle.internal.repository.url%")
param("ARTIFACTORY_USERNAME", "%gradle.internal.repository.build-tool.publish.username%")
password("ARTIFACTORY_PASSWORD", "gradle.internal.repository.build-tool.publish.password%", display = ParameterDisplay.HIDDEN)
password("ARTIFACTORY_PASSWORD", "%gradle.internal.repository.build-tool.publish.password%", display = ParameterDisplay.HIDDEN)
param("env.ORG_GRADLE_PROJECT_publishApiKey", "%ARTIFACTORY_PASSWORD%")
param("env.ORG_GRADLE_PROJECT_publishUserName", "%ARTIFACTORY_USERNAME%")
}
Expand Down
8 changes: 1 addition & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@ publishing {
val artifactoryUsername = providers.environmentVariable("ORG_GRADLE_PROJECT_publishUserName").orNull
val artifactoryPassword = providers.environmentVariable("ORG_GRADLE_PROJECT_publishApiKey").orNull

println("Artifactory URL: $artifactoryUrl")
println("Artifactory Username: $artifactoryUsername")
println("Artifactory Password: ${artifactoryPassword?.replace(".", "*")}")

name = "remote"
val libsType = if (snapshot) "snapshots" else "releases"
url = uri("${artifactoryUrl}/libs-${libsType}-local")
Expand All @@ -179,12 +175,11 @@ publishing {

pom {
packaging = "jar"
// TODO Update to final GitHub URL
url = "https://github.com/gradle/gradle-fileevents"
licenses {
license {
name = "Apache-2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
url = "https://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
Expand All @@ -195,7 +190,6 @@ publishing {
}
}
scm {
// TODO Update to final GitHub URLs
connection = "scm:git:git://github.com/gradle/gradle-fileevents.git"
developerConnection = "scm:git:ssh://github.com:gradle/gradle-fileevents.git"
url = "https://github.com/gradle/gradle-fileevents"
Expand Down

0 comments on commit a40c28a

Please sign in to comment.