Skip to content

Commit baad01e

Browse files
committed
Test release description #try 17
1 parent 4a8f394 commit baad01e

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

build.gradle

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
plugins {
22
id 'java'
3+
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
34
}
45

56
compileJava.options.encoding = "UTF-8"
67
compileTestJava.options.encoding = "UTF-8"
78

89
allprojects {
9-
version = '1.0.3'
10+
version = '1.0.4'
1011
group = 'cz.foresttech'
1112

1213
repositories {
@@ -31,21 +32,26 @@ subprojects {
3132
useJUnitPlatform()
3233
}
3334

34-
build {
35-
dependsOn jar
36-
}
37-
3835
if (!(project.name in ['shared'])) {
3936
apply plugin: 'maven-publish'
37+
apply plugin: 'com.github.johnrengelman.shadow'
4038

4139
dependencies {
4240
implementation project(':shared')
4341
}
4442

45-
jar {
46-
archiveBaseName.set(rootProject.name + '-' + project.name)
47-
archiveVersion.set(version)
48-
destinationDirectory.set(file("$rootDir/build/libs"))
43+
build {
44+
dependsOn shadowJar
45+
}
46+
47+
shadowJar {
48+
dependsOn(jar)
49+
50+
archiveFileName = "${rootProject.name}-${project.name}-${project.version}.jar"
51+
archiveClassifier.set("")
52+
destinationDirectory = file("$rootDir/build/libs")
53+
54+
configurations = [project.configurations.runtimeClasspath]
4955
}
5056

5157
publishing {

0 commit comments

Comments
 (0)