Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove Bintray tasks and references #78

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ The artifacts for this plugin are signed using the [PGP key](http://pgp.mit.edu:

## Releasing

The following command can be used to release the project, upload to Maven Central and upload to Bintray:
```./gradlew -PreleaseVersion=[version] -PnextVersion=[snapshot version] -PscmUrl=https://github.com/javacc/javaccPlugin.git -PossrhUsername=[username] -PossrhPassword=[password] -PgpgPassphrase=[passphrase] -PbintrayUser=[username] -PbintrayApiKey=[apiKey] clean :release:release```
The following command can be used to release the project, upload to Maven Central:
```./gradlew -PreleaseVersion=[version] -PnextVersion=[snapshot version] -PscmUrl=https://github.com/javacc/javaccPlugin.git -PossrhUsername=[username] -PossrhPassword=[password] -PgpgPassphrase=[passphrase] clean :release:release```

## Changelog

Expand Down
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ plugins {
id 'javaccPlugin.common-conventions'

id 'com.gradle.plugin-publish' version '0.14.0' apply false
id 'com.jfrog.bintray' version '1.8.5' apply false
}

allprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ plugins {

id 'java-gradle-plugin'
id 'com.gradle.plugin-publish'
id 'com.jfrog.bintray'
id 'maven-publish'
}
61 changes: 0 additions & 61 deletions subprojects/plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -165,64 +165,3 @@ afterEvaluate {
}
}
}

bintray {
if (!project.hasProperty('bintrayUser')) {
ext.bintrayUser = ''
}

if (!project.hasProperty('bintrayApiKey')) {
ext.bintrayApiKey = ''
}

if (!project.hasProperty('ossrhUsername')) {
ext.ossrhUsername = ''
}

if (!project.hasProperty('ossrhPassword')) {
ext.ossrhPassword = ''
}

if (!project.hasProperty('releaseVersion')) {
ext.releaseVersion = ''
}

if (!project.hasProperty('gpgPassphrase')) {
ext.gpgPassphrase = ''
}

user = bintrayUser
key = bintrayApiKey

publications = ['maven']
dryRun = false
publish = true
pkg {
repo = 'maven'
name = 'javacc-gradle-plugin'
desc = 'Provides the ability to use JavaCC via Gradle. If the java plugin is also applied, JavaCompile tasks will depend upon the compileJavacc task.'
websiteUrl = 'https://github.com/javacc/javaccPlugin'
issueTrackerUrl = 'https://github.com/javacc/javaccPlugin/issues'
vcsUrl = 'https://github.com/javacc/javaccPlugin.git'
licenses = ['MIT']
labels = ['javacc', 'gradle']
publicDownloadNumbers = true

version {
name = releaseVersion
released = new Date()
vcsTag = 'javacc-gradle-plugin-' + releaseVersion
attributes = ['gradle-plugin': 'org.javacc.javacc:org.javacc.plugin:javacc-gradle-plugin']
gpg {
sign = true
passphrase = gpgPassphrase
}
mavenCentralSync {
sync = true
user = ossrhUsername
password = ossrhPassword
close = '1'
}
}
}
}
8 changes: 4 additions & 4 deletions subprojects/release/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,14 @@ tasks.addRule('Pattern: copy<VersionType>BuildFile: Overwrites build.gradle with

tagRelease.mustRunAfter copyReleaseBuildFile

project(':javacc-gradle-plugin').bintrayUpload.mustRunAfter tagRelease

writeNextVersion.mustRunAfter tagRelease

copyNextBuildFile.mustRunAfter writeNextVersion

task release(dependsOn: [project(':javacc-gradle-plugin').clean, verifyReleaseVersions, verifySnapshotDependencies, project(':javacc-gradle-plugin').build, copyReleaseBuildFile, tagRelease, project(':javacc-gradle-plugin').bintrayUpload, copyNextBuildFile]) {
description "Releases the plugin by verifying there are no snapshot dependencies, writing the next version to build.gradle and committing the build file. " +
task release(dependsOn: [project(':javacc-gradle-plugin').clean, verifyReleaseVersions, verifySnapshotDependencies,
project(':javacc-gradle-plugin').build, copyReleaseBuildFile, tagRelease, copyNextBuildFile]) {
description "Releases the plugin by verifying there are no snapshot dependencies, " +
"writing the next version to build.gradle and committing the build file. " +
"Versions must be specified by using the [${releaseVersionProperty}] and [${nextVersionProperty}] project properties."

group 'Release'
Expand Down
Loading