Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions .azure-pipelines/daily-ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ extends:
parameters:
pool:
name: Azure-Pipelines-1ESPT-ExDShared
image: ubuntu-latest
os: linux
sdl:
sourceAnalysisPool:
Expand All @@ -42,17 +43,21 @@ extends:
- checkout: self
submodules: recursive

- task: JavaToolInstaller@0
displayName: Set up Java
- script: |
sed -i "/mavenCentral()/d" build.gradle
sed -i "/gradlePluginPortal()/d" settings.gradle
sed -i "/mavenCentral()/d" settings.gradle
displayName: Strip public repos for network-isolated build

- task: Gradle@4
displayName: Build and Test SDK
inputs:
versionSpec: '17'
gradleWrapperFile: 'gradlew'
workingDirectory: '$(Build.SourcesDirectory)'
tasks: 'assemble test'
options: '--no-daemon -PGraphDeveloperExperiencesPublicPassword=$(ARTIFACTS_PAT)'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.17'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'

- script: chmod +x gradlew && ./gradlew assemble
displayName: Build SDK
workingDirectory: $(Build.SourcesDirectory)

- script: ./gradlew test
displayName: Run unit tests
workingDirectory: $(Build.SourcesDirectory)
42 changes: 10 additions & 32 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ updates:
directories:
- "/"
- "/java-8"
- "/android"
schedule:
interval: weekly
time: "09:00" # 9am UTC
Expand All @@ -12,51 +13,28 @@ updates:
kiota-dependencies:
patterns:
- "*kiota*"
junit-dependencies:
patterns:
- "*junit*"
open-telemetry:
microsoft-graph:
patterns:
- "*opentelemetry*"

- package-ecosystem: gradle
directory: "/android"
schedule:
interval: weekly
time: "10:00" # 10am UTC. Scheduled after core java dependencies to prevent duplicate PRs
open-pull-requests-limit: 10
groups:
kiota-dependencies:
patterns:
- "*kiota*"
- "*microsoft-graph*"
junit-dependencies:
patterns:
- "*junit*"
open-telemetry:
patterns:
- "*opentelemetry*"
- package-ecosystem: maven
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
groups:
kiota-dependencies:
android-build-tools:
patterns:
- "*kiota*"
junit-dependencies:
patterns:
- "*junit*"
open-telemetry:
patterns:
- "*opentelemetry*"
- "*android*"
- "*gradle-enterprise*"
- "*gradle-util*"
- "*gradle-versions*"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 10
groups:
github-actions-dependencies:
all-actions:
patterns:
- "actions/*"
- "*"

16 changes: 16 additions & 0 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,19 @@ jobs:
else
exit 1
fi

dependency-submission:
runs-on: ubuntu-latest
if: github.event_name == 'push'
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: 21
distribution: 'temurin'
cache: gradle
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v4
17 changes: 16 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ java {
sourceSets {
main {
java {
exclude 'pom.xml'
}
}
}
Expand All @@ -33,6 +32,14 @@ sourceSets {
repositories {
// You can declare any Maven/Ivy/file repository here.
mavenCentral()
maven {
url 'https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/maven/v1'
name 'GraphDeveloperExperiencesPublic'
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
}

apply from: "gradle/dependencies.gradle"
Expand Down Expand Up @@ -85,6 +92,14 @@ publishing {
name = "ADO"
url = layout.buildDirectory.dir("publishing-repository")
}
maven {
url 'https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/maven/v1'
name 'GraphDeveloperExperiencesPublic'
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
}
}

Expand Down
4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ mavenArtifactSuffix =
#enable mavenCentralPublishingEnabled to publish to maven central
mavenCentralSnapshotArtifactSuffix = -SNAPSHOT
mavenCentralPublishingEnabled=true

# Azure Artifacts CFS feed credentials
GraphDeveloperExperiencesPublicUsername=microsoftgraph
GraphDeveloperExperiencesPublicPassword=PERSONAL_ACCESS_TOKEN
7 changes: 1 addition & 6 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@
"extra-files": [
"gradle.properties",
"README.md",
"src/main/java/com/microsoft/graph/beta/info/Constants.java",
{
"type": "xml",
"path": "pom.xml",
"xpath": "//project/version"
}
"src/main/java/com/microsoft/graph/beta/info/Constants.java"
]
}
},
Expand Down
15 changes: 15 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
maven {
url 'https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/maven/v1'
name 'GraphDeveloperExperiencesPublic'
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
}
}

/*
* This file was generated by the Gradle 'init' task.
*
Expand Down
Loading