forked from JetBrains-Research/npy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (70 loc) · 1.76 KB
/
build.gradle
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
buildscript {
ext.kotlin_version = '1.0.+'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.9.+"
}
}
plugins {
id 'com.jfrog.bintray' version '1.6'
}
apply plugin: 'kotlin'
apply plugin: 'maven-publish'
apply plugin: 'org.jetbrains.dokka'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testCompile 'junit:junit:4.+'
}
dokka {
moduleName = "$version"
outputFormat = 'gfm'
outputDirectory = "$rootDir/docs"
linkMapping {
dir = 'src/main/kotlin'
url = "https://github.com/JetBrains-Research/npy/blob/${version}/src/main/kotlin"
suffix = '#L'
}
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
publishing {
group = 'org.jetbrains.bio'
version = project.version
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.bintrayUser : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayKey') ? project.bintrayKey : System.getenv('BINTRAY_KEY')
publications = ['mavenJava']
pkg {
repo = 'maven'
name = 'npy'
userOrg = "jetbrains-research"
licenses = ['MIT']
version {
name = project.version.toString()
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.1'
}