@@ -15,11 +15,11 @@ description 'Kotlin experimental immutable collection interfaces and implementat
15
15
allprojects {
16
16
apply plugin : ' kotlin'
17
17
group = ' org.jetbrains.kotlinx'
18
- version = ' 0.1-SNAPSHOT'
18
+ version = project . properties[ " deployVersion " ] ?: ' 0.1-SNAPSHOT'
19
19
20
20
repositories {
21
21
mavenCentral()
22
- maven { url ' http://dl.bintray.com/kotlin/kotlin-eap-1.1 ' }
22
+ jcenter()
23
23
}
24
24
25
25
dependencies {
@@ -88,22 +88,24 @@ artifacts {
88
88
}
89
89
90
90
signing {
91
- required { signatory != null }
91
+ required { (project . properties[ " signingRequired " ] ?: false ) }
92
92
sign configurations. archives
93
93
}
94
94
95
+ signArchives {
96
+ enabled signing. required
97
+ }
98
+
95
99
uploadArchives {
96
100
repositories {
97
101
mavenDeployer {
98
102
beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
99
- repository(url : " file://${ buildDir} /repo" )
100
- // repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
101
- // authentication(userName: ossrhUsername, password: ossrhPassword)
102
- // }
103
- //
104
- // snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
105
- // authentication(userName: ossrhUsername, password: ossrhPassword)
106
- // }
103
+ repository(url : project. properties[" deployRepoUrl" ] ?: " file://${ rootProject.buildDir} /repo" ) {
104
+ authentication(
105
+ userName : project. properties[" deployRepoUsername" ],
106
+ password : project. properties[" deployRepoPassword" ]
107
+ )
108
+ }
107
109
pom. project {
108
110
name " ${ project.group} :${ project.name} "
109
111
packaging ' jar'
@@ -133,6 +135,8 @@ uploadArchives {
133
135
}
134
136
}
135
137
}
138
+
139
+ task publish (dependsOn : uploadArchives)
136
140
/*
137
141
138
142
// extract signature file and give them proper name
0 commit comments