-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
86 lines (70 loc) · 1.89 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
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
apply plugin: 'maven'
apply from: 'pom.gradle'
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.1'
}
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.1.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.1.0'
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1'
compile group: 'com.github.ben-manes.caffeine', name: 'caffeine', version: '2.8.6'
}
test {
useJUnit()
maxHeapSize = '1G'
}
task emptyJar(type: Jar) {
classifier 'javadoc'
}
task sourceJar(type: Jar) {
classifier 'sources'
from sourceSets.main.allJava
}
publishing {
publications {
Production(MavenPublication) {
from components.java
groupId "pw.roccodev.beezig"
artifactId "hive-api-wrapper"
version System.getenv('TRAVIS_TAG') != null ? System.getenv('TRAVIS_TAG') : 'NoVersion'
artifact sourceJar
artifact emptyJar
withPom(pom)
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
dryRun = false
override = false
publish = true
pkg {
repo = 'hive-api-wrapper'
name = project.name
userOrg = System.getenv('BINTRAY_USER')
licenses = ['GPL-3.0']
desc = 'An API Wrapper for The Hive written in Java'
vcsUrl = 'https://github.com/Beezig/hive-api-wrapper.git'
version {
name = System.getenv('TRAVIS_TAG')
vcsTag = System.getenv('TRAVIS_TAG')
}
}
publications = ['Production']
}