Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
286 commits
Select commit Hold shift + click to select a range
95d46b7
Merge branch 'dev' into rsh/AzureIdentityAuth
baywet Aug 31, 2020
2a9c6c1
Revert "- reverts upgrade to java8 to avoid introducing a breaking ch…
baywet Sep 1, 2020
5701d3e
Merge branch 'dev' into feature/java8-upgrade
baywet Sep 1, 2020
08aa80c
Merge branch 'dev' into rsh/AzureIdentityAuth
baywet Sep 1, 2020
43d1f67
Merge branch 'dev' into feature/java8-upgrade
baywet Sep 2, 2020
33f0e41
Merge branch 'dev' into feature/java8-upgrade
baywet Sep 3, 2020
41e1eb6
Merge branch 'dev' into rsh/AzureIdentityAuth
baywet Sep 3, 2020
c0ac293
Merge branch 'dev' into dependabot/gradle/com.squareup.okhttp3-okhttp…
baywet Sep 8, 2020
2823bc9
Merge branch 'dev' into rsh/AzureIdentityAuth
baywet Sep 10, 2020
c258f5c
Merge branch 'dev' into rsh/AzureIdentityAuth
baywet Sep 28, 2020
2794ba5
Merge pull request #48 from microsoftgraph/dependabot/gradle/com.squa…
baywet Oct 5, 2020
9b2efeb
- aligns ok http version on service sdk
baywet Oct 5, 2020
deafc0f
Merge pull request #58 from microsoftgraph/feature/java8-upgrade
baywet Oct 5, 2020
44ead25
- adds android project structure
baywet Nov 16, 2020
b6127e6
- moves dependencies in dedicated file
baywet Nov 16, 2020
b67b642
- adds linting pipeline
baywet Nov 16, 2020
5e2bb8d
- upgrades wrapper
baywet Nov 16, 2020
6d96e5f
- temporary CI configuration for v2 branch
baywet Nov 16, 2020
1e6431d
- adds report upload in case of failure
baywet Nov 16, 2020
1722c48
- upgrades to latest sdk version
baywet Nov 16, 2020
728478e
- fixes missing nonnull nullable annotations
baywet Nov 16, 2020
b3e7624
- adds JSR305 dependency
baywet Nov 16, 2020
26ed325
- suppresses lambda warning
baywet Nov 16, 2020
7a7a507
- adds missing nonnull annotation
baywet Nov 16, 2020
5a31e11
- fixes compliance issue with java bean spec
baywet Nov 16, 2020
2799045
- updates documented API level
baywet Nov 17, 2020
3a69c83
Merge pull request #86 from microsoftgraph/feature/api-level-baseline
baywet Nov 19, 2020
af446f4
Merge branch 'dev' into feature/v2
baywet Nov 19, 2020
5ed09b5
Merge branch 'feature/v2' into rsh/AzureIdentityAuth
baywet Nov 25, 2020
c66009e
- adds missing dependency following merge
baywet Nov 25, 2020
c0ede5b
- adds missing nullable nonnull annotations
baywet Nov 26, 2020
9806b5c
- ignores duplicated class warning
baywet Nov 26, 2020
d275cbb
Apply suggestions from code review
baywet Nov 26, 2020
b655499
- adds missing gitignore files for samples
baywet Nov 26, 2020
7f58fa7
- updates wrapper to latest
baywet Nov 26, 2020
ed50c5a
- updates reference to credential helper as signature changed
baywet Nov 26, 2020
2aba864
- adds missing wrapper for sample
baywet Nov 26, 2020
945913b
- removes dependency on simple json as it was not adding value
baywet Nov 26, 2020
d76692c
- adds missing wrapper jar
baywet Nov 26, 2020
52cc61c
- adds github action workflow to validate that samples build
baywet Nov 26, 2020
e85001d
- removes quote breaking workflow
baywet Nov 26, 2020
cd5d01e
- fixes a bug where the auth provider would add the JWT on wrong host…
baywet Nov 26, 2020
4622566
- fixes an issue where authentication could hand forvever
baywet Nov 26, 2020
aa11695
- fixes collection to include missing dependencies file
baywet Dec 7, 2020
1293e96
- adds feature/v2 as CI
baywet Dec 7, 2020
2e27d2e
- attempt at fixing minimatch pattern
baywet Dec 7, 2020
d854436
Merge branch 'dev' into feature/v2
baywet Dec 9, 2020
ddf76cc
Merge branch 'dev' into feature/v2
baywet Dec 14, 2020
49b4b7e
Merge branch 'feature/v2' of https://github.com/microsoftgraph/msgrap…
baywet Dec 14, 2020
6bab466
Merge branch 'feature/v2' into rsh/AzureIdentityAuth
baywet Dec 14, 2020
358d052
Merge branch 'dev' into feature/v2
baywet Jan 4, 2021
5246e7e
- adds missing javadoc comments
baywet Jan 4, 2021
9ee028e
- fixes a mix of tabs and spaces
baywet Jan 4, 2021
62eab76
Merge pull request #102 from microsoftgraph/feature/missing-javadoc
baywet Jan 4, 2021
1aaeb72
Merge branch 'feature/v2' into rsh/AzureIdentityAuth
baywet Jan 5, 2021
f73faa9
- bumps min API level to 26
baywet Jan 14, 2021
7f27f14
- adds code coverage reports
baywet Jan 15, 2021
57112a5
Merge pull request #104 from microsoftgraph/feature/code-coverage
baywet Jan 15, 2021
3bac216
- moves all the non-generated classes to the core library
baywet Jan 18, 2021
a4cbf06
- adds missing guava reference
baywet Jan 18, 2021
6c53fc3
- adds mockito as dependency
baywet Jan 18, 2021
b135d05
- moves core, logger and options tests to core repo
baywet Jan 18, 2021
4830b3b
- fixes a bug where the authentication provider returning null would …
baywet Jan 18, 2021
fc1dbc1
- replaces usage of internal classes and manual mocks by proper mocking
baywet Jan 18, 2021
baf95e5
- enables wrongfully disabled test
baywet Jan 18, 2021
519fe80
- moves part of the serializer tests
baywet Jan 18, 2021
db1fce8
- adds missing legal text for IUploadsession
baywet Jan 18, 2021
7b7458a
- brings options tests to 100%
baywet Jan 18, 2021
c5a1260
- reverts defensive programming on option value as null values are valid
baywet Jan 18, 2021
0673a8f
- moves some of the request tests
baywet Jan 18, 2021
7788912
- moves another set of http tests to the core library
baywet Jan 18, 2021
b637452
- moves the remaining of the http tests to core
baywet Jan 18, 2021
59d5283
- merges BaseGraphServiceClient and BaseClient
baywet Jan 18, 2021
cb7f915
- removes unused imports
baywet Jan 18, 2021
bb5c91e
- allows for client builder extensibility so the service library can …
baywet Jan 19, 2021
dec98ba
- removes extensions and generated additional namespaces in reflection
baywet Jan 19, 2021
a6f6ab4
- replaces version constant by provider from the client
baywet Jan 19, 2021
e8d2211
- removes unecessary validate method for base client
baywet Jan 19, 2021
a39b80b
- fixes a bug where upload sessions would not deserialize responses p…
baywet Jan 19, 2021
ccf2821
- updates future API surface following naming convention change
baywet Jan 19, 2021
67ab2f9
Merge branch 'feature/moving-nongen' into rsh/AzureIdentityAuth
baywet Jan 19, 2021
96a8881
- merges CoreAuthProvider and auth provider interfaces
baywet Jan 19, 2021
985b479
- adds missing javadoc comments
baywet Jan 20, 2021
1c3fedd
- reverts to public access modifiers because of android linting
baywet Jan 20, 2021
abc2de4
- fixes linting issue on null annotations
baywet Jan 20, 2021
ac1c59f
Merge branch 'feature/moving-nongen' into rsh/AzureIdentityAuth
baywet Jan 20, 2021
b9dbb18
- adds missing defensive programming
baywet Jan 20, 2021
4b25631
- updates samples to match new constructors
baywet Jan 20, 2021
81639b6
Merge branch 'dev' into feature/v2
baywet Jan 21, 2021
3fe6857
- changes order of parameters again to avoid offending kotlin
baywet Jan 21, 2021
6f39a8a
- adds an execute method for JSON batches to avoid customers juggling…
baywet Jan 20, 2021
53c58ba
- reverts string serialization bypass to avoid unconsistent behavior
baywet Jan 21, 2021
73219ae
- adds defensive programming
baywet Jan 21, 2021
2da8811
Merge branch 'dev' into feature/v2
baywet Jan 21, 2021
2ef30c4
- removes usage of deprecated API in sample
baywet Jan 21, 2021
7ed0053
Merge pull request #105 from microsoftgraph/feature/moving-nongen
baywet Jan 21, 2021
974305d
- fixes a bug where ints would be compared by reference instead of va…
baywet Jan 21, 2021
f227c49
- replaces try catches in batch unit tests by assert throws for readb…
baywet Jan 21, 2021
49f7c9f
Merge pull request #114 from microsoftgraph/bugfix/ref-compare
baywet Jan 21, 2021
91e2945
- replaces calls to obsolete APIs
baywet Jan 21, 2021
21944eb
- enables and fixes last disabled tests for CoreHttpProvider
baywet Jan 21, 2021
16321e2
Update samples/deviceCodeSample/src/main/java/deviceCodeFlowMain.java
baywet Jan 21, 2021
2f501b9
Update src/main/java/com/microsoft/graph/authentication/TokenCredenti…
baywet Jan 21, 2021
927ab2e
- typo
baywet Jan 22, 2021
d7d669a
Apply suggestions from code review
baywet Jan 22, 2021
9f921e1
Update readme.md
baywet Jan 22, 2021
cd41d3b
- removes intermediate methods in samples
baywet Jan 22, 2021
add6834
- replaces ID by placeholder
baywet Jan 22, 2021
12319bc
- adds a verification for the protocol to be over TLS before attachin…
baywet Jan 22, 2021
ab0cb98
- adds tests for national clouds
baywet Jan 22, 2021
2c29deb
- moves to a URL prototype and adds defensive programming
baywet Jan 22, 2021
4a379b6
- moves constants in it's usage class
baywet Jan 22, 2021
7542277
- moves some of the resuable methods for auth provider in a common an…
baywet Jan 22, 2021
f59e676
- refactors authentication interface to use URL instead of deeply tie…
baywet Jan 22, 2021
9ec6d4e
- adds missing nullability annotation
baywet Jan 22, 2021
eae9eb7
- removes the need for the generic type of the request
baywet Jan 22, 2021
6f6098d
- updates guidance to follow new authentication provider
baywet Jan 22, 2021
fb6e1f1
- fixes samples after removal of auth exception
baywet Jan 22, 2021
603ef3d
- updates link to get auth provider
baywet Jan 22, 2021
63088d1
- switches azure identity dependency to api as it's part of our API
baywet Jan 22, 2021
100390d
Apply suggestions from code review
baywet Jan 22, 2021
2ec247f
- fixes file/class casing to match conventions
baywet Jan 22, 2021
870bd0d
- aligns locale
baywet Jan 22, 2021
f849b69
- update dependencies for github dependency tree
baywet Jan 22, 2021
b26bcdd
Merge pull request #115 from microsoftgraph/feature/enable-disabled-t…
baywet Jan 22, 2021
e3ac12d
Merge pull request #108 from microsoftgraph/feature/batches-execution
baywet Jan 22, 2021
cffa9d4
Merge pull request #42 from microsoftgraph/rsh/AzureIdentityAuth
baywet Jan 22, 2021
cf40f44
- major version bump
baywet Jan 25, 2021
61520f2
- fixes a bug where some higher level classes would write to stdout/s…
baywet Jan 25, 2021
00fb75a
- removes reference to serializer and json in IJsonBackedObject inter…
baywet Jan 25, 2021
5bf2db9
- adds a unit test for delta link
baywet Jan 25, 2021
3e87c20
Use InputStream instead of String in ISerializer
hosmanagic-axcient Jan 26, 2021
549d71e
Update src/main/java/com/microsoft/graph/serializer/DefaultSerializer…
hosmanagic-axcient Jan 26, 2021
4063654
Update src/main/java/com/microsoft/graph/serializer/CollectionPageSer…
hosmanagic-axcient Jan 26, 2021
3cd16f0
- replaces manual null defensive programming by facilitating method
baywet Jan 26, 2021
55880dd
Revert "Update src/main/java/com/microsoft/graph/serializer/Collectio…
hosmanagic-axcient Jan 26, 2021
8960b32
Revert "Update src/main/java/com/microsoft/graph/serializer/DefaultSe…
hosmanagic-axcient Jan 26, 2021
e7a1406
revert change in ChunkedUploadResponseHandler
hosmanagic-axcient Jan 26, 2021
9346585
minor updates
hosmanagic-axcient Jan 26, 2021
49bdbb5
Add ISerializer.deserializeObject(jsonElement). Add Util.closeQuietly
hosmanagic-axcient Jan 26, 2021
c3a67f2
refactoring: use default methods in ISerializer
hosmanagic-axcient Jan 26, 2021
b73d898
minor cleanup
hosmanagic-axcient Jan 26, 2021
f59243e
minor cleanup
hosmanagic-axcient Jan 26, 2021
57fedb3
Added Nullable
hosmanagic-axcient Jan 26, 2021
7ca3113
improved error parsing
hosmanagic-axcient Jan 26, 2021
1151bfe
Merge pull request #120 from microsoftgraph/feature/major-bump
baywet Jan 26, 2021
8f807b4
Merge pull request #121 from microsoftgraph/bugfix/logger-align
baywet Jan 26, 2021
36e4b6b
- fixes a bug where collection responses would not respect odata inhe…
baywet Jan 26, 2021
15eaaf6
added a comment
hosmanagic-axcient Jan 27, 2021
59795a8
ChunkedUploadResponseHandler: Use InputStream to parse ChunkedUploadR…
hosmanagic-axcient Jan 27, 2021
d28f239
- removes use of emptymaps to avoid illegal refelctive warnings
baywet Jan 27, 2021
a3a70fb
- removes unecessary imports and deprecated annotation
baywet Jan 27, 2021
0835957
- removes uncessary deprecated annotations
baywet Jan 27, 2021
27b98ec
- fixes a mocks types to prevent unit tests from failing
baywet Jan 27, 2021
8bdca7a
fixed: self-closing element not allowed in javadoc
hosmanagic-axcient Jan 27, 2021
1930509
Merge pull request #122 from microsoftgraph/bugfix/json-memory-dedupe
baywet Jan 27, 2021
b5da1c5
Merge branch 'feature/v2' into bugfix/collection-responses
baywet Jan 27, 2021
09466e4
Replace jetbrains NotNull with javax Nullable
hosmanagic-axcient Jan 27, 2021
391187d
Merge pull request #123 from hosmanagic-axcient/iserializer-use-input…
baywet Jan 27, 2021
1ad5323
Merge branch 'feature/v2' into bugfix/collection-responses
baywet Jan 29, 2021
08e1293
- adds missing legal header
baywet Jan 29, 2021
7be8422
- lints
baywet Jan 29, 2021
b52ac43
- upgrades to junit5
baywet Jan 29, 2021
30cdf54
- upgrades dependencies
baywet Jan 29, 2021
ba6cf34
Merge pull request #125 from microsoftgraph/bugfix/collection-responses
baywet Jan 29, 2021
94da5ba
- updates POM to match dependencies for github dep tree
baywet Jan 29, 2021
93cdf2f
Merge pull request #126 from microsoftgraph/feature/junit-upgrade
baywet Jan 29, 2021
386588a
- upgrades ok http to latest
baywet Feb 1, 2021
918129d
- add a method on the client to execute batches
baywet Feb 1, 2021
bb326b2
Merge pull request #128 from microsoftgraph/feature/ok-http-update
baywet Feb 1, 2021
75bc313
- adds missing javadoc comments for new batch infrastructure
baywet Feb 2, 2021
91b3890
- fixes access modifiers for batch request methods
baywet Feb 2, 2021
d025c85
- adds support for var ags dependon ids in batches
baywet Feb 2, 2021
b6b5f8a
- fixes a bug where the batch requests would be missing the content type
baywet Feb 2, 2021
97e8397
- adds additinoal unit tests cases for body header in batches
baywet Feb 2, 2021
5a98e14
- fixes a bug where batch response bodies would not be deserialized p…
baywet Feb 2, 2021
92cb5ec
- improves api surface by removing the need to pass the serializer
baywet Feb 2, 2021
2cc9445
- fixes linting issues
baywet Feb 2, 2021
5b46d7d
- improves header management for http response
baywet Feb 3, 2021
fc072e0
- moves the constants to a private place so nobody takes a dependency…
baywet Feb 3, 2021
88d721a
Merge pull request #130 from microsoftgraph/feature/response-headers-…
baywet Feb 4, 2021
04f9d5b
Merge branch 'feature/v2' into feature/lean-batches
baywet Feb 4, 2021
46c5bc8
- upgrades gradle to 6.8.1
baywet Feb 4, 2021
3d3f351
Merge pull request #133 from microsoftgraph/feature/gradle-upgrade
baywet Feb 4, 2021
e9d2433
Merge branch 'feature/v2' into feature/lean-batches
baywet Feb 5, 2021
36f4f8b
- generic IHttpRequest
baywet Jan 28, 2021
5e7d1ca
- linting
baywet Jan 28, 2021
0384c1b
- adds missing javadoc comments
baywet Feb 1, 2021
a1b7d30
- adds missing nullability annotations
baywet Feb 5, 2021
557603b
Apply suggestions from code review
baywet Feb 8, 2021
947d384
Merge pull request #129 from microsoftgraph/feature/lean-batches
baywet Feb 8, 2021
5b1a6db
- fixes an issue where the SDK would be expecting the wrong casing fo…
baywet Feb 8, 2021
1ce365d
- fixes a bug where the binrary stream would be disposed before clien…
baywet Feb 8, 2021
3141c2b
- fixes a bug where chunk encoding would make the redirect handler fail
baywet Feb 8, 2021
69bf4b7
- fixes a bug where the retry handler could fail on chunked encoding …
baywet Feb 8, 2021
1e9e652
Merge pull request #135 from microsoftgraph/bugfix/error-code-casing
baywet Feb 8, 2021
3f42c2b
Merge pull request #136 from microsoftgraph/bugfix/binary-disposed
baywet Feb 8, 2021
8116047
Merge pull request #137 from microsoftgraph/bugfix/chunk-encoding-ret…
baywet Feb 9, 2021
92d661e
Merge branch 'dev' into feature/v2
baywet Feb 9, 2021
e7d7b24
- removes bintray/jcenter from repo in preparation for sunset
baywet Feb 9, 2021
7080db5
Merge pull request #142 from microsoftgraph/feature/bintray-removal
baywet Feb 9, 2021
55d8d76
- fixes generic type casing
baywet Feb 10, 2021
9bfbcbd
Merge pull request #134 from microsoftgraph/feature/generic-request
baywet Feb 10, 2021
07bee6c
- adds java 15 installation for perf and latest language features
baywet Feb 10, 2021
c7b27a8
- adds exception in reflection methods to facilitate detection of issues
baywet Feb 10, 2021
480b521
- avoid instantiating a builder when it's not needed
baywet Feb 10, 2021
1deae01
- fixes a bug where the max retries would not be set for collection r…
baywet Feb 10, 2021
752c656
Merge pull request #145 from microsoftgraph/bugfix/collection-response
baywet Feb 11, 2021
5027457
Merge pull request #146 from microsoftgraph/bugfix/max-retry-collections
baywet Feb 11, 2021
f973ffa
- moves pipeline steps in templates
baywet Feb 11, 2021
f8a5614
Merge pull request #144 from microsoftgraph/bugfix/java-version
baywet Feb 11, 2021
1acc2b5
- upgades dependencies
baywet Feb 11, 2021
c34f8fc
- replaces deprecated method usage
baywet Feb 11, 2021
a5e1f9e
Merge pull request #147 from microsoftgraph/feature/deprecation-remov…
baywet Feb 11, 2021
83f70f7
Merge branch 'dev' into feature/v2
baywet Feb 11, 2021
93b6c37
Merge branch 'dev' into feature/v2
baywet Feb 15, 2021
7446b6b
- adds java 15 install to fix codeql build
baywet Feb 15, 2021
88e84f3
Merge pull request #155 from microsoftgraph/bugfix/code-analysis-fix
baywet Feb 17, 2021
6599f32
- fixes a bug where next page would always be null because of deseria…
baywet Feb 18, 2021
7303bae
Merge pull request #157 from microsoftgraph/bugfix/collections-nextpa…
baywet Feb 18, 2021
6aba30d
- adds spotbugs base configuration
baywet Feb 9, 2021
61d5640
- fixes static analysis errors as example
baywet Feb 12, 2021
da944a5
- fixes a first set of linting issues
baywet Feb 12, 2021
99ca9e6
- lints serializer package
baywet Feb 15, 2021
e408ea0
- lints httpcore package
baywet Feb 15, 2021
b225b77
- lints content package
baywet Feb 15, 2021
a017c5d
- fixes mocks after linting
baywet Feb 15, 2021
c9b5b43
- lints concurrency package
baywet Feb 15, 2021
3282456
- lints http package
baywet Feb 15, 2021
27aec57
- enables html report for tests spotbugs
baywet Feb 15, 2021
b8c4236
- lints unit tests
baywet Feb 15, 2021
752e808
- adds spotbugs exclusions
baywet Feb 15, 2021
ab2ff30
- adds missing defensive programming for nonnull annotations
baywet Feb 15, 2021
567051e
Merge pull request #150 from microsoftgraph/feature/spotbugs
baywet Feb 18, 2021
76c0c7e
- fixes a bug where errors would be swallowed for chunk upload requests
baywet Feb 19, 2021
e517b6a
Merge pull request #158 from microsoftgraph/bugfix/chunk-error-swallow
baywet Feb 19, 2021
212ae1f
- fixes a bug where the nullability annotation would be stricter than…
baywet Mar 1, 2021
df86d48
Merge pull request #161 from microsoftgraph/bugfix/wrong-nullability-…
baywet Mar 1, 2021
156b6c5
- renames large file upload to match specification
baywet Mar 1, 2021
ff4c540
- remove references to native http type in interfaces
baywet Mar 1, 2021
aed7d1f
- removes fully qualified names for completablefutures
baywet Mar 2, 2021
1c84478
Merge pull request #162 from microsoftgraph/feature/large-file-align
baywet Mar 2, 2021
6d496db
Merge branch 'dev' into feature/v2
baywet Mar 4, 2021
9cfcce3
- fixes a bug where errors would log payload even on error verbosity
baywet Mar 4, 2021
886811a
Merge pull request #166 from microsoftgraph/bugfix/error-log-verbosity
baywet Mar 4, 2021
0c6f373
- fixes a bug where native EDM return types would not be deserialized…
baywet Mar 9, 2021
b9b566c
- fixes a bug where the content type for requests with empty bodies w…
baywet Mar 9, 2021
b812269
- indent is evil 😈
baywet Mar 10, 2021
efa5a49
Merge pull request #167 from microsoftgraph/bugfix/default-post-conte…
baywet Mar 11, 2021
69f71a0
Merge pull request #87 from microsoftgraph/feature/v2
baywet Mar 15, 2021
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
83 changes: 9 additions & 74 deletions .azure-pipelines/buildAndPackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ trigger:
- dev
- main
- master
- feature/v2
paths:
include:
- src/*
exclude:
- .gradle/wrapper
- .gitignore
- CONTRIBUTING.md
- LICENSE
- THIRD PARTY NOTICES
- build.gradle
- gradle.properties
- gradlew
- gradlew.bat
Expand All @@ -28,78 +29,12 @@ trigger:
pr: none

pool:
vmImage: 'windows-latest'
vmImage: windows-latest

steps:
- checkout: self
clean: true
fetchDepth: 1

- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
displayName: 'Run CredScan'
inputs:
debugMode: false

- task: DownloadSecureFile@1
inputs:
secureFile: 'local.properties'

- task: DownloadSecureFile@1
inputs:
secureFile: 'secring.gpg'

- task: DownloadSecureFile@1
inputs:
secureFile: 'secring.gpg.lock'

- task: CopyFiles@2
inputs:
SourceFolder: '$(Agent.TempDirectory)'
Contents: '**'
TargetFolder: '$(System.DefaultWorkingDirectory)'

- task: Gradle@2
inputs:
gradleWrapperFile: 'gradlew'
tasks: 'build'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
javaHomeOption: 'JDKVersion'
sonarQubeRunAnalysis: false

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'

- task: CopyFiles@2
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)'
Contents: |
**/libs/*
build/generated-pom.xml
build/generated-pom.xml.asc
build.gradle
gradlew
gradlew.bat
settings.gradle
gradle.properties
**/gradle/wrapper/*
Scripts/**
TargetFolder: '$(Build.ArtifactStagingDirectory)/'

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'

- task: YodLabs.O365PostMessage.O365PostMessageBuild.O365PostMessageBuild@0
displayName: 'Graph Client Tooling pipeline fail notification'
inputs:
addressType: serviceEndpoint
serviceEndpointName: 'microsoftgraph pipeline status'
title: '$(Build.DefinitionName) failure notification'
text: 'This pipeline has failed. View the build details for further information. This is a blocking failure.'
condition: and(failed(), ne(variables['Build.Reason'], 'Manual'))
enabled: true
- template: templates/checkout-and-credscan.yml
- template: templates/install-java.yml
- template: templates/secure-files.yml
- template: templates/build-and-coverage.yml
- template: templates/publish-artefacts.yml
- template: templates/alert-failure.yml
43 changes: 8 additions & 35 deletions .azure-pipelines/prValidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
pr:
branches:
include:
- master
- main
- dev
- main
- master
- feature/v2
paths:
exclude:
- .azure-pipelines
- .gradle/wrapper
- .gitignore
- CONTRIBUTING.md
Expand All @@ -26,38 +26,11 @@ pr:

trigger: none # disable triggers based on commits.

variables:
PACKAGE_NAME: 'microsoft-graph-core'
PROPERTIES_PATH: '.\gradle.properties'

pool:
pool:
vmImage: windows-latest

steps:
- checkout: self
clean: true
fetchDepth: 1

- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
displayName: 'Run CredScan'
inputs:
debugMode: false

- task: Gradle@2
inputs:
gradleWrapperFile: 'gradlew'
tasks: 'build'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
javaHomeOption: 'JDKVersion'
sonarQubeRunAnalysis: false

- task: YodLabs.O365PostMessage.O365PostMessageBuild.O365PostMessageBuild@0
displayName: 'Graph Client Tooling pipeline fail notification'
inputs:
addressType: serviceEndpoint
serviceEndpointName: 'microsoftgraph pipeline status'
title: '$(Build.DefinitionName) failure notification'
text: 'This pipeline has failed. View the build details for further information. This is a blocking failure. '
condition: and(failed(), ne(variables['Build.Reason'], 'Manual'))
enabled: true
- template: templates/checkout-and-credscan.yml
- template: templates/install-java.yml
- template: templates/build-and-coverage.yml
- template: templates/alert-failure.yml
10 changes: 10 additions & 0 deletions .azure-pipelines/templates/alert-failure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
steps:
- task: YodLabs.O365PostMessage.O365PostMessageBuild.O365PostMessageBuild@0
displayName: 'Graph Client Tooling pipeline fail notification'
inputs:
addressType: serviceEndpoint
serviceEndpointName: 'microsoftgraph pipeline status'
title: '$(Build.DefinitionName) failure notification'
text: 'This pipeline has failed. View the build details for further information. This is a blocking failure. '
condition: and(failed(), ne(variables['Build.Reason'], 'Manual'))
enabled: true
16 changes: 16 additions & 0 deletions .azure-pipelines/templates/build-and-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
steps:
- task: Gradle@2
inputs:
gradleWrapperFile: 'gradlew'
tasks: 'build'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
javaHomeOption: 'JDKVersion'
sonarQubeRunAnalysis: false

- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: 'JaCoCo'
summaryFileLocation: $(System.DefaultWorkingDirectory)/build/reports/jacoco/test/jacocoTestReport.xml
pathToSources: $(System.DefaultWorkingDirectory)/src/main/java
failIfCoverageEmpty: true
9 changes: 9 additions & 0 deletions .azure-pipelines/templates/checkout-and-credscan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
steps:
- checkout: self
clean: true
fetchDepth: 1

- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
displayName: 'Run CredScan'
inputs:
debugMode: false
11 changes: 11 additions & 0 deletions .azure-pipelines/templates/install-java.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
steps:
- pwsh: 'Invoke-WebRequest -Uri https://github.com/AdoptOpenJDK/openjdk15-binaries/releases/download/jdk-15.0.2%2B7/OpenJDK15U-jdk_x64_windows_hotspot_15.0.2_7.zip -OutFile OpenJDK.zip'
displayName: 'Download JDK'

- task: JavaToolInstaller@0
inputs:
versionSpec: '15'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'LocalDirectory'
jdkFile: 'OpenJDK.zip'
jdkDestinationDirectory: 'binaries'
21 changes: 21 additions & 0 deletions .azure-pipelines/templates/publish-artefacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
steps:
- task: CopyFiles@2
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)'
Contents: |
**/libs/*
build/generated-pom.xml
build/generated-pom.xml.asc
build.gradle
gradlew
gradlew.bat
settings.gradle
gradle.properties
**/gradle/**
Scripts/**
TargetFolder: '$(Build.ArtifactStagingDirectory)/'

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
18 changes: 18 additions & 0 deletions .azure-pipelines/templates/secure-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
steps:
- task: DownloadSecureFile@1
inputs:
secureFile: 'local.properties'

- task: DownloadSecureFile@1
inputs:
secureFile: 'secring.gpg'

- task: DownloadSecureFile@1
inputs:
secureFile: 'secring.gpg.lock'

- task: CopyFiles@2
inputs:
SourceFolder: '$(Agent.TempDirectory)'
Contents: '**'
TargetFolder: '$(System.DefaultWorkingDirectory)'
37 changes: 37 additions & 0 deletions .github/workflows/api-level-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "Checks the SDK only using APIs from the targeted API level"

on:
push:
branches:
- dev
- master
pull_request:
branches:
- dev
- master
- feature/v2

jobs:
lint-api-level:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 15
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Add execution right to the script
run: chmod +x gradlew
working-directory: ./android
- name: Build SDK with Android project configuration
id: lint
run: ./gradlew --no-daemon build
working-directory: ./android
- name: Upload linting results
if: failure() && steps.lint.outcome == 'failure'
uses: actions/upload-artifact@v2
with:
name: lint-report
path: ./android/build/reports

4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
# a pull request then we can checkout the head.
fetch-depth: 2

- uses: actions/setup-java@v1
with:
java-version: 15

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/sample-build-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "samples build check"

on:
push:
paths:
- '**/*.java'
- '**/*.yml'

jobs:
samples-build-check-device-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 15
- name: Add execution right to the script
run: chmod +x gradlew
working-directory: ./samples/deviceCodeSample
- name: Build and run type summary project
run: ./gradlew --no-daemon build
working-directory: ./samples/deviceCodeSample
samples-build-check-interactive:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 15
- name: Add execution right to the script
run: chmod +x gradlew
working-directory: ./samples/interactiveBrowserSample
- name: Build and run type summary project
run: ./gradlew --no-daemon build
working-directory: ./samples/interactiveBrowserSample
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ hs_err_pid*
.classpath
.settings

# IntelliJ
*.iml
.idea/

# Maven
/target/
local.properties
2 changes: 2 additions & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.gradle
build
24 changes: 24 additions & 0 deletions android/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.microsoft.graph"
android:installLocation="auto"
tools:ignore="UnusedAttribute">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true" />

<application
android:hardwareAccelerated="true"
android:fullBackupContent="true"
android:allowBackup="true"
android:supportsRtl="true"
tools:ignore="GoogleAppIndexingWarning"></application>
</manifest>
Loading