File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed
src/main/kotlin/io/deepmedia/tools/grease Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ plugins {
44}
55
66group = " io.deepmedia.tools"
7- version = " 0.7 .0"
7+ version = " 0.3 .0"
88
99gradlePlugin {
1010 plugins {
@@ -77,13 +77,4 @@ deployer {
7777 token = secret(" GHUB_PERSONAL_ACCESS_TOKEN" )
7878 }
7979 }
80- }
81-
82- publishing {
83- repositories {
84- maven {
85- name = " Local"
86- url = uri(rootProject.layout.buildDirectory.dir(" grease_pub" ))
87- }
88- }
8980}
Original file line number Diff line number Diff line change @@ -536,6 +536,19 @@ open class GreasePlugin : Plugin<Project> {
536536 mustRunAfter(bundleLibraryTask)
537537 finalizedBy(greaseShadowTask)
538538 }
539+ greaseShadowTask.configure {
540+ mustRunAfter(bundleLibraryTask)
541+ }
542+ target.plugins.withId(" org.gradle.maven-publish" ) {
543+ target.tasks.withType(PublishToMavenRepository ::class .java) {
544+ val publication = publication
545+ if (publication is DefaultMavenPublication ) {
546+ if (creationConfig.name == publication.component.get().name) {
547+ dependsOn(greaseShadowTask)
548+ }
549+ }
550+ }
551+ }
539552 }
540553
541554 private fun replacePackagesInFile (
You can’t perform that action at this time.
0 commit comments