diff --git a/build.gradle b/build.gradle index 706d133..3d751c5 100644 --- a/build.gradle +++ b/build.gradle @@ -22,6 +22,7 @@ plugins { subprojects { apply plugin: 'java-library' + apply plugin: 'maven-publish' // necessary for jitpack apply plugin: 'docker-compose' sourceCompatibility = 1.8 @@ -65,6 +66,19 @@ subprojects { isRequiredBy integration waitForTcpPortsTimeout = Duration.ofMinutes(1) } + + publishing { // necessary for jitpack + publications { + mavenJava(MavenPublication) { + // thanks https://stackoverflow.com/a/68515859/5434860 + groupId = "${group}" + artifactId = "${project.name}" + version = "${version}" + + from project.components.java + } + } + } } wrapper {