Skip to content

Commit

Permalink
Merge pull request #100 from ajoberstar/bug
Browse files Browse the repository at this point in the history
patch: Fix no such file or directory during commit
  • Loading branch information
ajoberstar authored Aug 14, 2022
2 parents df48274 + fa8aa9e commit 58699af
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("org.ajoberstar.defaults.gradle-plugin")
groovy
id("groovy")

id("org.ajoberstar.stutter")
id("org.ajoberstar.grgit")
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pluginManagement {
id("org.ajoberstar.reckon") version "0.16.1"
id("org.ajoberstar.stutter") version "0.7.1"

id("com.diffplug.spotless") version "6.3.0"
id("com.diffplug.spotless") version "6.9.1"
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.gradle.api.provider.Provider;
import org.gradle.api.tasks.Copy;
import org.gradle.api.tasks.TaskProvider;
import org.gradle.util.GradleVersion;

public class GitPublishPlugin implements Plugin<Project> {
@Override
Expand Down Expand Up @@ -82,6 +83,11 @@ private TaskProvider<Copy> createCopyTask(Project project, GitPublication public
task.setDescription("Copy " + publication.getName() + " publication contents to be published to git.");
task.with(publication.getContents());
task.into(publication.getRepoDir());

// do not track state added in Gradle 7.3
if (GradleVersion.version("7.3").compareTo(GradleVersion.current()) <= 0) {
task.doNotTrackState("Tracked by Git instead");
}
});
}

Expand Down
4 changes: 2 additions & 2 deletions stutter.lockfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# DO NOT MODIFY: Generated by Stutter plugin.
java11=7.0.2,7.4
java17=7.3.3,7.4
java11=7.0.2,7.5.1
java17=7.3.3,7.5.1

0 comments on commit 58699af

Please sign in to comment.