-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (83 loc) · 2.08 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
plugins {
id 'java-library'
id 'checkstyle'
id 'maven-publish'
id 'com.jfrog.bintray' version '1.8.4'
id 'net.minecrell.licenser' version '0.4.1'
}
group 'com.patchworkmc'
version '0.1.1'
archivesBaseName = "patchwork-application-core"
sourceCompatibility = 1.8
def ENV = System.getenv()
if (ENV.BUILD_NUMBER) {
version = version + "." + "${ENV.BUILD_NUMBER}"
}
repositories {
mavenCentral()
}
dependencies {
api 'org.fusesource.jansi:jansi:1.18'
api 'com.fasterxml.jackson.core:jackson-core:2.10.0.pr3'
api 'com.fasterxml.jackson.core:jackson-annotations:2.10.0.pr3'
api 'com.fasterxml.jackson.core:jackson-databind:2.10.0.pr3'
}
checkstyle {
configFile = rootProject.file("checkstyle.xml")
toolVersion = '8.25'
}
license {
header rootProject.file('LICENSE_HEADER')
include '**/*.java'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
java {
withSourcesJar()
withJavadocJar()
}
jar.dependsOn checkstyleMain
javadoc {
options {
memberLevel = "PACKAGE"
}
classpath = sourceSets.main.compileClasspath
}
bintray {
user = project.hasProperty('bintrayUser') ? project.getProperty('bintrayUser') : System.getenv('bintray_user')
key = project.hasProperty('bintrayKey') ? project.getProperty('bintrayKey') : System.getenv('bintray_key')
publish = true
override = true
publications = ['mavenJava']
pkg {
repo = project.bintrayRepo
name = project.name
user = bintray.user
userOrg = project.repoOwner
licenses = [project.codeLicense]
desc = project.description
websiteUrl = "https://github.com/${project.repoOwner}/${project.repoName}"
issueTrackerUrl = "https://github.com/${project.repoOwner}/${project.repoName}/issues"
vcsUrl = "https://github.com/${project.repoOwner}/${project.repoName}.git"
publicDownloadNumbers = true
githubRepo = "${project.repoOwner}/${project.repoName}"
version {
name = project.version
released = new Date()
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
name 'patchwork'
url 'https://dl.bintray.com/patchworkmc/Patchwork-Maven/'
}
}
}