mirror of
https://github.com/actions/setup-java.git
synced 2026-06-27 15:37:57 +00:00
Compare commits
2 Commits
cb1da15291
...
cf20df9542
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf20df9542 | ||
|
|
5256614f4c |
@ -47,6 +47,11 @@ export class AdoptDistribution extends JavaBase {
|
||||
protected async findPackageForDownload(
|
||||
version: string
|
||||
): Promise<JavaDownloadRelease> {
|
||||
|
||||
if (this.jvmImpl == AdoptImplementation.Hotspot) {
|
||||
core.notice("AdoptOpenJDK has moved to Eclipse Temurin https://github.com/actions/setup-java#supported-distributions please consider changing to the 'temurin' distribution type in your setup-java configuration.")
|
||||
}
|
||||
|
||||
if (this.jvmImpl == AdoptImplementation.Hotspot && this.temurinDistribution != null) {
|
||||
try {
|
||||
let result = await this.temurinDistribution.findPackageForDownload(version)
|
||||
@ -56,7 +61,7 @@ export class AdoptDistribution extends JavaBase {
|
||||
}
|
||||
} catch (error) {
|
||||
if (error.message.includes('Could not find satisfied version')) {
|
||||
console.warn("The JVM you are looking for could not be found in the Temurin repository, this likely indicates " +
|
||||
core.notice("The JVM you are looking for could not be found in the Temurin repository, this likely indicates " +
|
||||
"that you are using an out of date version of Java, consider updating and moving to using the Temurin distribution type in setup-java.")
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user