diff --git a/build.gradle b/build.gradle index 83ca068..e6f9cd2 100644 --- a/build.gradle +++ b/build.gradle @@ -12,13 +12,37 @@ apply plugin: 'application' apply plugin: 'com.github.johnrengelman.shadow' group 'nl.martijndwars' -version '5.1.2' +version '5.2.0.B1' repositories { + mavenLocal() mavenCentral() } +publishing { + publications { + mavenJava(MavenPublication) { + from components.java + groupId = 'nl.martijndwars' + artifactId = 'webpush-java' + version = '5.2.0.B1' + } + } + + repositories { + maven { + name = "srvbuild2v" + url = uri(findProperty("mavenRepoUrl") ?: "http://srvbuild2v.ipstest.sk:8082/artifactory/d2000") + allowInsecureProtocol = true + credentials { + username = findProperty("mavenUser") ?: System.getenv("MAVEN_USER") + password = findProperty("mavenPassword") ?: System.getenv("MAVEN_PASSWORD") + } + } + } +} + dependencies { // For CLI implementation group: 'com.beust', name: 'jcommander', version: '1.81'