Skip to content

Commit 0559f13

Browse files
committed
Updates to build process
1 parent b3ca387 commit 0559f13

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ the main project directory.
9797
* Build: (plugin binary will be stored in `build/libs`)
9898
* `./gradlew clean build`: Clean and build the project
9999
* `./gradlew build`: Build the project without cleaning
100+
* `./gradlew dist`: Build distribution zip
100101
* Version management:
101102
* `./gradlew printProjectVersion`: Print the current version
102103
* `./gradlew startSnapshotBranch -PnextVersion=2.0`: Start a new snapshot branch for an upcoming `2.0` version

build.gradle

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,28 @@ dependencies {
4242
compileExport(group: 'com.fortify.ssc.parser.util', name: 'fortify-ssc-parser-util', version:'1.1-SNAPSHOT', changing: true) { transitive = true }
4343
}
4444

45+
task dist(type: Zip) {
46+
dependsOn 'build'
47+
archiveFileName = "${rootProject.name}-${project.version}.zip"
48+
destinationDirectory = file("$buildDir/dist")
49+
from("${libsDir}") {
50+
include "${rootProject.name}-${project.version}.jar"
51+
}
52+
from("${projectDir}") {
53+
include "LICENSE.TXT"
54+
include "README.md"
55+
}
56+
}
57+
4558
bintray {
4659
filesSpec {
47-
from("build/libs") { // Plugin jar
48-
include "*.jar"
60+
from("${buildDir}/dist") {
61+
include "${rootProject.name}-${project.version}.zip"
4962
}
50-
from("build/dist") { // Dependency sources and licenses
63+
from("${buildDir}/thirdparty") {
5164
include "*.zip"
5265
}
5366
into '.'
5467
}
5568
}
56-
_bintrayRecordingCopy.dependsOn 'build', 'packageDependencySourcesAndLicenses'
57-
69+
_bintrayRecordingCopy.dependsOn 'build', 'dist', 'packageDependencySourcesAndLicenses'

0 commit comments

Comments
 (0)