-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dafny: use dotnet@6
and openjdk@17
#117764
Conversation
* use `dotnet@6` and `openjdk@17` * use system python3 on macOS * remove `gradle` build dependency since `dafny` runs ./gradlew instead of gradle command so `gradle` dependency is not used
@@ -21,10 +22,13 @@ class Dafny < Formula | |||
sha256 cellar: :any_skip_relocation, x86_64_linux: "25d87dc6b3a2041668a3e4100d3e44c61bee2a772a8405fdc8fc63d1ac35a200" | |||
end | |||
|
|||
depends_on "gradle" => :build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./gradlew
is run during make exe
as part of C# project https://github.com/dafny-lang/dafny/blob/v3.9.1/Source/DafnyRuntime/DafnyRuntime.csproj#L47
<Exec WorkingDirectory="DafnyRuntimeJava" Condition="!$([MSBuild]::IsOSPlatform('Windows'))" Command="./gradlew -q build" />
# We use the latest Java version that is compatible with gradlew version in `dafny`. | ||
# https://github.com/dafny-lang/dafny/blob/v#{version}/Source/DafnyRuntime/DafnyRuntimeJava/gradle/wrapper/gradle-wrapper.properties | ||
# https://docs.gradle.org/current/userguide/compatibility.html | ||
depends_on "openjdk@17" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gradle 7.4.2 is used at https://github.com/dafny-lang/dafny/blob/v3.9.1/Source/DafnyRuntime/DafnyRuntimeJava/gradle/wrapper/gradle-wrapper.properties
Officially, that is compatible up to Java 17.
dotnet@6
andopenjdk@17
gradle
build dependency sincedafny
runs ./gradlew instead of gradle command sogradle
dependency is not usedbrew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?Split from #115365.