Skip to content

Commit

Permalink
ci: remove snapshot publishing and bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrengelman committed Aug 1, 2021
1 parent 1f86896 commit c071110
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 44 deletions.
16 changes: 8 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ workflows:
filters:
branches:
ignore: gh-pages
- deploy-snapshot:
requires:
- build
context:
- release
filters:
branches:
only: master
# - deploy-snapshot:
# requires:
# - build
# context:
# - release
# filters:
# branches:
# only: master
36 changes: 0 additions & 36 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.artifactory'
apply plugin: "com.gradle.plugin-publish"
Expand Down Expand Up @@ -82,41 +81,6 @@ artifactoryPublish { task ->
}
}

bintrayUpload { task ->
doFirst {
if (isSnapshot) {
throw new GradleException('Cannot publish SNAPSHOT versions to BinTray!')
}
}
gradle.taskGraph.whenReady { taskGraph ->
if (taskGraph.hasTask(task)) {
task.user = bintrayUser
task.apiKey = bintrayKey
}
}
}

bintray {
publications = ['plugin']
publish = true
pkg {
repo = 'gradle-plugins'
name = 'gradle-shadow-plugin'
licenses = ['Apache-2.0']
desc = 'Create uber-jar containing application code and dependencies.'
labels = ['gradle', 'onejar', 'fatjar', 'uberjar', 'shade']
websiteUrl = 'https://github.com/johnrengelman/shadow'
issueTrackerUrl = 'https://github.com/johnrengelman/shadow/issues'
vcsUrl = 'https://github.com/johnrengelman/shadow.git'
version {
vcsTag = versionString
attributes = [
'gradle-plugin': 'com.github.johnrengelman.shadow:com.github.jengelman.gradle.plugins:shadow'
]
}
}
}

// Workaround for configuring the artifact that publish-plugins uses: https://github.com/JLLeitschuh/ktlint-gradle/blob/master/plugin/build.gradle.kts
// Need to move publishing configuration into afterEvaluate {}
// to override changes done by "com.gradle.plugin-publish" plugin in afterEvaluate {} block
Expand Down

0 comments on commit c071110

Please sign in to comment.