Code Monkey home page Code Monkey logo

Comments (4)

eshepelyuk avatar eshepelyuk commented on May 23, 2024

Let's consider following scenario. Your build is doing some file replacement to put version into them and then package into jar or war or whatever. So apparently you need your build to have already updated version before starting build target.

So I think the issue is about incorrect rollback procedure of plugin and not the design of behavior itself.

from gradle-release.

 avatar commented on May 23, 2024

I manually tested the git revert functionality the plugin is using and I think it may be incorrect. I failed a build using my above example and then manually ran..

git reset --hard gradle.properties

..and git replies..

fatal: Cannot do hard reset with paths.

So, if I got that right, I think removing gradle.properties as a parameter to that command would work. It'll reset everything though. If the goal is to only ever discard changes to the gradle.properties file, I think git checkout gradle.properties would work better.

from gradle-release.

townsfolk avatar townsfolk commented on May 23, 2024

I think the git reset --hard is a remnant of when we tried to revert the whole directory, but then changed to just wanting to revert only the properties file. I think using git checkout gradle.properties is the correct way of doing this. Thanks!

from gradle-release.

townsfolk avatar townsfolk commented on May 23, 2024

Uploaded a new snapshot that will revert the gradle.properties file properly now.

from gradle-release.

Related Issues (20)

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.