From f5aa3a80c631ca8ab93aae8320df6cb141b6e39d Mon Sep 17 00:00:00 2001 From: Luong Nhat Truong Date: Tue, 11 Feb 2025 19:17:17 +0700 Subject: [PATCH 1/2] add Adal4j lib to support option authentication ActiveDirectoryPassword --- embulk-output-sqlserver/build.gradle | 3 +++ embulk-output-sqlserver/gradle.lockfile | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/embulk-output-sqlserver/build.gradle b/embulk-output-sqlserver/build.gradle index fe207cf1..c0e35eaa 100644 --- a/embulk-output-sqlserver/build.gradle +++ b/embulk-output-sqlserver/build.gradle @@ -1,6 +1,9 @@ dependencies { implementation(project(path: ":embulk-output-jdbc", configuration: "runtimeElements")) implementation 'com.microsoft.sqlserver:mssql-jdbc:7.2.2.jre8' + implementation ('com.microsoft.azure:adal4j:1.6.3') { + exclude group: 'org.slf4j', module: 'slf4j-api' + } implementation 'net.sourceforge.jtds:jtds:1.3.1' // embulk-output-oracle has used jnr-ffi included in JRuby, which had been embedded with Embulk till v0.10.20. diff --git a/embulk-output-sqlserver/gradle.lockfile b/embulk-output-sqlserver/gradle.lockfile index 13595e74..97b694e0 100644 --- a/embulk-output-sqlserver/gradle.lockfile +++ b/embulk-output-sqlserver/gradle.lockfile @@ -8,9 +8,21 @@ com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.6.7=compileClasspath,runt com.github.jnr:jffi:1.2.16=compileClasspath,runtimeClasspath com.github.jnr:jnr-ffi:2.1.7=compileClasspath,runtimeClasspath com.github.jnr:jnr-x86asm:1.0.2=compileClasspath,runtimeClasspath +com.github.stephenc.jcip:jcip-annotations:1.0-1=compileClasspath,runtimeClasspath +com.google.code.gson:gson:2.8.0=compileClasspath,runtimeClasspath +com.microsoft.azure:adal4j:1.6.3=compileClasspath,runtimeClasspath com.microsoft.sqlserver:mssql-jdbc:7.2.2.jre8=compileClasspath,runtimeClasspath +com.nimbusds:lang-tag:1.7=compileClasspath,runtimeClasspath +com.nimbusds:nimbus-jose-jwt:10.0.1=compileClasspath,runtimeClasspath +com.nimbusds:oauth2-oidc-sdk:5.64.4=compileClasspath,runtimeClasspath +com.sun.mail:javax.mail:1.6.1=compileClasspath,runtimeClasspath +commons-codec:commons-codec:1.11=compileClasspath,runtimeClasspath +javax.activation:activation:1.1=compileClasspath,runtimeClasspath javax.validation:validation-api:1.1.0.Final=compileClasspath,runtimeClasspath +net.minidev:accessors-smart:1.2=compileClasspath,runtimeClasspath +net.minidev:json-smart:2.3=compileClasspath,runtimeClasspath net.sourceforge.jtds:jtds:1.3.1=compileClasspath,runtimeClasspath +org.apache.commons:commons-lang3:3.5=compileClasspath,runtimeClasspath org.embulk:embulk-spi:0.10.49=compileClasspath org.embulk:embulk-util-config:0.3.4=compileClasspath,runtimeClasspath org.embulk:embulk-util-json:0.3.0=compileClasspath,runtimeClasspath From a455e101960bbd50da210f14e12128a7910924f2 Mon Sep 17 00:00:00 2001 From: Luong Nhat Truong Date: Wed, 12 Feb 2025 14:48:12 +0700 Subject: [PATCH 2/2] add comment for dependency adal4j --- embulk-output-sqlserver/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/embulk-output-sqlserver/build.gradle b/embulk-output-sqlserver/build.gradle index c0e35eaa..de83c569 100644 --- a/embulk-output-sqlserver/build.gradle +++ b/embulk-output-sqlserver/build.gradle @@ -1,6 +1,7 @@ dependencies { implementation(project(path: ":embulk-output-jdbc", configuration: "runtimeElements")) implementation 'com.microsoft.sqlserver:mssql-jdbc:7.2.2.jre8' + //Support for Azure Active Directory Authentication implementation ('com.microsoft.azure:adal4j:1.6.3') { exclude group: 'org.slf4j', module: 'slf4j-api' }