Skip to content

Commit 261641b

Browse files
committed
Merge branch 'dev' into feature/v3
2 parents dcf8110 + ee1678b commit 261641b

File tree

9 files changed

+74
-93
lines changed

9 files changed

+74
-93
lines changed

CODE_OF_CONDUCT.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Microsoft Open Source Code of Conduct
2+
3+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
4+
5+
Resources:
6+
7+
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
8+
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
9+
- Contact [[email protected]](mailto:[email protected]) with questions or concerns

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ If major functionality is being added, or there will need to be gestation time f
2222
Revisions of this nature will result in a 0.X.X change of the version number.
2323

2424
## Submit pull requests for model or request files
25-
You can revise code in the extension folders of these folders. See [Extending the Library](https://github.com/microsoftgraph/msgraph-sdk-java/wiki/Extending-the-Library) for more information on how to work with the generated parts of the library.
25+
26+
All the code of the current repository is being generated automatically by the [SDK generator](https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator/) in which any change must be reflected.
2627

2728
## Add yourself as a contributor
2829

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Microsoft Graph SDK for Java
22

3-
[![Download](https://api.bintray.com/packages/microsoftgraph/Maven/microsoft-graph/images/download.svg)](https://bintray.com/microsoftgraph/Maven/microsoft-graph/_latestVersion)
3+
[![Download](https://img.shields.io/maven-central/v/com.microsoft.graph/microsoft-graph.svg)](https://search.maven.org/artifact/com.microsoft.graph/microsoft-graph)
44

55
Get started with the Microsoft Graph SDK for Java by integrating the [Microsoft Graph API](https://developer.microsoft.com/en-us/graph/get-started/java) into your Java application!
66

@@ -14,7 +14,7 @@ Add the repository and a compile dependency for `microsoft-graph` to your projec
1414

1515
```gradle
1616
repositories {
17-
jcenter()
17+
mavenCentral()
1818
}
1919
2020
dependencies {
@@ -95,18 +95,14 @@ graphClient
9595
});
9696
```
9797

98-
For a general overview of how the SDK is designed, see [overview](https://github.com/microsoftgraph/msgraph-sdk-java/wiki/Overview).
99-
10098
## 4. Documentation
10199

102100
For more detailed documentation, see:
103101

104-
* [Overview](https://github.com/microsoftgraph/msgraph-sdk-java/wiki/Overview)
105-
* [Extending the library](https://github.com/microsoftgraph/msgraph-sdk-java/wiki/Extending-the-Library)
106-
* [Handling Open Types, PATCH support with `null` values](https://github.com/microsoftgraph/msgraph-sdk-java/wiki/Working-with-Open-Types)
107-
* [Collections](https://github.com/microsoftgraph/msgraph-sdk-java/wiki/Working-with-Collections)
108-
* [Making custom requests](https://github.com/microsoftgraph/msgraph-sdk-java/wiki/Custom-Requests)
109-
* [Known issues](https://github.com/microsoftgraph/msgraph-sdk-java/wiki/Known-Issues)
102+
* [Overview](https://docs.microsoft.com/graph/overview)
103+
* [Collections](https://docs.microsoft.com/graph/sdks/paging)
104+
* [Making requests](https://docs.microsoft.com/graph/sdks/create-requests)
105+
* [Known issues](https://github.com/MicrosoftGraph/msgraph-sdk-java/issues)
110106
* [Contributions](https://github.com/microsoftgraph/msgraph-sdk-java/blob/master/CONTRIBUTING.md)
111107

112108
## 5. Issues

SECURITY.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 BLOCK -->
2+
3+
## Security
4+
5+
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
6+
7+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.
8+
9+
## Reporting Security Issues
10+
11+
**Please do not report security vulnerabilities through public GitHub issues.**
12+
13+
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).
14+
15+
If you prefer to submit without logging in, send email to [[email protected]](mailto:[email protected]). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).
16+
17+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
18+
19+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20+
21+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22+
* Full paths of source file(s) related to the manifestation of the issue
23+
* The location of the affected source code (tag/branch/commit or direct URL)
24+
* Any special configuration required to reproduce the issue
25+
* Step-by-step instructions to reproduce the issue
26+
* Proof-of-concept or exploit code (if possible)
27+
* Impact of the issue, including how an attacker might exploit the issue
28+
29+
This information will help us triage your report more quickly.
30+
31+
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs.
32+
33+
## Preferred Languages
34+
35+
We prefer all communications to be in English.
36+
37+
## Policy
38+
39+
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd).
40+
41+
<!-- END MICROSOFT SECURITY.MD BLOCK -->

android/build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,13 @@ buildscript {
1111
classpath "com.gradle:gradle-enterprise-gradle-plugin:3.5"
1212
classpath "com.android.tools.build:gradle:4.0.1"
1313
classpath "com.github.ben-manes:gradle-versions-plugin:0.36.0"
14-
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5"
1514
}
1615
}
1716

1817
repositories {
1918
google()
2019
gradlePluginPortal()
21-
jcenter {//TODO remove when releasing
22-
url 'http://oss.jfrog.org/artifactory/oss-snapshot-local'
23-
}
20+
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } //TODO remove when releasing
2421
}
2522

2623
apply plugin: "com.android.library"

android/gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ mavenMajorVersion = 2
2929
mavenMinorVersion = 3
3030
mavenPatchVersion = 1
3131
mavenArtifactSuffix =
32-
nightliesUrl = http://dl.bintray.com/MicrosoftGraph/Maven
3332

3433
#These values are used to run functional tests
3534
#If you wish to run the functional tests, edit the gradle.properties

build.gradle

Lines changed: 1 addition & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ plugins {
1313
id 'eclipse'
1414
id 'maven-publish'
1515
id 'signing'
16-
id 'com.jfrog.bintray' version '1.8.5'
1716
}
1817

1918
java {
@@ -36,13 +35,9 @@ sourceSets {
3635

3736
// In this section you declare where to find the dependencies of your project
3837
repositories {
39-
// Use jcenter for resolving your dependencies.
4038
// You can declare any Maven/Ivy/file repository here.
41-
jcenter()
4239
mavenCentral()
43-
jcenter { //TODO remove when releasing
44-
url 'http://oss.jfrog.org/artifactory/oss-snapshot-local'
45-
}
40+
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } //TODO remove when releasing
4641
}
4742

4843
apply from: "gradle/dependencies.gradle"
@@ -139,34 +134,6 @@ publishing {
139134
}
140135
}
141136
}
142-
143-
maven {
144-
url = 'http://oss.jfrog.org/artifactory/oss-snapshot-local'
145-
name = 'jfrogSnapshot'
146-
147-
credentials {
148-
if (project.rootProject.file('local.properties').exists()) {
149-
Properties properties = new Properties()
150-
properties.load(project.rootProject.file('local.properties').newDataInputStream())
151-
username = (properties.containsKey('bintray.user')) ? properties.getProperty('bintray.user').toLowerCase() : "BINTRAY_USERNAME"
152-
password = properties.getProperty('bintray.apikey')
153-
}
154-
}
155-
}
156-
157-
maven {
158-
url = 'https://oss.jfrog.org/artifactory/libs-release'
159-
name = 'jfrog'
160-
161-
credentials {
162-
if (project.rootProject.file('local.properties').exists()) {
163-
Properties properties = new Properties()
164-
properties.load(project.rootProject.file('local.properties').newDataInputStream())
165-
username = (properties.containsKey('bintray.user')) ? properties.getProperty('bintray.user').toLowerCase() : "BINTRAY_USERNAME"
166-
password = properties.getProperty('bintray.apikey')
167-
}
168-
}
169-
}
170137
}
171138
}
172139

@@ -182,38 +149,6 @@ def fixAscNames = { name ->
182149
name.replace('msgraph-sdk-java', "${project.property('mavenArtifactId')}-${mavenMajorVersion}.${mavenMinorVersion}.${mavenPatchVersion}")
183150
}
184151
}
185-
bintray {
186-
if (project.rootProject.file('local.properties').exists()) {
187-
Properties properties = new Properties()
188-
properties.load(project.rootProject.file('local.properties').newDataInputStream())
189-
user = (properties.containsKey('bintray.user')) ? properties.getProperty('bintray.user').toLowerCase() : "BINTRAY_USERNAME"
190-
key = properties.getProperty('bintray.apikey')
191-
}
192-
publications = ['mavenCentralRelease']
193-
filesSpec {
194-
from ('build/libs') {
195-
include 'msgraph-sdk-java*.jar.asc'
196-
rename fixAscNames
197-
}
198-
from ('build') {
199-
include 'generated-pom.xml.asc'
200-
rename fixAscNames
201-
}
202-
into "com/microsoft/graph/${project.property('mavenArtifactId')}/${mavenMajorVersion}.${mavenMinorVersion}.${mavenPatchVersion}/"
203-
}
204-
pkg {
205-
repo = 'Maven'
206-
name = project.property('mavenArtifactId')
207-
userOrg = 'microsoftgraph'
208-
licenses = ['MIT']
209-
vcsUrl = 'https://github.com/microsoftgraph/msgraph-sdk-java.git'
210-
publicDownloadNumbers = true
211-
version {
212-
name = "${mavenMajorVersion}.${mavenMinorVersion}.${mavenPatchVersion}"
213-
vcsTag = "${mavenMajorVersion}.${mavenMinorVersion}.${mavenPatchVersion}"
214-
}
215-
}
216-
}
217152

218153
compileJava {
219154
options.compilerArgs << "-parameters"

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ mavenMajorVersion = 3
2929
mavenMinorVersion = 0
3030
mavenPatchVersion = 0
3131
mavenArtifactSuffix =
32-
nightliesUrl = http://dl.bintray.com/MicrosoftGraph/Maven
3332

3433
#These values are used to run functional tests
3534
#If you wish to run the functional tests, edit the gradle.properties
@@ -43,3 +42,5 @@ Password="PASSWORD"
4342
mavenCentralSnapshotArtifactSuffix = -SNAPSHOT
4443
mavenCentralPublishingEnabled=false
4544

45+
46+

typesummary/app/build.gradle

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,24 @@ plugins {
1212
}
1313

1414
repositories {
15-
// Use JCenter for resolving dependencies.
16-
jcenter()
17-
flatDir {
18-
dirs '../../build/libs'
19-
}
20-
jcenter { //TODO remove when releasing
21-
url 'http://oss.jfrog.org/artifactory/oss-snapshot-local'
15+
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' } //TODO remove when releasing
16+
mavenCentral()
17+
}
18+
19+
sourceSets {
20+
main {
21+
java {
22+
srcDirs 'src'
23+
srcDirs '../../src/main'
24+
}
2225
}
2326
}
2427

2528
dependencies {
26-
implementation 'com.google.guava:guava:29.0-jre'
29+
implementation 'com.google.guava:guava:30.1-jre'
30+
implementation 'com.google.code.gson:gson:2.8.6'
2731

2832
implementation 'com.microsoft.graph:microsoft-graph-core:2.0.0-SNAPSHOT' //TODO update this when releasing
29-
30-
implementation name: 'msgraph-sdk-java'
3133
}
3234

3335
application {

0 commit comments

Comments
 (0)