File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ buildscript {
3232 ext {
3333 guavaVersion = ' 20.0'
3434 protobufGradlePluginVerison = ' 0.8.0'
35- spineVersion = ' 0.6.16-SNAPSHOT '
35+ spineVersion = ' 0.7.0 '
3636 // TODO:2016-12-12:alexander.yevsyukov: Advance the plug-in version together with all the components and change
3737 // the version of the dependency below to `spineVersion` defined above.
3838 spineProtobufPluginVersion = ' 0.6.6-SNAPSHOT'
Original file line number Diff line number Diff line change @@ -59,11 +59,31 @@ projectsToPublish.each {
5959 project(" :$it " ) { final currentProject ->
6060 apply plugin : ' maven-publish'
6161
62+ // Artifact IDs are composed as "spine-<project.name>-core". Example:
63+ //
64+ // "spine-server-core"
65+ //
66+ // That helps to distinguish resulting JARs in the final assembly, such as WAR package.
67+ // In addition, "-core" suffix serves as a type marker, helping to identify them among similar modules.
68+ //
69+ // Example:
70+ //
71+ // "spine-server-core" (core Spine functionality for back-end)
72+ // vs.
73+ // "spine-server-gae" (Google AppEngine-based functionality for back-end)
74+ //
75+ // However, the artifact IDs for "users" and "values" domains do not have "-core" suffix,
76+ // as they do not require any additional identification.
77+ //
78+ final boolean shouldAddSuffix = ! currentProject. name. equals(" users" ) && ! currentProject. name. equals(" values" )
79+ final String artifactIdSuffix = shouldAddSuffix ? " -core" : " "
80+ final String artifactIdForPublishing = " spine-${ currentProject.name} " + artifactIdSuffix
81+
6282 publishing {
6383 publications {
6484 mavenJava(MavenPublication ) {
6585 groupId = " ${ group} "
66- artifactId = " ${ currentProject.name } "
86+ artifactId = " ${ artifactIdForPublishing } "
6787 version = " ${ currentProject.version} "
6888
6989 from components. java
You can’t perform that action at this time.
0 commit comments