Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the license information to the maven publications #84

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ allprojects {
mavenCentral()
}

pluginManager.withPlugin('maven-publish', {
// If publishing is set up, add the MontiCore 3-Level License Model to every publication
publishing.publications.configureEach {
pom {
licenses {
license {
name = 'MontiCore 3-Level License Model'
url = 'https://monticore.github.io/monticore/00.org/Licenses/LICENSE-MONTICORE-3-LEVEL/'
}
}
}
}
})

}

subprojects {
Expand Down
11 changes: 11 additions & 0 deletions monticore-generator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,15 @@ publishing {
}
}
}
// Add the license information to the publication
publications.configureEach {
pom {
licenses {
license {
name = 'MontiCore 3-Level License Model'
url = 'https://monticore.github.io/monticore/00.org/Licenses/LICENSE-MONTICORE-3-LEVEL/'
}
}
}
}
}
Loading