Skip to content

Commit 1d781f8

Browse files
authored
Merge pull request #1657 from microsoftgraph/fix/java-8-compatibility
Add Java 8 compatibility checks to CI
2 parents 4625bb0 + da79468 commit 1d781f8

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

.github/workflows/gradle-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
run: chmod +x gradlew
2323
- name: Build with Gradle
2424
run: ./gradlew build
25+
- name: Build with Java 8
26+
working-directory: ./java-8
27+
run: .././gradlew build
2528
- name: Upload a Build Artifact
2629
uses: actions/upload-artifact@v4
2730
with:

java-8/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.gradle
2+
build/

java-8/build.gradle

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
apply from: "../gradle/dependencies.gradle"

java-8/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mavenArtifactId = msgraph-sdk-java-core

java-8/settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = 'msgraph-sdk-java-core'

0 commit comments

Comments
 (0)