Skip to content

Commit

Permalink
Merge pull request #3 from arsysop/2-mvn-coordnates
Browse files Browse the repository at this point in the history
#2: Fix release artifacts' maven coordinates
  • Loading branch information
eparovyshnaya authored Jun 13, 2020
2 parents 4c98bc8 + 776fde6 commit 7ceb1ca
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
28 changes: 16 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ plugins {
`maven-publish`
}

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

project.also {
it.description = "Java lang extensions for orthodox OOP coding"
}
repositories {
mavenCentral()
}
Expand Down Expand Up @@ -53,7 +50,6 @@ tasks.jacocoTestReport {
html.isEnabled = false
xml.isEnabled = true
xml.destination = file("$buildDir/test-coverage.xml")

}
}

Expand All @@ -68,19 +64,27 @@ 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) {
val copyright: String by project
val bundle: String by project
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 bundle,
"Bundle-Version" to project.version,
"Bundle-Vendor" to "ArSysOp",
"Bundle-RequiredExecutionEnvironment" to "JavaSE-1.8"
"Bundle-RequiredExecutionEnvironment" to "JavaSE-1.8",
"Bundle-Copyright" to copyright,
"Export-Package" to "ru.arsysop.lang.function;version=${project.version}",
"Group" to project.group,
"Artifact" to project.name,
"Version" to project.version
)
}

Expand All @@ -94,8 +98,8 @@ publishing {
register<MavenPublication>("gpr") {
from(components["java"])
pom {
name.set(project.name)
description.set(project.description)
val explanation: String by project
description.set(explanation)
url.set("https://github.com/ArSysOp/lang")
licenses {
license {
Expand Down
6 changes: 6 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
##

copyright = Copyright (c) 2020 ArSysOp and others. This program and the accompanying materials are made available under the terms of the MIT License which is available at https://spdx.org/licenses/MIT.html. SPDX-License-Identifier: MIT
bundle = ArSysOp Lang
explanation = Java lang extensions for orthodox OOP coding

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 7ceb1ca

Please sign in to comment.