Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit 54b6b36

Browse files
committed
Customize application distribution to include license, README and certificates.
1 parent c65ce55 commit 54b6b36

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

browserup-proxy-dist/build.gradle

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ plugins {
66
id 'application'
77
}
88

9-
archivesBaseName = 'browserup-proxy-dist'
10-
119
uploadArchives {
1210
repositories {
1311
mavenDeployer {
@@ -23,16 +21,19 @@ uploadArchives {
2321
}
2422
}
2523

26-
pom.project {
27-
name 'browserup-proxy-dist'
28-
description 'BrowserUp Proxy - Dist'
24+
addFilter('distribution') {artifact, file ->
25+
file.name.contains('.zip') || file.name.contains('.tar')
26+
}
27+
pom('distribution').artifactId = 'browserup-proxy'
28+
pom('distribution').project {
29+
name 'browserup-proxy'
30+
description 'BrowserUp Proxy'
2931
url 'https://github.com/browserup/browserup-proxy'
30-
packaging 'jar'
3132

3233
scm {
3334
connection 'scm:git:git@github.com:browserup/browserup-proxy.git'
3435
developerConnection 'scm:git:git@github.com:browserup/browserup-proxy.git'
35-
url 'https://github.com/browserup/browserup-proxy/tree/master/browserup-proxy-dist'
36+
url 'https://github.com/browserup/browserup-proxy'
3637
}
3738

3839
licenses {
@@ -75,4 +76,19 @@ dependencies {
7576
implementation 'org.javassist:javassist:3.25.0-GA'
7677
}
7778

79+
applicationName = 'browserup-proxy'
7880
mainClassName = 'com.browserup.bup.proxy.Main'
81+
82+
distributions {
83+
main {
84+
baseName = 'browserup-proxy'
85+
contents {
86+
from '../LICENSE'
87+
from '../README.md'
88+
into ('ssl') {
89+
from '../browserup-proxy-core/src/main/resources/sslSupport'
90+
}
91+
}
92+
}
93+
}
94+

0 commit comments

Comments
 (0)