Skip to content

Commit

Permalink
Add license to JAR
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritssilvis committed Mar 19, 2023
1 parent 8d9ceda commit d5cbe38
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions api/java-darts-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ nexusPublishing {

tasks {
processResources {
dependsOn("copyReadme")
dependsOn("copyResources")
}

jar {
Expand All @@ -108,8 +108,8 @@ tasks {
}
}

tasks.register<Copy>("copyReadme") {
tasks.register<Copy>("copyResources") {
from(projectDir)
into(sourceSets.main.get().output.resourcesDir.toString())
include("README.md")
include("LICENSE.md", "README.md")
}
6 changes: 3 additions & 3 deletions cli/java-darts-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ nexusPublishing {

tasks {
processResources {
dependsOn("copyReadme")
dependsOn("copyResources")
}

compileJava {
Expand Down Expand Up @@ -142,10 +142,10 @@ tasks {
}
}

tasks.register<Copy>("copyReadme") {
tasks.register<Copy>("copyResources") {
from(projectDir)
into(sourceSets.main.get().output.resourcesDir.toString())
include("README.md")
include("LICENSE.md", "README.md")
}

tasks.register<Delete>("cleanDist") {
Expand Down
6 changes: 3 additions & 3 deletions core/java-darts-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ nexusPublishing {

tasks {
processResources {
dependsOn("copyReadme")
dependsOn("copyResources")
}

test {
Expand All @@ -119,8 +119,8 @@ tasks {
}
}

tasks.register<Copy>("copyReadme") {
tasks.register<Copy>("copyResources") {
from(projectDir)
into(sourceSets.main.get().output.resourcesDir.toString())
include("README.md")
include("LICENSE.md", "README.md")
}

0 comments on commit d5cbe38

Please sign in to comment.