Skip to content

Commit

Permalink
(#25079) Change openjdk policy
Browse files Browse the repository at this point in the history
Co-authored-by: Abril Rincón Blanco <[email protected]>
  • Loading branch information
ErniGH and AbrilRBS authored Aug 29, 2024
1 parent 819c75e commit a19aa34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipes/openjdk/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ class OpenJDK(ConanFile):
license = "GPL-2.0-only WITH Classpath-exception-2.0", "GPL-2.0-only WITH OpenJDK-assembly-exception-1.0"
topics = ("java", "jdk", "openjdk")
settings = "os", "arch", "compiler", "build_type"
upload_policy = "skip"
build_policy = "missing"

def package_id(self):
del self.info.settings.compiler
del self.info.settings.build_type

def configure(self):
self.settings.rm_safe("os.version")

def validate(self):
if Version(self.version) < "19.0.2" and self.settings.arch != "x86_64":
raise ConanInvalidConfiguration("Unsupported Architecture. This package currently only supports x86_64.")
Expand Down

0 comments on commit a19aa34

Please sign in to comment.