Hey,
would it be possible to add maven-publish to the build.gradle file?
This would allow one to use jitpack to include this extension within a build.gradle file to use it in combination with the embedded variant of HiveMQ.
Something like this:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
dependencies {
implementation("com.github.hivemq:hivemq-sparkplug-aware-extension:4.30.0")
}
public class Main {
public static void main(String[] args) {
final EmbeddedExtension embeddedExtension = EmbeddedExtension.builder()
.withId("embedded-ext-1")
.withName("Embedded Extension")
.withVersion("1.0.0")
.withPriority(0)
.withStartPriority(1000)
.withAuthor("Me")
.withExtensionMain(new SparkplugAwareMain())
.build();
final EmbeddedHiveMQBuilder builder = EmbeddedHiveMQ.builder()
.withEmbeddedExtension(embeddedExtension);
try (final EmbeddedHiveMQ hiveMQ = builder.build()) {
hiveMQ.start().join();
//do something with hivemq
} catch (final Exception ex) {
ex.printStackTrace();
}
}
}
It would effectively make it possible for use to not hold and manage the jar manually but include it via version management and profit from updates via Renovate bot.
Or is there already an existing way of doing so?
When looking at the last log of jitpack, it fails to build because of the missing plugin: https://jitpack.io/com/github/hivemq/hivemq-sparkplug-aware-extension/4.30.0/build.log
I would also be willing to provide a PR.
Hey,
would it be possible to add
maven-publishto thebuild.gradlefile?This would allow one to use
jitpackto include this extension within abuild.gradlefile to use it in combination with the embedded variant of HiveMQ.Something like this:
dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { mavenCentral() maven { url = uri("https://jitpack.io") } } }dependencies { implementation("com.github.hivemq:hivemq-sparkplug-aware-extension:4.30.0") }It would effectively make it possible for use to not hold and manage the jar manually but include it via version management and profit from updates via Renovate bot.
Or is there already an existing way of doing so?
When looking at the last log of jitpack, it fails to build because of the missing plugin: https://jitpack.io/com/github/hivemq/hivemq-sparkplug-aware-extension/4.30.0/build.log
I would also be willing to provide a PR.