-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
126 lines (105 loc) · 2.72 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
buildscript {
ext.kotlin_version = "1.2.61"
ext.dokka_version = "0.9.17"
ext.junit_version = "5.1.0"
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}"
classpath "org.junit.platform:junit-platform-gradle-plugin:1.1.0"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.+"
}
}
apply plugin: "kotlin"
apply plugin: "org.junit.platform.gradle.plugin"
apply plugin: "org.jetbrains.dokka"
apply plugin: "maven-publish"
apply plugin: "signing"
apply plugin: "com.jfrog.bintray"
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testCompile "org.junit.jupiter:junit-jupiter-api:$junit_version"
testRuntime "org.junit.jupiter:junit-jupiter-engine:$junit_version"
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
dokka {
outputFormat = "html"
outputDirectory = "$buildDir/javadoc"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = "sources"
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
developers {
developer {
id "zelkatani"
name "Zakaria Elkatani"
email "zelkatani@gmail.com"
}
}
scm {
url vector_test_cvs
}
}
publishing {
publications {
mavenPublication(MavenPublication) {
from components.java
artifact sourcesJar {
classifier "sources"
}
groupId "com.zelkatani"
artifactId vector_test_name
version vector_test_version
pom.withXml {
def root = asNode()
root.appendNode("name", vector_test_name)
root.appendNode("description", vector_test_desc)
root.appendNode("url", vector_test_cvs)
root.children().last() + pomConfig
}
}
}
}
bintray {
user = bintray_user
key = bintray_key
publications = ["mavenPublication"]
publish = true
pkg {
repo = vector_test_name
name = vector_test_name
desc = vector_test_desc
vcsUrl = vector_test_cvs
licenses = ["Apache-2.0"]
version {
name = vector_test_version
}
}
}