Skip to content

Commit 8582268

Browse files
publishToMavenLocal working, so maybe jitpack will work now with this new gradle version
1 parent f9d559f commit 8582268

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ plugins {
2222

2323
subprojects {
2424
apply plugin: 'java-library'
25+
apply plugin: 'maven-publish' // necessary for jitpack
2526
apply plugin: 'docker-compose'
2627

2728
sourceCompatibility = 1.8
@@ -65,6 +66,19 @@ subprojects {
6566
isRequiredBy integration
6667
waitForTcpPortsTimeout = Duration.ofMinutes(1)
6768
}
69+
70+
publishing { // necessary for jitpack
71+
publications {
72+
mavenJava(MavenPublication) {
73+
// thanks https://stackoverflow.com/a/68515859/5434860
74+
groupId = "${group}"
75+
artifactId = "${project.name}"
76+
version = "${version}"
77+
78+
from project.components.java
79+
}
80+
}
81+
}
6882
}
6983

7084
wrapper {

0 commit comments

Comments
 (0)