|
1 | 1 | ext { |
2 | 2 | isCiBuild = System.getenv('CI') |
3 | 3 | isSnapshot = projectVersion.endsWith('SNAPSHOT') |
4 | | - isReleaseVersion = !isSnapshot |
5 | 4 | excludeUnusedTransDeps = findProperty('excludeUnusedTransDeps') |
6 | 5 | } |
7 | 6 |
|
@@ -48,32 +47,29 @@ allprojects { |
48 | 47 | } |
49 | 48 | } |
50 | 49 |
|
51 | | -if (isReleaseVersion) { |
| 50 | +// Workaround needed for nexus publishing bug |
| 51 | +// version and group must be specified in the root project |
| 52 | +// https://github.com/gradle-nexus/publish-plugin/issues/310 |
| 53 | +version = projectVersion |
| 54 | +group = 'this.will.be.overridden' |
52 | 55 |
|
53 | | - // Workaround needed for nexus publishing bug |
54 | | - // version and group must be specified in the root project |
55 | | - // https://github.com/gradle-nexus/publish-plugin/issues/310 |
56 | | - version = projectVersion |
57 | | - group = 'this.will.be.overridden' |
58 | | - |
59 | | - def publishedProjects = [ |
60 | | - 'grails-datastore-async', |
61 | | - 'grails-datastore-core', |
62 | | - 'grails-datastore-gorm', |
63 | | - 'grails-datastore-gorm-async', |
64 | | - //'grails-datastore-gorm-rx', |
65 | | - 'grails-datastore-gorm-support', |
66 | | - 'grails-datastore-gorm-tck', |
67 | | - 'grails-datastore-gorm-test', |
68 | | - 'grails-datastore-gorm-validation', |
69 | | - 'grails-datastore-web', |
70 | | - 'grails-gorm-testing-support', |
71 | | - ] |
72 | | - subprojects { |
73 | | - if (name in publishedProjects) { |
74 | | - // This has to be applied here |
75 | | - apply plugin: 'org.grails.grails-publish' |
76 | | - } |
| 56 | +def publishedProjects = [ |
| 57 | + 'grails-datastore-async', |
| 58 | + 'grails-datastore-core', |
| 59 | + 'grails-datastore-gorm', |
| 60 | + 'grails-datastore-gorm-async', |
| 61 | + //'grails-datastore-gorm-rx', |
| 62 | + 'grails-datastore-gorm-support', |
| 63 | + 'grails-datastore-gorm-tck', |
| 64 | + 'grails-datastore-gorm-test', |
| 65 | + 'grails-datastore-gorm-validation', |
| 66 | + 'grails-datastore-web', |
| 67 | + 'grails-gorm-testing-support', |
| 68 | +] |
| 69 | +subprojects { |
| 70 | + if (name in publishedProjects) { |
| 71 | + // This has to be applied here |
| 72 | + apply plugin: 'org.grails.grails-publish' |
77 | 73 | } |
78 | 74 | } |
79 | 75 |
|
|
0 commit comments