Skip to content

Commit

Permalink
TECH: Moved legal documents copying to convention
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikitae57 committed Aug 24, 2023
1 parent 4fc315c commit 4ee03cb
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 40 deletions.
10 changes: 0 additions & 10 deletions allure-support/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ plugins {
id("convention.legal-documents")
}

// TODO: move to publishing convention
android {
libraryVariants.configureEach {
packageLibraryProvider.configure {
from("$rootDir/LICENSE.txt")
from("NOTICE.txt")
}
}
}

publish {
artifactId.set("kaspresso-allure-support")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import com.android.build.gradle.LibraryExtension
import com.kaspersky.kaspresso.publication.KotlinLibraryPublishExtension

plugins {
id("com.android.library")
id("convention.publication-base")
}

Expand All @@ -26,3 +27,12 @@ publishing {
}
}
}

android {
libraryVariants.configureEach {
packageLibraryProvider.configure {
from("$rootDir/LICENSE.txt")
from("NOTICE.txt")
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import com.kaspersky.kaspresso.publication.KotlinLibraryPublishExtension

plugins {
id("convention.publication-base")
`java-library`
}

plugins.withId("kotlin") {
Expand All @@ -25,3 +26,13 @@ publishing {
}
}
}

sourceSets {
main {
resources {
srcDirs(".", "$rootDir")
include("NOTICE.txt")
include("LICENSE.txt")
}
}
}
10 changes: 0 additions & 10 deletions compose-support/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ plugins {
id("convention.legal-documents")
}

// TODO: move to publishing convention
android {
libraryVariants.configureEach {
packageLibraryProvider.configure {
from("$rootDir/LICENSE.txt")
from("NOTICE.txt")
}
}
}

publish {
artifactId.set("kaspresso-compose-support")
}
Expand Down
10 changes: 0 additions & 10 deletions kaspresso/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ plugins {
id("convention.legal-documents")
}

// TODO: move to publishing convention
android {
libraryVariants.configureEach {
packageLibraryProvider.configure {
from("$rootDir/LICENSE.txt")
from("NOTICE.txt")
}
}
}

publish {
artifactId.set("kaspresso")
}
Expand Down
10 changes: 0 additions & 10 deletions kautomator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ plugins {
id("convention.legal-documents")
}

// TODO: move to publishing convention
android {
libraryVariants.configureEach {
packageLibraryProvider.configure {
from("$rootDir/LICENSE.txt")
from("NOTICE.txt")
}
}
}

publish {
artifactId.set("kautomator")
}
Expand Down

0 comments on commit 4ee03cb

Please sign in to comment.