Coder Social home page Coder Social logo

Comments (6)

pabman avatar pabman commented on June 28, 2024

If you want to omit the buildscript then the only alternative I can think of is to run the mailmerger-cmdline as an actual command, rather than bringing it in as a dependency.

I've pushed up a branch https://github.com/distributev/mailmerger/tree/alternative

See the build.gradle in the watch2 folder for an example of what I mean.

from mailmerger.

distributev avatar distributev commented on June 28, 2024

Hello,
I tried to look at watch2 but I still see buildScript at the top. In any case I'm interested to tell me couple of examples for scripts types where buildScript section is mandatory and another set of example scripts where just by watching at the script content nothing related with "build" will be visible. I don't need you to write code only to tell me here when buildScript section is mandatory and when we can code gradle scripts without "build" assumptions.

from mailmerger.

pabman avatar pabman commented on June 28, 2024

Sorry, I'd not committed the changes to the branch. Should be there now.

https://github.com/distributev/mailmerger/blob/alternative/watch2/build.gradle

from mailmerger.

pabman avatar pabman commented on June 28, 2024

The buildscript section of a Gradle build.gradle file defines any dependencies required for Gradle to execute the build.
e.g. in https://github.com/distributev/mailmerger/blob/alternative/watch/build.gradle the mailmerger-cmdline dependency is required to use the MailMerger class directly in the buildscript.

In https://github.com/distributev/mailmerger/blob/alternative/watch2/build.gradle this dependency is not required as the location of the jar file is specified as a parameter to the build and runs a java -jar command via exec.

from mailmerger.

distributev avatar distributev commented on June 28, 2024

Please merge watch2 into the main branch. This is how I need - the server should only "wrap functionality" while being as independent as possible from the functionality which is being "wrapped" or deployed into the server.

from mailmerger.

pabman avatar pabman commented on June 28, 2024

watch2 has been merged into the main branch and become the main watch folder.

from mailmerger.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.