-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
117 lines (107 loc) · 3.32 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
plugins {
id "com.github.hierynomus.license" version "0.14.0"
id "com.jfrog.bintray" version "1.8.4"
}
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'maven-publish'
apply plugin: 'checkstyle'
apply plugin: 'license'
license {
header rootProject.file("config/HEADER")
}
compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled true
}
}
check.dependsOn jacocoTestReport
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
testCompile('org.junit.jupiter:junit-jupiter-api:5.4.2')
testRuntime('org.junit.jupiter:junit-jupiter-engine:5.4.2')
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
classifier "sources"
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar
artifact javadocJar
artifactId 'bikey'
version version
pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
name 'bikey'
description 'Bikey: low memory footprint Map and Set implementation on objects with composited keys'
url 'https://github.com/jerolba/bikey'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/license/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'jerolba'
name 'Jerónimo López'
email '[email protected]'
}
}
scm {
connection 'scm:git:git://github.com/jerolba/bikey.git'
developerConnection 'scm:git:ssh://github.com:jerolba/bikey.git'
url 'https://github.com/jerolba/bikey'
}
}
}
}
}
}
if (project.hasProperty('bintrayUser')){
bintray {
user = bintrayUser
key = bintrayKey
publications = ['mavenJava']
pkg {
repo = 'maven'
name = 'bikey'
desc = 'Bikey: low memory footprint Map and Set implementation on objects with composited keys'
websiteUrl = 'https://github.com/jerolba/bikey'
issueTrackerUrl = 'https://github.com/jerolba/bikey/issues'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/jerolba/bikey.git'
labels = ['java', 'map', 'set', 'bikey', 'multiplekey']
version {
name = '0.9.0'
desc = 'Initial release'
released = new Date()
}
}
}
}else {
println 'No bintray configuration found. Expected bintray user and API key at $HOME/.gradle/gradle.properties file.'
}