forked from aPureBase/KGraphQL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
90 lines (74 loc) · 2.56 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
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.61"
id "com.github.ben-manes.versions" version "0.24.0"
id "com.jfrog.bintray" version "1.8.4"
id "maven-publish"
id "jacoco"
}
allprojects {
version "$version"
group 'com.apurebase'
apply plugin: 'kotlin'
apply plugin: 'maven-publish'
apply plugin: "com.jfrog.bintray"
repositories {
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutine_version"
compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
compile "com.fasterxml.jackson.module:jackson-module-kotlin:$jackson_version"
testCompile "io.netty:netty-all:$netty_version"
testCompile "org.hamcrest:hamcrest:$hamcrest_version"
testCompile "org.amshove.kluent:kluent:$kluent_version"
testCompile "org.junit.jupiter:junit-jupiter-api:$junit_version"
testCompile "org.junit.jupiter:junit-jupiter-params:$junit_version"
testRuntime "org.junit.jupiter:junit-jupiter-engine:$junit_version"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-debug:$coroutine_version"
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publish = true
publications = ['MyPublication']
configurations = ['archives']
pkg {
repo = 'apurebase'
name = project.name
licenses = ['MIT']
vcsUrl = 'https://github.com/aPureBase/KGraphQL'
websiteUrl = 'https://kgraphql.in'
issueTrackerUrl = 'https://github.com/aPureBase/KGraphQL/issues'
version {
name = project.version
released = new Date()
}
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId project.group
artifactId project.name
artifact sourcesJar
version version
}
}
}
}
test {
useJUnitPlatform()
}
}