Skip to content

Commit

Permalink
create skeleton project for pkg "com.microsoft.durabletask-azuremanaged"
Browse files Browse the repository at this point in the history
  • Loading branch information
YunchuWang committed Jan 29, 2025
1 parent a51ba86 commit 7241e34
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 5 deletions.
79 changes: 79 additions & 0 deletions azuremanaged/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}

group 'com.microsoft'
version = '1.5.0'
archivesBaseName = 'durabletask-azuremanaged'

def jacksonVersion = '2.15.3'

dependencies {
// TODO: update the package then dependency here
// api project(':client')
implementation 'com.azure:azure-identity:1.15.0'

// Jackson dependencies if needed by the Azure package
implementation "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
implementation "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jacksonVersion}"

testImplementation(platform('org.junit:junit-bom:5.7.2'))
testImplementation('org.junit.jupiter:junit-jupiter')
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
withJavadocJar()
}

test {
useJUnitPlatform()
}

publishing {
repositories {
maven {
url "file://$project.rootDir/repo"
}
}
publications {
mavenJava(MavenPublication) {
from components.java
artifactId = archivesBaseName
pom {
name = 'Durable Task Azure Managed SDK for Java'
description = 'This package contains Azure-specific extensions for the Durable Task Framework in Java.'
url = "https://github.com/microsoft/durabletask-java/tree/main/azuremanaged"
licenses {
license {
name = "MIT License"
url = "https://opensource.org/licenses/MIT"
distribution = "repo"
}
}
developers {
developer {
id = "Microsoft"
name = "Microsoft Corporation"
}
}
scm {
connection = "scm:git:https://github.com/microsoft/durabletask-java"
developerConnection = "scm:git:[email protected]:microsoft/durabletask-java"
url = "https://github.com/microsoft/durabletask-java/tree/main/azuremanaged"
}
}
}
}
}

java {
withSourcesJar()
withJavadocJar()
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.microsoft.durabletask;
package com.microsoft.durabletask.azuremanaged;

import com.azure.core.credential.TokenCredential;
import com.azure.core.credential.AccessToken;
Expand Down Expand Up @@ -32,4 +32,4 @@ public AccessToken getToken() {

return cachedToken;
}
}
}
2 changes: 0 additions & 2 deletions client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ dependencies {
implementation "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jacksonVersion}"

implementation 'com.azure:azure-identity:1.15.0'

testImplementation(platform('org.junit:junit-bom:5.7.2'))
testImplementation('org.junit.jupiter:junit-jupiter')
}
Expand Down
3 changes: 2 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ include ":client"
include ":azurefunctions"
include ":samples"
include ":samples-azure-functions"
include 'endtoendtests'
include ":endtoendtests"
include ":azuremanaged"

0 comments on commit 7241e34

Please sign in to comment.