Giter VIP home page Giter VIP logo

Comments (5)

stefan-huettemann avatar stefan-huettemann commented on June 27, 2024 2

Having same problem on some (!) of our repos:

[ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':server:generateGitProperties'.
[ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: /opt/atlassian/pipelines/agent/build/.git/refs/remotes/origin

Note: it still works with 1.4.17

from gradle-git-properties.

n0mer avatar n0mer commented on June 27, 2024 1

after quick investigation - problem appeared when current working directory does not match, let's say, jar.baseName (e.g. in jenkins - where directory named after jenkins job, not after jar.baseName).

This PR fixes the issue - thanks for the valuable contribution!

from gradle-git-properties.

 avatar commented on June 27, 2024

Hey guys - any update on this issue?

from gradle-git-properties.

ka1eka avatar ka1eka commented on June 27, 2024

Hi everybody,
I have created a PR, which fixes the issue: #50
As a workaround (until this PR is merged) you may use the following procedure:

  1. build the plugin locally from my fork:
./gradlew build
  1. take gradle-git-properties-1.4.20.jar from build/libs folder and put it into you project repo into some folder. E.g. I put it into gradle/plugins/ folder.
  2. Adjust your build.gradle:
buildscript {
	//...
	dependencies {
		//...
		classpath 'org.ajoberstar:gradle-git:1.4.2'
		classpath files('gradle/plugins/gradle-git-properties-1.4.20.jar')
	}
}

org.ajoberstar:gradle-git:1.4.2 - is the only dependency which is used by the plugin.

from gradle-git-properties.

n0mer avatar n0mer commented on June 27, 2024

@ka1eka i can build fresh release, gimme a sec

upd: done Activating plugin com.gorylenko.gradle-git-properties version 1.4.21

from gradle-git-properties.

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.