Skip to content

Commit

Permalink
Merge pull request #17 from mbeddr/16-add-a-spdx-compliant-license-an…
Browse files Browse the repository at this point in the history
…d-organization-into-the-created-pom-for-a-published-mps-pom

#16 add license and organization info to the published pom
  • Loading branch information
KemalSoysal authored Dec 16, 2023
2 parents e773270 + 1c31197 commit f6c3f94
Showing 1 changed file with 43 additions and 9 deletions.
52 changes: 43 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,23 @@ task packageAnnotations(type: Jar, dependsOn: unzipMPS) {
from zipTree("$mpsUnpackedDir/lib/annotations.jar")
}

def additionalPomInfo = {
licenses {
// official SPDX identifier
// see https://spdx.org/licenses/ for list
license {
name = "Apache-2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
comments = "A business-friendly OSS license"
distribution = "repo"
}
}
organization {
name = "JetBrains s.r.o"
url = "https://www.jetbrains.com"
}
}

publishing {
repositories {
maven {
Expand All @@ -259,16 +276,16 @@ publishing {
repositories {
if (project.hasProperty("artifacts.itemis.cloud.user") && project.hasProperty("artifacts.itemis.cloud.pw")) {
maven {
name = "itemisCloud"
url = project.version.contains("SNAPSHOT")
? uri("https://artifacts.itemis.cloud/repository/maven-mps-snapshots/")
: uri("https://artifacts.itemis.cloud/repository/maven-mps-releases/")
credentials {
username = project.findProperty("artifacts.itemis.cloud.user")
password = project.findProperty("artifacts.itemis.cloud.pw")
}
name = "itemisCloud"
url = project.version.contains("SNAPSHOT")
? uri("https://artifacts.itemis.cloud/repository/maven-mps-snapshots/")
: uri("https://artifacts.itemis.cloud/repository/maven-mps-releases/")
credentials {
username = project.findProperty("artifacts.itemis.cloud.user")
password = project.findProperty("artifacts.itemis.cloud.pw")
}
}
}
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/mbeddr/build.publish.mps")
Expand All @@ -287,73 +304,84 @@ publishing {
artifactId 'mps'
version mpsBuild
artifact publishMPS
pom additionalPomInfo
}
mpsCore(MavenPublication) {
groupId 'com.jetbrains'
artifactId 'mps-core'
version mpsBuild
artifact packageMpsCore
artifact packageMpsCoreSources
pom additionalPomInfo
}
mpsEditor(MavenPublication) {
groupId 'com.jetbrains'
artifactId 'mps-editor'
version mpsBuild
artifact packageMpsEditor
pom additionalPomInfo
}
mpsEditorApi(MavenPublication) {
groupId 'com.jetbrains'
artifactId 'mps-editor-api'
version mpsBuild
artifact packageMpsEditorApi
pom additionalPomInfo
}
mpsEditorRuntime(MavenPublication) {
groupId 'com.jetbrains'
artifactId 'mps-editor-runtime'
version mpsBuild
artifact packageMpsEditorRuntime
pom additionalPomInfo
}
mpsOpenApi(MavenPublication) {
groupId 'com.jetbrains'
artifactId 'mps-openapi'
version mpsBuild
artifact packageMpsOpenApi
artifact packageMpsOpenApiSources
pom additionalPomInfo
}
mpsTool(MavenPublication) {
groupId 'com.jetbrains'
artifactId 'mps-tool'
version mpsBuild
artifact packageMpsTool
artifact packageMpsToolSources
pom additionalPomInfo
}
mpsRun(MavenPublication) {
groupId 'com.jetbrains'
artifactId 'mps-run'
version mpsBuild
artifact packageMpsRun
//artifact packageMpsRunSources
pom additionalPomInfo
}
mpsEnvironment(MavenPublication) {
groupId 'com.jetbrains'
artifactId 'mps-environment'
version mpsBuild
artifact packageMpsEnvironment
artifact packageMpsEnvironmentSources
pom additionalPomInfo
}
mpsPlatform(MavenPublication) {
groupId 'com.jetbrains'
artifactId 'mps-platform'
version mpsBuild
artifact packageMpsPlatform
artifact packageMpsPlatformSources
pom additionalPomInfo
}
util(MavenPublication) {
groupId 'com.jetbrains'
artifactId 'util'
version mpsBuild
artifact packageUtil
artifact packageUtilSources
pom additionalPomInfo
}
/*extensions(MavenPublication) {
groupId 'com.jetbrains'
Expand All @@ -367,6 +395,7 @@ publishing {
version mpsBuild
artifact packageMpsConsoleIdeCommandsRuntime
artifact packageMpsConsoleIdeCommandsRuntimeSources
pom additionalPomInfo
}
// mpsMessaging(MavenPublication) {
// groupId 'com.jetbrains'
Expand All @@ -381,20 +410,23 @@ publishing {
version mpsBuild
artifact packageMpsModelchecker
artifact packageMpsModelcheckerSources
pom additionalPomInfo
}
mpsHttpsupportRuntime(MavenPublication) {
groupId 'com.jetbrains'
artifactId 'mps-httpsupport-runtime'
version mpsBuild
artifact packageMpsHttpsupportRuntime
artifact packageMpsHttpsupportRuntimeSources
pom additionalPomInfo
}
mpsProjectCheck(MavenPublication) {
groupId 'com.jetbrains'
artifactId 'mps-project-check'
version mpsBuild
artifact packageMpsProjectCheck
artifact packageMpsProjectCheckSources
pom additionalPomInfo
}
/*
platformApi(MavenPublication) {
Expand All @@ -409,12 +441,14 @@ publishing {
artifactId 'mps-workbench'
version mpsBuild
artifact packageMpsWorkbench
pom additionalPomInfo
}
annotations(MavenPublication) {
groupId 'com.jetbrains'
artifactId 'annotations'
version mpsBuild
artifact packageAnnotations
pom additionalPomInfo
}
}
}

0 comments on commit f6c3f94

Please sign in to comment.