@@ -11,14 +11,10 @@ buildscript {
11
11
}
12
12
13
13
dependencies {
14
- classpath ' com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0 '
14
+ classpath ' com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.2 '
15
15
}
16
16
}
17
17
18
- dokka {
19
- outputDirectory = " $rootDir /docs/api"
20
- }
21
-
22
18
task sourcesJar (type : Jar , dependsOn : classes) {
23
19
classifier = ' sources'
24
20
from sourceSets. main. allSource
@@ -35,49 +31,30 @@ task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
35
31
}
36
32
37
33
artifacts {
38
- archives sourcesJar
39
34
archives javadocJar
35
+ archives sourcesJar
40
36
}
41
37
42
- install {
43
- repositories. mavenInstaller {
44
- pom. project {
45
- licenses {
46
- license {
47
- name ' The Apache Software License, Version 2.0'
48
- url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
49
- distribution ' repo'
50
- }
51
- }
52
- scm {
53
- connection " https://github.com/ajalt/clikt.git"
54
- url " https://github.com/ajalt/clikt"
55
- }
56
- developers {
57
- developer {
58
- name ' AJ Alt'
59
- }
60
- }
61
- }
62
- }
38
+ dokka {
39
+ outputDirectory = " $rootDir /docs/api"
63
40
}
64
41
65
- bintray {
66
- user = project. hasProperty(' bintray.user' ) ? project. property(' bintray.user' ) : ' '
67
- key = project. hasProperty(' bintray.apikey' ) ? project. property(' bintray.apikey' ) : ' '
68
- configurations = [' archives' ]
69
- pkg {
70
- repo = ' maven'
71
- name = ' clikt'
72
- licenses = [' Apache-2.0' ]
73
- vcsUrl = " https://github.com/ajalt/clikt.git"
74
-
75
- version {
76
- name = project. version
77
- desc = project. description
78
- released = new Date ()
79
- vcsTag = project. version
80
- }
42
+ ext {
43
+ pkgName = ' clikt'
44
+ pkgDesc = ' Intuitive command line interface parsing for Kotlin'
45
+ githubRepo = ' github.com/ajalt/clikt'
46
+ pkgLicense = ' Apache-2.0'
47
+ pkgLicenseUrl = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
48
+ devInfo = {
49
+ id ' ajalt'
50
+ name ' AJ Alt'
51
+ url ' https://github.com/ajalt'
81
52
}
53
+ bintrayUser = System . getenv(' BINTRAY_USER' )
54
+ bintrayKey = System . getenv(' BINTRAY_API_KEY' )
55
+ mavenUserToken = System . getenv(' MAVEN_USER_TOKEN' )
56
+ mavenUserPass = System . getenv(' MAVEN_USER_PASS' )
57
+ deployDryRun = false
82
58
}
83
59
60
+ apply from : new File (rootDir, ' deploy.gradle' )
0 commit comments