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

Put Workflows Jar on a diet - exclude all corda runtime files #206

Merged
merged 3 commits into from
Jun 8, 2020

Conversation

roastario
Copy link
Contributor

No description provided.

@roastario roastario force-pushed the inline_money_and_selection branch from d371c0c to 9d8134d Compare June 6, 2020 06:19
@roastario roastario requested review from chrisr3 and ischasny June 7, 2020 09:33
Copy link
Contributor

@chrisr3 chrisr3 left a comment

Choose a reason for hiding this comment

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

What is the point of all of this Evil Gradle Magic? (Other than ensuring that no-one will ever want to touch these build.gradle files ever again)

@@ -2,6 +2,11 @@ apply plugin: 'kotlin-jpa'
apply plugin: 'net.corda.plugins.quasar-utils'
apply plugin: 'net.corda.plugins.cordapp'


Copy link
Contributor

Choose a reason for hiding this comment

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

This entire file ... WTF?!
Why?

If there isn't an easier way of doing this then Gradle Must DIE!!!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's an edge case in our fatjarring.

We want to compile in the selection project, but the selection project cordaCompile Corda components, which when you don't use the jar approach results in the entire Corda runtime being included in the fatJar due to transitive dependencies.

The next step is to just move all the logic into workflows.. which I'm seriously considering.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, probably would make sense to do so, given that money and selection aren't separate cordapps anymore and unlikely to be used outside of the token sdk.

Copy link
Contributor

@ischasny ischasny left a comment

Choose a reason for hiding this comment

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

LGTM

@roastario roastario merged commit ad257bd into master Jun 8, 2020
@roastario roastario deleted the inline_money_and_selection branch June 22, 2020 08:41
roastario added a commit that referenced this pull request Sep 25, 2020
* Make redeem flow handlers open (#199)

* Make redeem flow handlers open to allow adding custom processing logic for redeemed tokens on the issuer`s side.

Make ObserverAwareFinalityFlowHandler return a SignedTransaction if one was received.

* Undo removing a flow

Co-authored-by: Stefano Franz <[email protected]>

* Put Workflows Jar on a diet - exclude all corda runtime files (#206)

* keep

* put workflows jar on a bit of a diet

* Add serialization env to OwnerMigration

* fix migration for 4.6

Co-authored-by: Andrius Dagys <[email protected]>
Co-authored-by: Stefano Franz <[email protected]>
Co-authored-by: Stefano Franz <[email protected]>
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.

3 participants