Skip to content

Commit ab979c2

Browse files
committed
Repo publish fix #2
1 parent eeaedf9 commit ab979c2

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

build.gradle

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ compileJava.options.encoding = "UTF-8"
77
compileTestJava.options.encoding = "UTF-8"
88

99
allprojects {
10-
version = '1.0.4'
10+
version = '1.0.0'
1111
group = 'cz.foresttech'
1212

1313
repositories {
@@ -33,17 +33,6 @@ subprojects {
3333
useJUnitPlatform()
3434
}
3535

36-
publishing {
37-
publications {
38-
maven(MavenPublication) {
39-
groupId project.group
40-
artifactId project.name
41-
version project.version
42-
from components.java
43-
}
44-
}
45-
}
46-
4736
if (!(project.name in ['shared'])) {
4837
apply plugin: 'com.github.johnrengelman.shadow'
4938

@@ -66,4 +55,20 @@ subprojects {
6655
}
6756
}
6857

58+
publishing {
59+
publications {
60+
maven(MavenPublication) {
61+
groupId project.group
62+
artifactId project.name
63+
version project.version
64+
65+
if (project.name in ['shared']) {
66+
from components.java
67+
} else {
68+
artifact tasks.shadowJar
69+
}
70+
}
71+
}
72+
}
73+
6974
}

0 commit comments

Comments
 (0)