Skip to content

Commit

Permalink
add license to gradle plugin jar
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Aug 3, 2023
1 parent c03eff2 commit 21c6ab7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ jar {
}
}

jar.dependsOn('copyLicenseToBuildResources')

tasks.register('copyLicenseToBuildResources', Copy) {
from layout.projectDirectory.file("../LICENSE")
from layout.projectDirectory.file("../NOTICE")
from layout.projectDirectory.file("../DISCLAIMER")
into layout.buildDirectory.dir("resources/main/META-INF")
}

repositories {
mavenCentral()
}
Expand Down

0 comments on commit 21c6ab7

Please sign in to comment.