-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
97 lines (76 loc) · 1.89 KB
/
build.gradle
File metadata and controls
97 lines (76 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
buildscript {
ext.kotlin_version = '1.3.72'
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "com.jfrog.bintray" version "1.8.1"
}
//apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'maven'
apply plugin: 'maven-publish'
repositories {
mavenCentral()
jcenter()
}
group = 'com.github.holgerbrandl'
version = '1.5'
// should not be needed
//dependencies {
// compileOnly "org.jetbrains.kotlin:kotlin-stdlib"
//}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar { classifier "sources" }
artifact javadocJar
// artifactId = 'kscript-annotations'
}
}
}
if (hasProperty('bintray_user') && hasProperty('bintray_key')) {
bintray {
// property must be set in ~/.gradle/gradle.properties
user = bintray_user
key = bintray_key
publications = ['maven'] //When uploading configuration files
dryRun = false //Whether to run this as dry-run, without deploying
publish = true // If version should be auto published after an upload
pkg {
repo = 'github'
name = 'kscript-annotations'
vcsUrl = 'https://github.com/holgerbrandl/kscript-annotations'
licenses = ['MIT']
publicDownloadNumbers = true
//Optional version descriptor
version {
name = project.version //Bintray logical version name
desc = '.'
released = new Date()
vcsTag = 'v' + project.version
}
}
}
}
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib")
}