Skip to content

Commit

Permalink
#20: Switch to Apache 2.0 license
Browse files Browse the repository at this point in the history
 - fill artifacts' manifests accurately
  • Loading branch information
eparovyshnaya committed Jun 12, 2020
1 parent 8a13046 commit 75728bc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
17 changes: 13 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ tasks.jacocoTestReport {
}
}

tasks.withType(Jar::class) {
tasks.jar {
extendManifest(manifest)
}

tasks.withType(Jar::class) {
extendManifestShort(manifest)
from("README.md", "LICENSE")
}

Expand All @@ -91,9 +95,6 @@ tasks.getByName("sourcesJar") {

fun extendManifest(mf: Manifest) {
mf.attributes(
"Group" to project.group,
"Artifact" to project.name,
"Version" to project.version,
"Bundle-Vendor" to "ArSysOp",
"Bundle-Name" to "ru.arsysop.liho",
"Bundle-SymbolicName" to "ru.arsysop.liho",
Expand All @@ -108,6 +109,14 @@ fun extendManifest(mf: Manifest) {
)
}

fun extendManifestShort(mf: Manifest) {
mf.attributes(
"Group" to project.group,
"Artifact" to project.name,
"Version" to project.version
)
}

publishing {
publications {
repositories {
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pluginManagement {
mavenLocal()
jcenter()
maven(url = "https://dl.bintray.com/arsysop/lang")
maven(url = "https://dl.bintray.com/arsysop/liho")
}
resolutionStrategy {
eachPlugin {
Expand Down

0 comments on commit 75728bc

Please sign in to comment.