Skip to content

Commit 5819ff3

Browse files
authored
try to fix local maven publication (#979)
* Update GitHub workflow to use JDK21 * Update gradle-license-plugin * Update to Gradle 9.2.1 * Specify JVM vendor for the build toolchains * Gitignore `:morpheus-testing` test directory * Lazy fetch the runApp mainClass property * Update publishing tasks * Disable local maven publication for `:okapi-shade` * Update artifact group
1 parent e90dcb4 commit 5819ff3

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ apply from: 'build.params.gradle'
1313
apply plugin: 'base'
1414

1515
allprojects {
16-
group = 'org.opencypher'
16+
group = 'org.opencypher.morpheus'
1717
version = ver.self
1818

1919
// Gradle version-catalog-update has to be able to resolve the dependencies.

build.publishing.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ subprojects {
4747
// We do not want to have dev and full publications for okapi-shade
4848
if (project.name != "okapi-shade") {
4949
dev(MavenPublication) {
50-
from components.java
50+
artifact tasks.jar
51+
artifact tasks.sourceJar
5152

5253
afterEvaluate {
5354
pom pomConfig
@@ -58,7 +59,8 @@ subprojects {
5859
}
5960

6061
full(MavenPublication) {
61-
from components.java
62+
artifact tasks.jar
63+
artifact tasks.sourceJar
6264

6365
afterEvaluate {
6466
pom pomConfig

okapi-shade/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,8 @@ shadowJar {
6464
}
6565

6666
assemble.dependsOn shadowJar
67+
68+
// TODO: this is a way but not the right way to achieve this
69+
tasks.named('publishFullPublicationToMavenLocal').configure {
70+
enabled = false
71+
}

0 commit comments

Comments
 (0)