diff --git a/build.gradle.kts b/build.gradle.kts index 6d3af53..3dd3cd5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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() } @@ -53,7 +50,6 @@ tasks.jacocoTestReport { html.isEnabled = false xml.isEnabled = true xml.destination = file("$buildDir/test-coverage.xml") - } } @@ -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 ) } @@ -94,8 +98,8 @@ publishing { register("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 { diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..880d823 --- /dev/null +++ b/gradle.properties @@ -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 + \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index 2acaf3d..0667f0d 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -10,4 +10,4 @@ * Contributors: * ArSysOp - initial API and implementation *******************************************************************************/ -rootProject.name = "ru.arsysop.lang" +rootProject.name = "lang"