Skip to content

Commit

Permalink
build: Fix publication settings
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and aalmiray committed Aug 7, 2024
1 parent 8892048 commit 177f9a4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
:project-owner: kordamp
:project-name: enforcer-gradle-plugin
:project-group: org.kordamp.gradle
:project-version: 0.13.0
:project-version: 0.14.0
:plugin-id: {project-group}.enforcer

image:http://img.shields.io/github/actions/workflow/status/{project-owner}/{project-name}/early-access.yml?branch=master&logo=github&label=Build["Build Status", link="https://github.com/{project-owner}/{project-name}/actions"]
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.0-SNAPSHOT
0.13.0-SNAPSHOT
26 changes: 26 additions & 0 deletions plugins/enforcer-gradle-plugin/enforcer-gradle-plugin.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,29 @@ integrationTest {
].collect { "'${it.destinationDirectory.get().asFile.absolutePath}'" }
.join(',')
}

afterEvaluate {
def publishPluginJar = project.tasks.findByName('publishPluginJar')
def publishTask = project.tasks.findByName('publishMainPublicationToMavenLocal')
if (publishTask && publishPluginJar) publishTask.dependsOn(publishPluginJar)
publishTask = tasks.findByName('publishMainPublicationToLocalSnapshotRepository')
if (publishTask && publishPluginJar) publishTask.dependsOn(publishPluginJar)
publishTask = tasks.findByName('publishMainPublicationToLocalReleaseRepository')
if (publishTask && publishPluginJar) publishTask.dependsOn(publishPluginJar)

def publishPluginJavaDocsJar = project.tasks.findByName('publishPluginJavaDocsJar')
publishTask = project.tasks.findByName('publishMainPublicationToMavenLocal')
if (publishTask && publishPluginJavaDocsJar) publishTask.dependsOn(publishPluginJavaDocsJar)
publishTask = tasks.findByName('publishMainPublicationToLocalSnapshotRepository')
if (publishTask && publishPluginJavaDocsJar) publishTask.dependsOn(publishPluginJavaDocsJar)
publishTask = tasks.findByName('publishMainPublicationToLocalReleaseRepository')
if (publishTask && publishPluginJavaDocsJar) publishTask.dependsOn(publishPluginJavaDocsJar)

def publishPluginGroovyDocsJar = project.tasks.findByName('publishPluginGroovyDocsJar')
publishTask = project.tasks.findByName('publishMainPublicationToMavenLocal')
if (publishTask && publishPluginGroovyDocsJar) publishTask.dependsOn(publishPluginGroovyDocsJar)
publishTask = tasks.findByName('publishMainPublicationToLocalSnapshotRepository')
if (publishTask && publishPluginGroovyDocsJar) publishTask.dependsOn(publishPluginGroovyDocsJar)
publishTask = tasks.findByName('publishMainPublicationToLocalReleaseRepository')
if (publishTask && publishPluginGroovyDocsJar) publishTask.dependsOn(publishPluginGroovyDocsJar)
}

0 comments on commit 177f9a4

Please sign in to comment.