Skip to content

Commit 46ed35f

Browse files
make the gradle build shadow in agrona
1 parent 39b3076 commit 46ed35f

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

build.gradle

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,20 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
17+
plugins {
18+
id 'java' // or 'groovy' Must be explicitly applied
19+
id 'com.github.johnrengelman.shadow' version '1.2.0'
20+
}
21+
1622
apply plugin: 'java'
1723
apply plugin: 'maven'
1824
apply plugin: 'signing'
1925
apply plugin: 'checkstyle'
2026
apply plugin: 'eclipse'
27+
apply plugin: 'com.github.johnrengelman.shadow'
2128

22-
defaultTasks 'clean', 'build', 'install'
29+
defaultTasks 'clean', 'build', 'shadowJar', 'install'
2330

2431
group = 'uk.co.real-logic'
2532
version = '1.0.4-RC2-SNAPSHOT'
@@ -66,6 +73,8 @@ sourceSets {
6673
}
6774

6875
dependencies {
76+
compile 'uk.co.real-logic:Agrona:0.1'
77+
6978
testCompile 'org.hamcrest:hamcrest-all:1.3',
7079
'junit:junit:4.11',
7180
'org.mockito:mockito-all:1.9.5',
@@ -135,6 +144,11 @@ jar {
135144
manifest.attributes('Main-Class': 'uk.co.real_logic.sbe.SbeTool')
136145
}
137146

147+
shadowJar {
148+
baseName = 'sbe-all'
149+
classifier = ''
150+
}
151+
138152
task sourcesJar(type: Jar) {
139153
classifier = 'sources'
140154
from sourceSets.main.allSource

0 commit comments

Comments
 (0)