-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
136 lines (118 loc) · 3.06 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
buildscript {
ext.kotlin_version = '1.2.31'
ext.dokka_version = '0.9.16'
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}
//plugins {
// id "com.jfrog.bintray" version "1.7.3"
//}
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'maven-publish'
apply from: 'keystore.gradle'
apply plugin: 'com.jfrog.bintray'
version '0.1-ALPHA'
group 'com.tommypacker'
repositories {
mavenCentral()
jcenter()
maven {
url "http://dl.bintray.com/kyonifer/maven"
jcenter()
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "de.mpicbg.scicomp:krangl:0.9"
implementation group: "koma", name:"core", version:"0.11"
implementation group: "koma", name:"backend-matrix-ejml", version: "0.11"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
dokka {
outputFormat = 'html'
outputDirectory = "$buildDir/javadoc"
}
bintray {
user = 'tommypacker'
key = bintray_key
publish = true
override = true
publications = ['maven']
pkg {
repo = 'kotml'
name = 'kotml'
licenses = ['MIT']
vcsUrl = 'https://github.com/tommypacker/kotml'
version {
name = project.version
released = new Date()
vcsTag = "v${project.version}"
}
}
}
task sourcesJar(type: Jar, dependsOn: project.classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: project.javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar, javadocJar
}
def pomConfig = {
licenses {
license {
name "MIT License"
url "https://opensource.org/licenses/MIT"
distribution "repo"
}
}
developers {
developer {
id "tommypacker"
name "Thomas Yu"
email "[email protected]"
}
}
scm {
url "https://github.com/tommypacker/kotml"
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar {
classifier 'sources'
}
artifact javadocJar {
classifier 'javadoc'
}
version = project.version
artifactId = 'kotml'
groupId = project.group
pom.withXml {
def root = asNode()
root.appendNode('description', 'Machine Learning library written in Kotlin')
root.appendNode('name', 'kotml')
root.appendNode('url', 'https://github.com/tommypacker/kotml')
root.children().last() + pomConfig
}
}
}
}