File tree Expand file tree Collapse file tree 8 files changed +71
-4
lines changed
Expand file tree Collapse file tree 8 files changed +71
-4
lines changed Original file line number Diff line number Diff line change 88 workflow_dispatch :
99
1010jobs :
11- build :
11+ build-java-latest :
1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@v4
4848 **/gradle/**
4949 Scripts/**
5050
51+ build-java-8 :
52+ runs-on : ubuntu-latest
53+ steps :
54+ - uses : actions/checkout@v4
55+ - name : Set up JDK
56+ uses : actions/setup-java@v4
57+ with :
58+ java-version : 8
59+ distribution : ' temurin'
60+ - name : Grant Execute permission for gradlew
61+ run : chmod +x gradlew
62+ - name : Build with Java 8
63+ working-directory : ./java-8
64+ run : .././gradlew build
65+
66+ build :
67+ needs : [build-java-latest, build-java-8]
68+ runs-on : ubuntu-latest
69+ if : ${{ always() }}
70+ steps :
71+ - name : Determine build status
72+ run : |
73+ if [ "${{ needs.build-java-latest.result }}" == "success" ] && [ "${{ needs.build-java-8.result }}" == "success" ]; then
74+ exit 0
75+ else
76+ exit 1
77+ fi
78+
5179 compare-packages :
5280 needs : build
5381 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ apply plugin: "com.github.ManifestClasspath"
2525android {
2626 namespace ' com.microsoft.graph'
2727
28- compileSdkVersion 34
28+ compileSdkVersion 35
2929
3030 defaultConfig {
3131 versionCode 1
3232 versionName " 1.0"
3333 minSdkVersion 26
34- targetSdkVersion 34
34+ targetSdkVersion 35
3535 }
3636
3737 buildTypes {
Original file line number Diff line number Diff line change 1919
2020# The size of the library demands a large amount of RAM to build. Increase as necessary if you get GC errors
2121# # linux requires 10G, OSX requires 11G
22- org.gradle.jvmargs =-Xmx4g -XX:MaxMetaspaceSize=2g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
22+ org.gradle.jvmargs =-Xmx8g -XX:MaxMetaspaceSize=2g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
2323org.gradle.parallel =true
2424org.gradle.caching =true
2525
Original file line number Diff line number Diff line change 1+ .gradle
2+ build /
Original file line number Diff line number Diff line change 1+ plugins {
2+ // Apply the java-library plugin to add support for Java Library
3+ id ' java-library'
4+ id ' eclipse'
5+ }
6+
7+ repositories {
8+ mavenCentral()
9+ }
10+
11+ sourceSets {
12+ main {
13+ java {
14+ srcDirs = [' ../src' ]
15+ exclude ' test/**'
16+ }
17+ }
18+ }
19+
20+ java {
21+ toolchain {
22+ languageVersion = JavaLanguageVersion . of(8 )
23+ }
24+ withSourcesJar()
25+ }
26+
27+ tasks. jar {
28+ zip64(true )
29+ }
30+
31+ apply from : " ../gradle/dependencies.gradle"
Original file line number Diff line number Diff line change 1+ # This file is generated by updateDaemonJvm
2+ toolchainVersion =8
Original file line number Diff line number Diff line change 1+ org.gradle.jvmargs =-Xmx8g -XX:MaxMetaspaceSize =2g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding =UTF-8
2+
3+ mavenArtifactId = msgraph-sdk-java
Original file line number Diff line number Diff line change 1+ rootProject. name = ' msgraph-sdk-java'
You can’t perform that action at this time.
0 commit comments