File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,13 @@ shadowJar {
54
54
}
55
55
}
56
56
57
+ // Don't publish the shadowJar to Maven Central. Code from:
58
+ // https://github.com/johnrengelman/shadow/issues/586#issuecomment-708375599
59
+ // https://github.com/johnrengelman/shadow/issues/651#issuecomment-815921124
60
+ components. java. withVariantsFromConfiguration(configurations. shadowRuntimeElements) {
61
+ skip()
62
+ }
63
+
57
64
processResources {
58
65
inputs. property(" project.version" , project. version)
59
66
filesMatching(" de/tla2b/build.properties" ) {
@@ -77,8 +84,6 @@ publishing {
77
84
publications {
78
85
mavenJava(MavenPublication ) {
79
86
from components. java
80
- // Don't publish the shadowJar to Maven Central
81
- artifacts = artifacts. findAll {it. classifier != " all" }
82
87
83
88
pom {
84
89
name = ' TLA+ to B-AST'
You can’t perform that action at this time.
0 commit comments