Skip to content

Commit fec8f4a

Browse files
committed
preparePublication task requires project version to be set
1 parent f6574a4 commit fec8f4a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

libraries/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ buildscript {
1010
}
1111
}
1212

13-
apply from: 'commonConfiguration.gradle'
14-
1513
allprojects {
1614
group = 'org.jetbrains.kotlin'
1715
version = "$kotlin_version"
1816
}
1917

18+
apply from: 'commonConfiguration.gradle'
19+
2020
subprojects {
2121

2222
repositories {

libraries/commonConfiguration.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ ext.manifestAttributes = { Manifest manifest, Project project, String component
5656

5757
task preparePublication {
5858
def properties = project.properties
59+
assert project.version != 'unspecified'
5960

6061
Map<String, String> repositoryProviders = ['sonatype-nexus-staging' : 'sonatype', 'sonatype-nexus-snapshots' : 'sonatype']
6162
project.ext.isRelease = !project.version.toString().contains('-SNAPSHOT')

libraries/tools/gradle-tools/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ buildscript {
1010
}
1111
}
1212

13-
apply from: "${kotlin_root}/libraries/commonConfiguration.gradle"
14-
1513
allprojects {
1614
group = 'org.jetbrains.kotlin'
1715
version = "$kotlin_version"
1816
}
1917

18+
apply from: "${kotlin_root}/libraries/commonConfiguration.gradle"
19+
2020
subprojects {
2121
repositories {
2222
mavenCentral()

0 commit comments

Comments
 (0)