Skip to content

Commit

Permalink
#2: Fix release artifacts' maven coordinates
Browse files Browse the repository at this point in the history
 - fix `group` and `artifactId`
 - add `LICENSE` file to all the artifacts
  • Loading branch information
eparovyshnaya committed Jun 13, 2020
1 parent 4c98bc8 commit 8411e7c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ plugins {
`maven-publish`
}

group = "ru.arsysop"
group = "ru.arsysop.lang"
version = "0.1"

project.also {
Expand Down Expand Up @@ -53,7 +53,6 @@ tasks.jacocoTestReport {
html.isEnabled = false
xml.isEnabled = true
xml.destination = file("$buildDir/test-coverage.xml")

}
}

Expand All @@ -68,19 +67,24 @@ tasks.getByName("sourcesJar") {
from(
sourceSets.getByName(SourceSet.MAIN_SOURCE_SET_NAME).allSource,
sourceSets.getByName(SourceSet.TEST_SOURCE_SET_NAME).allSource,
file("README.md")
file("README.md"),
file("LICENSE")
)
}
}

fun extendManifest(mf: Manifest): Unit {
fun extendManifest(mf: Manifest) {
mf.attributes(
"Bundle-ManifestVersion" to "2",
"Bundle-SymbolicName" to project.name,
"Bundle-Name" to project.name,
"Bundle-SymbolicName" to "ru.arsysop.lang",
"Bundle-Name" to "ru.arsysop.lang",
"Bundle-Version" to project.version,
"Bundle-Vendor" to "ArSysOp",
"Bundle-RequiredExecutionEnvironment" to "JavaSE-1.8"
"Bundle-RequiredExecutionEnvironment" to "JavaSE-1.8",
"Export-Package" to "ru.arsysop.lang.function;version=${project.version}",
"Group" to project.group,
"Artifact" to project.name,
"Version" to project.version
)
}

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
* Contributors:
* ArSysOp - initial API and implementation
*******************************************************************************/
rootProject.name = "ru.arsysop.lang"
rootProject.name = "lang"

0 comments on commit 8411e7c

Please sign in to comment.