Skip to content

Commit

Permalink
Merge pull request #11 from harveymmaunders/java-websocket-template
Browse files Browse the repository at this point in the history
Gradle dependency format
  • Loading branch information
harveymmaunders authored Jan 16, 2025
2 parents c82d3b1 + 33375c3 commit 734a657
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
32 changes: 21 additions & 11 deletions client-samples/java/websockets/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,37 @@ plugins {
group = "example.application"
version = "1.0-SNAPSHOT"

var microsoftAzureMsal4jVersion = "1.17.3";
var squareupOkhttp3Version = "4.11.0";
var slf4jVersion = "2.0.16";
var eclipseMicroprofileVersion = "6.0";
var smallRyeConfigVersion = "3.9.1";
var squareupOkhttp3MockwebserverVersion = "4.12.0";
var ioFabric8MockwebserverVersion = "0.1.8";
var junitJupiterVersion = "5.11.3";
var mockitoCoreVersion = "5.14.2";

dependencies {
// msal4j
implementation(group="com.microsoft.azure", name="msal4j", version="${property("microsoftAzureMsal4jVersion")}")
implementation(group="com.microsoft.azure", name="msal4j", version=microsoftAzureMsal4jVersion)

// okhttp/retrofit
implementation(group="com.squareup.okhttp3", name="logging-interceptor", version="${property("squareupOkhttp3Version")}")
implementation(group="com.squareup.okhttp3", name="okhttp", version="${property("squareupOkhttp3Version")}")
implementation(group="com.squareup.okhttp3", name="logging-interceptor", version=squareupOkhttp3Version)
implementation(group="com.squareup.okhttp3", name="okhttp", version=squareupOkhttp3Version)

// slf4j
implementation(group="org.slf4j", name="slf4j-api", version="${property("slf4jVersion")}")
implementation(group="org.slf4j", name="slf4j-simple", version="${property("slf4jVersion")}")
implementation(group="org.slf4j", name="slf4j-api", version=slf4jVersion)
implementation(group="org.slf4j", name="slf4j-simple", version=slf4jVersion)

// microprofile
implementation(group="org.eclipse.microprofile", name="microprofile", version="${property("eclipseMicroprofileVersion")}")
implementation(group="io.smallrye.config", name="smallrye-config", version="${property("smallRyeConfigVersion")}")
implementation(group="org.eclipse.microprofile", name="microprofile", version=eclipseMicroprofileVersion)
implementation(group="io.smallrye.config", name="smallrye-config", version=smallRyeConfigVersion)

// testing
testImplementation(group="com.squareup.okhttp3", name="mockwebserver", version="${property("squareupOkhttp3MockwebserverVersion")}")
testImplementation(group="io.fabric8", name="mockwebserver", version="${property("ioFabric8MockwebserverVersion")}")
testImplementation(group="org.junit.jupiter", name="junit-jupiter", version="${property("junitJupiterVersion")}")
testImplementation(group="org.mockito", name="mockito-core", version="${property("mockitoCoreVersion")}")
testImplementation(group="com.squareup.okhttp3", name="mockwebserver", version=squareupOkhttp3MockwebserverVersion)
testImplementation(group="io.fabric8", name="mockwebserver", version=ioFabric8MockwebserverVersion)
testImplementation(group="org.junit.jupiter", name="junit-jupiter", version=junitJupiterVersion)
testImplementation(group="org.mockito", name="mockito-core", version=mockitoCoreVersion)
}

repositories {
Expand Down
9 changes: 0 additions & 9 deletions client-samples/java/websockets/gradle.properties

This file was deleted.

0 comments on commit 734a657

Please sign in to comment.