diff --git a/src/main/java/org/ajoberstar/gradle/git/publish/GitPublishPlugin.java b/src/main/java/org/ajoberstar/gradle/git/publish/GitPublishPlugin.java index 32b0748..03de24d 100644 --- a/src/main/java/org/ajoberstar/gradle/git/publish/GitPublishPlugin.java +++ b/src/main/java/org/ajoberstar/gradle/git/publish/GitPublishPlugin.java @@ -82,6 +82,11 @@ private TaskProvider 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"); + } }); }