Skip to content
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

Move to new style of build definition. #59

Closed
wants to merge 1 commit into from

Conversation

dragos
Copy link
Contributor

@dragos dragos commented Apr 26, 2018

This is a required step to migration to Sbt 1, but it’s valuable on its own. I find the .value based syntax a lot clearer than the old (deprecated) operator syntax.

This commit doesn’t change semantics of the build.

This is a required step to migration to Sbt 1, but it’s valuable on its own. I find the `.value` based syntax a lot clearer than the old (deprecated) operator syntax.

This commit doesn’t change semantics of the build.
gccKey := gccTask.value,
z3Key := z3Task.value,
Keys.`package` in Compile := packageTask.value,
unmanagedJars in Compile += Attributed.blank(z3JarFile),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line doesn't work as intended (but it's the same as before): the z3JarFile is just a string, and if the Z3 project wasn't compiled yet, unamangedJars will contain the right path to com.microsoft.z3.jar but the file won't be there, and compilation will simply fail. It would work the next time though, if somehow Z3 was built at least once and the jar is there.

A potential fix might be to make the z3JarFile be a task that dependsOn z3.value

@dragos
Copy link
Contributor Author

dragos commented Apr 26, 2018

I removed the old Build file, as that was also deprecated. Now the whole build is contained inside build.sbt. Most other changes are purely mechanical translation of operator syntax to the new .value syntax.

@romac
Copy link
Member

romac commented Jun 18, 2019

Superseded by #64

@romac romac closed this Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants